2016-11-12 02:43 PM
I use STM32CubeMX 4.17.0. I create a new project and select any F1. Then, I generate a source code. In function HAL_MspInit() I see following lines:
/**DISABLE: JTAG-DP Disabled and SW-DP Disabled */ __HAL_AFIO_REMAP_SWJ_DISABLE();STM32CubeMX disables SWD by default. Is this a bug? #feature #stupid-as-designed #bug-stm32cubemx2016-11-12 04:44 PM
Is this a bug?
No I think it is a feature. I believe it is a check box item.2016-11-14 01:37 AM
Hello,
For F1 series, from STM32CubeMx and Pinout view, go to the SYS peripheral and change ''No Debug'' to any other mode. This will resolve this issue.Regards2017-05-10 03:34 PM
Clive,
When is it desirable to do that?
Bill
2017-05-10 04:15 PM
How to recover if the chip is already programmed this way?
2017-05-10 04:19 PM
Dieter,
I re-generated the project with STM32CubeMX.
And you have to power-cycle the target board.
Then it all worked correctly in the debugger.
-Bill