- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
My plan is to implement the following startup sequence from cold reset:
- CM0p executes and starts CM4 (basically default functionality)
- Bootloader application 0 starts. This has the responsibility to select which of applications 1 or 2 to execute
Is there a way, using the DFU SDK, to persistently mark an application as next/current, Linux style? With factory defaults it would contain app 0 and at least one of app 1 and 2. Powering it up the first time in post production it would boot either app 1 or 2. At a later point in time this app installs another app in the free slot. A switch is performed to the new app. How can I persist this value so that the new application is executed on subsequent cold resets?
Thanks!
Markus
Solved! Go to Solution.
- Labels:
-
PSoC 6 MCU
- Tags:
- dfu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I suppose I need to persist the running application ID in flash, or is this handled by the DFU SDK?
Yes, it is handled by the DFU SDK only.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Markus,
Have you looked at our code example related to DFU below.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello!
Yes I have. The example does not face the problem described above as far as I can tell.
- Application x is running
- Application x installs application y
- Application x switches to application y
- Application y is running
- Power cycle of device
After step 5, I need application y to be started by the bootloader as the device boots up. I suppose I need to persist the running application ID in flash, or is this handled by the DFU SDK? I can see that the running application ID is saved in RAM only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I suppose I need to persist the running application ID in flash, or is this handled by the DFU SDK?
Yes, it is handled by the DFU SDK only.
Regards