Hi, I'm working with LPC2368. I have written a bootloader for firmware upgrade. It decides whether to upgrade or not according to a flag in flash. The bootloader reads the firmware from external flash. I also have an aaplication with Freertos. The bootloader and the application works fine as long as I run it from the debbuger. The problem is that I cannot make it work from reset. I have tried adding the STARTUP_FROM_RESET preprocessor definition with no sucess.
I tried something that made it work, but I'm not sure this is ok. I attached the debugger while running after a hardware reset, with a Debug version, and I noticed that the code was on the infinite loop
reset_wait: b reset_wait
I changed Philips_LPC230X_Startup.s file so that instead of a branch to reset_wait, it jumps to the application starting address at 0x2000.
reset_wait: b 0x2000.
Please sign in to leave a comment.