2024-05-20 01:04 PM
Can somebody explain what is the hardware and software breakpoint ?
When I add a breakpoint in STM32CubeIDE, what is the type of this breakpoint ?
What is the difference between these two?
Solved! Go to Solution.
2024-05-20 01:18 PM
Hardware is where the FPB/DWT are trapping based on address access within the memory space.
Software would be where you're physically placing a BKPT instruction into the execution path.
Typically you're using the former, as it doesn't change your code.
https://developer.arm.com/documentation/100166/0001/Debug/Flash-Patch-and-Breakpoint-Unit--FPB-
https://stackoverflow.com/questions/11345371/how-do-i-set-a-software-breakpoint-on-an-arm-processor
2024-05-20 01:18 PM
Hardware is where the FPB/DWT are trapping based on address access within the memory space.
Software would be where you're physically placing a BKPT instruction into the execution path.
Typically you're using the former, as it doesn't change your code.
https://developer.arm.com/documentation/100166/0001/Debug/Flash-Patch-and-Breakpoint-Unit--FPB-
https://stackoverflow.com/questions/11345371/how-do-i-set-a-software-breakpoint-on-an-arm-processor
2024-05-20 01:21 PM
Thank you Tesla DeLorean I will check the links that you shared.