Hello,
I’m currently facing an issue during flashing an STM32F429ZI (Cortex-M4) with a J-Link (but not every time). I’m activating IWDG watchdog as an hardware watchdog (in option byte, it means that wdg is automatically activated by hardware at power on), and it seems that this option can disturb flashing or erasing.
Indeed, during flashing or erasing, following scripts are launched:
h
erase
r
q
power on
r
loadbin file.bin 0xYYYYYYYY
r
qc
But, hardware watchdog is still activated and I’m suspecting that wdg is triggered during flashing or erasing sequences. And, at one moment, by board is bricked … Impossible to launch erase or loadbin procedure again … it will return an error. I have finally found why it returns an error. Actually, on STM32F429, there is a SPRMOD bit (in FLASH_OPTCR register) that enables or not read/write protection, and this bit has been raised and I don’t know why. I have finally found a particular procedure to fall again this bit, and I’m able to recover my board. But, I would like to know if someone has an idea about why this bit could have been raised. Am i doing something wrong ?
Thank you in advance.
BR,
Aurélien
I’m currently facing an issue during flashing an STM32F429ZI (Cortex-M4) with a J-Link (but not every time). I’m activating IWDG watchdog as an hardware watchdog (in option byte, it means that wdg is automatically activated by hardware at power on), and it seems that this option can disturb flashing or erasing.
Indeed, during flashing or erasing, following scripts are launched:
h
erase
r
q
power on
r
loadbin file.bin 0xYYYYYYYY
r
qc
But, hardware watchdog is still activated and I’m suspecting that wdg is triggered during flashing or erasing sequences. And, at one moment, by board is bricked … Impossible to launch erase or loadbin procedure again … it will return an error. I have finally found why it returns an error. Actually, on STM32F429, there is a SPRMOD bit (in FLASH_OPTCR register) that enables or not read/write protection, and this bit has been raised and I don’t know why. I have finally found a particular procedure to fall again this bit, and I’m able to recover my board. But, I would like to know if someone has an idea about why this bit could have been raised. Am i doing something wrong ?
Thank you in advance.
BR,
Aurélien