2021-11-05 02:08 AM
I use the STM32CubeIde and the Segger J-link program tool.
I've noticed that when reprogramming only the sectors where the program comes are reflashed.
Since I also use other secoters for data storage, would I also want to delete/clear these when reprogramming the mcu?
How can I set the STM32CubeIde environment to erase the entire flash before programming with the segger J link tool (debug/release)?
Regards,
diederik
2021-11-05 06:08 AM
Some options here: You may need to modify them for the equivalent JLink commands/tools.
2021-11-06 10:18 AM
I think this works for a ST link debugger connection ; unfortunately not for a Segger Jlink?!
When adding "monitor flash mass_erase" to the debug configuration -> Initialization statup :
I get the following error :
Any suggestions?
diederik
2021-11-10 06:15 AM
Hi @Ddeve.1 ,
In the user manual UM2609 STM32CubeIDE user guide, there is a dedicated paragraph "Debug using SEGGER J-Link".
I suggest that you refer to it.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-09-27 05:17 PM
Is there a way to do this if you do not have the SEGGER J-Link and just the ST-Link V2?