Updating our own bootloader when the read out protection is set. Is it possible somhow to clear the Read out protection and then write a new bootloader from eiter our main firmware or maby a application in ram?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-22 3:39 AM
The processor is a STM32F107RB. We dont have the possiblilty to update it via jtag.
- Labels:
-
Bootloader
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-22 6:08 AM
It’s possible but not easy. You could run your code from SRAM to erase the flash and write a new bootloader. Make sure the code you run in SRAM doesn't try to access any variables in flash. The limited amount of SRAM could be an issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-22 6:27 AM
It have just made a test and write the flash from sram, but it seems that i'm not able to write to the flash after i clear the read out protection. i just end up with a empty flash then.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-22 6:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-22 6:55 AM
Yes then it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-22 8:25 AM
Changing the readout protection level takes effect at the next system reset. So you have to load the reflashing code complete with vector table (a minimalist one would do if not using interrupts) in SRAM, and pull both BOOT0 and BOOT1 high while resetting the system to have it started.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-10-23 12:14 AM
I have no posibility to manipulate the bootpins so i might not have any posibilitiese to change the bootloader then.
