STM32CubeMX disables SWD by default for F1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-11-12 2: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-stm32cubemx- Labels:
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-11-12 4:44 PM
Is this a bug?
No I think it is a feature. I believe it is a check box item.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-11-14 1: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.Regards- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-10 3:34 PM
Clive,
When is it desirable to do that?
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-10 4:15 PM
How to recover if the chip is already programmed this way?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-10 4: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
