Skip to main content
embedonix
Associate II
October 14, 2015
Question

Forcing STCube not to touch some lines of code when regenarting

  • October 14, 2015
  • 1 reply
  • 697 views
Posted on October 14, 2015 at 05:20

I am using Cube, everytime that I make a small change in the cube project and regenrate the code, it generates this line in stm32f1xx_hal_msp.c

    /**DISABLE: JTAG-DP Disabled and SW-DP Disabled 

    */

  __HAL_AFIO_REMAP_SWJ_DISABLE();

Everytime I have to go and comment this line out. The other codes that I write in between the special comment sections remains fine, but this line always makes some problem. Is there a special comment tag or something to let cube know that it should not touch that particular line or block of code?

Thanks.

#hal #cubemx #stm32 #bug
This topic has been closed for replies.

1 reply

Nickname5522_O
Visitor II
October 15, 2015
Posted on October 15, 2015 at 12:58

Hi yazdani.saeid,

For F1 series in STM32CubeMx, you have to change the status of SYS, in pinout view, from disable to any other one and your issue will be resolved.This bug will be fixed in the next release 4.11.

Sorry for the inconvenience may bring.

-Shahrzad-