2019-10-22 03:39 AM
The processor is a STM32F107RB. We dont have the possiblilty to update it via jtag.
2019-10-22 06: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.
2019-10-22 06: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.
2019-10-22 06:40 AM
2019-10-22 06:55 AM
Yes then it works
2019-10-22 08: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.
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.