FX3 - Downloading an application after second stage boot loader. | Cypress Semiconductor
FX3 - Downloading an application after second stage boot loader.
I would like to use the second stage boot loader to download a "final application" (different descriptors than the second stage boot loader) and then have FX3 renumerate for the final application.
For the second stage boot loader, I am using Fx3BootAppGcc and have enabled renumeration.
For the "final application", I have added a cold reset call [CyU3PDeviceReset(CyFalse)] on a reset event.
Starting from a loaded second stage boot loader, after I reprogram the device with the "final application" it renumerates to the ROM boot loader. Any idea why?
Looks like a reset is happening as part of the renumeration but the firmware entry for the final application is not loaded. As a side not, I'm also storing the firmware entry address in the "final application" USB events handler , before resetting:
// Stopping the application if it's active.
// Perform cold reset.
*((uint32_t *)0x40000000) = (uint32_t)(&CyU3PFirmwareEntry);