- This topic has 2 replies, 2 voices, and was last updated 6 years, 3 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Mastering STM32 book support forum › Core Lock Up - Every Other Flash
Hello,
When flashing my MCU, I get a message that the core is locked up every other time that I flash using STM32CubeProgrammer. Can anyone help with why this is happening?
I was having the same problem. Changing “Reset mode” to “Hardware reset” on the ST-LINK configuration seems to have fixed it for me.
UM2237 on st.com, is the user guide for STM32 CubeProgrammer, which says this about the reset modes:
– Software system reset: Resets all the STM32 components except the debug via
the Cortex-M Application Interrupt and Reset Control Register (AIRCR).
– Hardware reset: Resets the STM32 device via the nRST pin. The RESET pin of the JTAG connector (pin 15) should be connected to the device reset pin.
– Core reset: Resets only the core Cortex-M via the Application Interrupt and Reset
Control Register (AIRCR).
I’m just getting started with STM32 so I can’t explain why software reset only works every other time, but hardware reset seems to work much more reliably.
Switching to hardware reset also fixed this for me. Thanks for the advice.
Eric