cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

jahsc_972471
New Contributor

My requirement is to download firmware to RAM every time my application starts up. I'm using CYUSB3KIT-003 and have my J4 always closed so that I can always get the boot loader running when restart my computer or re-plug-in USB cable. Then my application find the status of the board is programmable then download firmware to RAM and it becomes 'streamerexample' in control center and my application can talks to it successfully.   It works fine in this use case.

The issue is after I close my application, restart it again but now the boot loader is not running.  I can't download the firmware again.  I tried either CCyUSBDevice::Reset() or CCyUSBDevice::ReConnect() works. Please advice !  Very Appreciated !

0 Likes
1 Solution
SrinathS_16
Moderator
Moderator

Hello,

- The device falls back to boot-loader mode when there is a reset event happening. This can be invoked in the firmware using the CyU3PDeviceReset() API with the isWarmReset parameter as CyFalse. This API will cause the device to be reset and fall back to boot-loader and can be implemented as a vendor command in the firmware.

- The host application should issue the vendor command request upon start-up to invoke the vendor command handler present as part of the firmware.

Please let me know if you need further information.

Best regards,

Srinath S

View solution in original post

0 Likes
2 Replies
SrinathS_16
Moderator
Moderator

Hello,

- The device falls back to boot-loader mode when there is a reset event happening. This can be invoked in the firmware using the CyU3PDeviceReset() API with the isWarmReset parameter as CyFalse. This API will cause the device to be reset and fall back to boot-loader and can be implemented as a vendor command in the firmware.

- The host application should issue the vendor command request upon start-up to invoke the vendor command handler present as part of the firmware.

Please let me know if you need further information.

Best regards,

Srinath S

View solution in original post

0 Likes