Is there a BLE OTA DFU example with the bootloader in the CM0+ core.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
EdHa_4455331
Level 5
Level 5
25 replies posted 25 sign-ins 10 replies posted

I have been studying the BLE OTA DFU example in CE216767. It shows a lot of what I need to do, but is not directly suitable to copy-and-paste into my project.

To start with, the CE216767 example locates the bootloader in the CM4 core and the downloaded main application in the CM0+ core. I will need my main application to run in the CM4 core. (And it seems like this would be the more common real-world configuration rather than the reverse used in CE216767.)

The obvious first step was to go into the configuration for the BLE components in App0 and App1 and just swap the CPU core used in each one. This, unfortunately, resulted in a truck load of compile time errors.

So, does anyone know of any example DFU code that puts the main app in CM4 and the bootloader in CM0+? Or where there is any guidance as to how to make this happen?

Thanks,

Ed H.

0 Likes
1 Reply
RavikiranH_01
Employee
Employee
10 sign-ins 25 replies posted 10 replies posted

Hello EdHa_4455331​,

Here a quite old example with PSoC creator, that can be configured to any core based on the requirement. User guide explains the steps to be followed to make it work.
https://www.cypress.com/documentation/code-examples/ce220960-psoc-6-mcu-ble-upgradable-stack-bootloa...


This code example uses the older boot loader SDK instead of DFU SDK. However rest of the concept would remain the same.

If you are specifically looking for DFU, CE216767 is the right code example to start with. Please can you post your errors and the project here (if possible) ?


Thanks

0 Likes