- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When using cysmart to bootload,it erase WFlash.
I have modified the bootload_user.c of CE216767.
But when update firmware by windows cysmart,it occurred error.However,the new firmware has been updated successfully and the wflash has not been erased.
Now where I should modifity?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To avoid erasing WFlash during OTA, you need modify the bootloader/app0 code to discard the data segment covering address 0x14000000 – 0x14008000, instead of modifying CySmart source code.
BTW, if there is no WFlash space involved in new application, the original data of WFlash programmed into device would not be touched even after a new OTA/DFU process. If there is WFlash space involved in your new application, what's the motivation to reserve the previous WFlash data? just curious.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you clarify your issue with more details?
Generally, the WFlash would not be erased if there is no WFlash space allocated in application firmware. If there is WFlash space is occupied and allocated in application, e.g. EERPOM/BLE component, to reserve the original WFlash content seems not make sense. Can you tell the reason to do it?
BTW, the basic bootloader code example now has update - https://www.cypress.com/documentation/code-examples/ce213903-psoc-6-mcu-basic-device-firmware-update...
Please change to use the newest one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When the power goes out, i want to save some data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The WFlash is emulated by NV flash. The content would not be lost even power goes out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But after DFU,the wflash has been erased.I do not want it to be erased.So I want to know what needs to be modified to not erase wflash in cysmart.I see that in psoc programmer can choose not to erase wflash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To avoid erasing WFlash during OTA, you need modify the bootloader/app0 code to discard the data segment covering address 0x14000000 – 0x14008000, instead of modifying CySmart source code.
BTW, if there is no WFlash space involved in new application, the original data of WFlash programmed into device would not be touched even after a new OTA/DFU process. If there is WFlash space involved in your new application, what's the motivation to reserve the previous WFlash data? just curious.