We have successfully built the USB bootloader from the NXP Keil example (AN10759 Secondary bootloader for the LPC23xx) using the Keil demo ARM MDK. Everything works … the bootloader works, the blinky example works fine, etc.
We WANT to use the GNU toolchain for our actual solution to a user app (i.e. one that is loaded by the secondary bootloader).
We have successfully built and ran the FreeRTOS demo as a "regular" app with the GNU Toolchain and runs fine on our MCB2300 board.
Our next step is to try to modify the linker (.ld file and .s files?) to now run the same demo as a "user app" that is loaded using the USB loader. It appears that this would be as simple as adding the offset to the new start address? The example is using 0x2000.
Keil does this through a little property wizard (it looks like), but we have tried several things in the .ld file and .s file and all we get is a crash.
What do we need to do to build FreeRTOS correctly to be loadable by the USB Bootloader?