Skip to main content
Der Max
Associate
January 22, 2018
Question

[CubeMX]__HAL_AFIO_REMAP overwritten in subsequent Hardware init

  • January 22, 2018
  • 1 reply
  • 1052 views
Posted on January 22, 2018 at 21:49

I am currently building a project with a STM32F103RCT6 (shouldn't matter) and I ran into a problem.

CubeMX does initialize the SWD-Pins for programming. The problem seems to occur when I enable a timer peripheral on the same Port (PA8 in my case). 

My workaround atm is to include a second call to '__HAL_AFIO_REMAP_SWJ_NOJTAG();'  in the ' /* USER CODE BEGIN 2 */' after CubeMX is finished initializing.

I found some information in the web pointing towards this being a problem with CubeMX doing invalid read/modify/write operations on the write-only MAPR register.

I didn't find an official way to report bugs with the CubeMX tool (like github os something like that), therefore I am writing into this forum.

#stm32f103-swd-swclk-afio-mapr #cubemx-4.23 #bug?
This topic has been closed for replies.

1 reply

Technical Moderator
March 27, 2018
Posted on March 27, 2018 at 15:35

Hello

Dobmann.Max

,

We would inform you that anew patch for STM32CubeF1 Firmware Package v1.6.1is published to fix this issue.

Best Regards,

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"