We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all, I need help,
I have a strange behavior with my program when I try to flash my LPC3240 uC.
When I have the emulator running the program, this one works as I expect that it has to work. Then, I am building the bin file with the command:
fromelf.exe --bin --output ..\Obj\myProg.bin ..\Obj\myProg.axf
I flash the myProg.bin into an external flash.
Depending on the option I choose on the Keil environment in Code Generation area, specialy the option Floating Point Hardware, the file .bin I am flashing doesn't work at all or doesn't work as the emulated program works.
Do I miss something ?? I don't understand
Regards,
Colagrossi Jean-Marc
"I flash the myProg.bin into an external flash."
You don't specify the type of flash (e.g., NAND, NOR).
Have you got everything set up correctly for the internal bootstrap to execute your code? If you're loading your application into NAND, is all where your 2nd level bootstrap would expect it to be?
Hi,
The external Flash is a serial Flash - on SPI - The program is executed into external ram memory.
The secondary boot loader copy the program from the external flash and write it on the External memory into 0x8000 0000 ram address.
The ram is plitted into 2 parts.
0x8000 0000 - 8100 0000 for ROM 0x8100 0000 - 8200 0000 for RAM
Jean-Marc Colagrossi
I've not put an application into SPI on this processor.
When I was initially trying to get an application into NAND, I started with a very small application to make sure things were working correctly (with simple output to UART) and then worked up.
Might be worth you considering this approach.
I know that the boot loader is working properly. I have a working program that can be flashed in the external spi flash. Every things are working correctly.
I thake the working program. I modify it, I just add few lines code. Compiled and flashed again into external spi flash. And the new program even don't start.... ?????????????
Really confused and I don't know how to resolve the case. What can be wrong ?
Jean-Marc