AnsweredAssumed Answered

[BUG] CubeMX switch off JTAG and SWD

Question asked by woloszyn.rafal.001 on Oct 29, 2017
Latest reply on Oct 30, 2017 by woloszyn.rafal.001

Hi all,

I would like to report a bug of CubeMX.

I did generated simple project for STM32F103VEx.  Project if fairly simple just uses USB in CDC mode.

I did generate similar project for same processor but only SPI3 using shared pins PB3 and PB4 with JTAG.

Each time while I did generated those projects CubeMX forces to distable whole debug communication JTAG +SWD

by adding line

 

    /**DISABLE: JTAG-DP Disabled and SW-DP Disabled  
    */
  __HAL_AFIO_REMAP_SWJ_DISABLE();

While SWD could be turned on since it does not conflicts with any of those peripherals. STM32 have options to disable only JTAG or either distable only NRJST pin in JTAG. Why CubeMX forces to kill all of the debug communication ?

 

Simple project attached. Example file located in testCDC/stm32f1xx_hal_msp.c function void HAL_MspInit(void)

stm32 cube mx stm32f103 usb bug report

Attachments

Outcomes