problem with RDB1768 secondary USB bootloader

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by navman on Wed Feb 22 04:13:24 MST 2012
I've been trying to get the RDB1768 USB bootloader example to work. So far, I've done the following:
1) Loaded the USB bootloader to the RDB board.
2) It enumerates as USB drive when the joystick button is pressed and board is reset (or if no valid user app is found).
3) I delete the firmware.bin already on the USB drive, rename the application code to firmware.bin and copy it to USB drive. Then safely remove the drive from windows.
4) Disconnect and re-connect USB cable  (which also carries power)to the RDB board.
5) The LCD displays "Running user app from flash".
6) The user app doesn't do what it is supposed to do (blink LED). However, when it is loaded to the RDB board as a standalone app, it works just fine.

I've modified the linker scripts of the user app and made sure that the app starts from memory location 0x10000 instead of 0x00 as mentioned in the readme.txt accompanying the USB bootloader example.

I'm attaching the app code (led_blink) as well as the USB bootloader codes.

Please can somebody tell me what I'm doing wrong?