AnsweredAssumed Answered

STM32 CUBEMX  SYS Debug Settings

Question asked by William chang on Mar 4, 2018
Latest reply on Mar 6, 2018 by William chang

Here is the SYS debug settings

I use Serial Wire and Trace Synchro Sw (4 bits)  most.

Here is what CubeMX did.

 

In Serial Wire mode IS: 

__HAL_RCC_AFIO_CLK_ENABLE();

__HAL_AFIO_REMAP_SWJ_NOJTAG();

__HAL_RCC_GPIOA_CLK_ENABLE();

 

IN Trace Synchro Sw (4 bits) IS:

__HAL_RCC_AFIO_CLK_ENABLE();

__HAL_AFIO_REMAP_SWJ_NOJTAG();

__HAL_RCC_GPIOA_CLK_ENABLE();

__HAL_RCC_GPIOE_CLK_ENABLE();

 

 

My questions is:

It's necessary to do those job in main() ?

I think the right way is to set up configuration before the program is running.

and I right ?

Outcomes