AnsweredAssumed Answered

Forcing STCube not to touch some lines of code when regenarting

Question asked by yazdani.saeid on Oct 14, 2015
Latest reply on Oct 15, 2015 by 68516
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.

Outcomes