2015-02-11 06:44 AM
We've got a new board and we can't flash them. I am sending an output from STVP
> Programming OPTION BYTE area... Removing *READ PROTECTION* option, this will ERASE all the device flash memory! < OPTION BYTE programming completed. > Verifying OPTION BYTE area... Error : The device is protected Operation aborted Error : < OPTION BYTE verifying failed. What can I do? #damaged-flash #stvp #option-bytes2015-02-12 09:16 AM
18:15:22 : ST-LINK SN : 57FF6D064966505517161667
18:15:22 : ST-LINK Firmware version : V2J23S4 18:15:22 : Connected via SWD. 18:15:22 : SWD Frequency = 1,8 MHz. 18:15:22 : Connection mode : Connect Under Reset. 18:15:22 : Debug in Low Power mode enabled. 18:15:22 : Device ID:0x413 18:15:22 : Device family :STM32F40xx/F41xx 18:15:23 : Can not read memory! Disable Read Out Protection and retry. 18:15:36 : Could not set Option bytes! Please reset the target and retry. 18:15:37 : Can not read memory! Disable Read Out Protection and retry.2015-02-12 09:26 AM
What is ''System Loader''?
The ROM based loader in the STM32, it can be used to prod the devices internals, and provides a secondary method of access to the device.https://www.google.com/search?q=stm32+system+loader
You might also want to try doing boundary scan of your board, or inspect/x-ray for solder shorts or other mundane manufacturing issues. As Jack indicates there might be other causes, but I'd start with manufacturing, handling and process issues, and rule them out first.2015-02-12 11:02 AM
Ok we have ULINK2, ULINKPro which are too expensive for boundary scans. What is recommended for it. is it enough this https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/ ? or better something else?
2015-02-12 11:37 AM
We're not using a commercial solution, we have in-house tools and hardware that tickle the JTAG scan chain directly. A printer port base Wiggler would probably suffice, or an STM32 SPI type arrangement, or GPIOs