This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Flash file system problem

I have a problem with the project using Flash file system (RTL-ARM) on LPC2368 (no real time system).
I believe the problem is somewhere with the retarget.c file.

Originally I used the retarget.c from http_demo.
tcp/ip and dhcp worked fine. I implemented sd card directory read. I can read the flash disk and print the directory using printf.

Problems have started when I tried to read the file.
As soon as I declared FILE *fin in my function, I've got an error "L6200E: Symbol __stdout multiply defined (by retarget.o and stdio.o)" when linking.

I replaced the file retarget.c by the file from the project Keil\ARM\RV30\RTL\Boards\Keil\MCB2300\SD_File.
Now it compiles and links ok, but when I start debugging (using Ulink), after download it goes straight to the endless loop in _sys_exit in retarget.c. On reset/start it does the same.

Does anybody have a clue what is going on here ?
I coudn't find any clear explanation on how to configure the retarget.c.

Gennady