print(hello world) vs printf(hello world) / system wizard vs platform studio vs command prompt

Hi,,,,,

Let me raise one problem on "undefined reference" error message.

In XPS (EDK 6.3) simple microblaze TestApp .... (with only 64 KB BRAM and RS232_uart)

---------------------------------------------------------- #include "xparameters.h" #include "xutil.h" #include

int main (void) { print("-- Hello World --\r\n");

printf("-- Hello World --\n"); // this is sometimes problem return 0; }

----------------------------------------------------------

Interesting observations....

- When I make system using Base System Wizard, both of "print" and "printf" of "Hello_World.c" are ok.....

- When we manually create system using Platform Studio (and/or Command Prompt), only "print" is ok... The error message of "printf" statement is

--------------------------------------------------------- ./microblaze_0/lib//libc.a(print.o): In function `print': print.o(.text+0x1c): undefined reference to `outbyte' make: *** [TestApp/executable.elf] Error 1

---------------------------------------------------------

What I did (in platform studio) was

- create project with mh MHS file

- netlist generation -> bitstream generation : this is ok

- add software project (simple C code above)

- generate linker script

- generate library and BSP : seems ok

- build all user applications : not ok, the error message above found

I guess this problem is related to the "libgen", If yes or not, Let me know how i can solve this problem :) !!...

Thankyou regards

Reply to
Hur
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.