- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using the bootloader in CE213903. Two questions:
1) how do I get may app to create the generated files cy_bootload.c etc as in the app1 example.
2) I am calling NVIC_SystemReset(); to reset the M4 and expected it to return to the bootloader, but my app just runs again. How do I get the bootloader to run again? All Cy_Bootload_ExecuteApp(0u); does is set the appid and call NVIC_SystemReset. Or am I missing something obvious.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mrsinger
1. I would recommend using DFU Basic code example in Modustoolbox https://github.com/Infineon/mtb-example-psoc6-dfu-basic.You can use the functionalities defined in latest DFU MW (https://github.com/Infineon/dfu) cy_dfu.c.
2. Cy_DFU_ExecuteApp() sets the APPID and then resets. On device reset, Cy_DFU_OnResetApp0() is called from main.c; This API determines whether to boot to Bootloader or App based on the APPID set. So, directly calling NVIC_SystemReset() won't work. Please use Cy_DFU_ExecuteApp(0) to boot to Bootloader.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CY8C6247FDI-D32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@mrsinger
1. I would recommend using DFU Basic code example in Modustoolbox https://github.com/Infineon/mtb-example-psoc6-dfu-basic.You can use the functionalities defined in latest DFU MW (https://github.com/Infineon/dfu) cy_dfu.c.
2. Cy_DFU_ExecuteApp() sets the APPID and then resets. On device reset, Cy_DFU_OnResetApp0() is called from main.c; This API determines whether to boot to Bootloader or App based on the APPID set. So, directly calling NVIC_SystemReset() won't work. Please use Cy_DFU_ExecuteApp(0) to boot to Bootloader.