STM32CUBEMX keeps generating __HAL_AFIO_REMAP_SWJ_DISABLE();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-23 5:23 AM
Hello,
Whenever I generate a project using STM32CUBEMX, ir keeps generating (and updating upon re-genration) __HAL_AFIO_REMAP_SWJ_DISABLE(); into the HAL_MspInit function.
This line does not allow debugging and forces to perform a series of actions to allow debugging again.
Right now, I keep commenting the line out upon each regeneration. Is there a way to simply prevent it from generating?
Thanks!
- Labels:
-
DEBUG
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-23 5:25 AM
I believe it is a check box configuration item, dig in the forum, it's been mentioned several times.
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
‎2019-05-23 9:54 AM
Indeed.
My question is a duplicate of:
https://community.st.com/s/question/0D50X00009XkZBsSAN/stm32cubemx-disables-swd-by-default-for-f1
in STM32MXCubeMX:
Pinout & Configuration -> System Core -> SYS -> Debug: drop-down menu. Choose what you use (Serial Wire in my case)
