lpcware

program that is loaded by secondary bootloader UART handler doesn't return

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by internav on Fri Jan 31 15:21:37 MST 2014
I am using the secondary bootloader to load a program and when the program executes and the uart interrupt handler is entered, it returns to neverland.  The systick and timer handlers work fine.  the bootloader uses the uart but polls for data and uses no interrupts.

the bootloader is in flash from 0-0x1fff and the program starts at 0x2000. The test program sits in a while loop and has only systick and uart handlers.

if I take the test program and build at location 0 and run, it works fine.  and the assembly code looks the same for both versions.  so it has to be some complier linker setting?

attached are the zips for the bootloader and test boot program.

Original Attachment has been moved to: bootloader.zip

Original Attachment has been moved to: boot_test.zip

Outcomes