cancel
Showing results for 
Search instead for 
Did you mean: 

CUBEMX STM32F103 GPIO REMAP

wang feng
Associate
Posted on October 10, 2017 at 06:44

#define __HAL_AFIO_REMAP_TIM2_PARTIAL_1() do{ CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_TIM2_REMAP); \

SET_BIT(AFIO->MAPR, AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1); \

}while(0U)

CUBEMX version4.22.1

used stm32f103vct6

Sw debug mode choice,

This operation will destroy the set,

Should be MAPR read this register is meaningless, will read the value written to the register go wrong again.

Bits 26:24

SWJ_CFG[2:0]:

Serial wire JTAG configuration

These bits are write-only (when read, the value is undefined

). They are used to configure the

SWJ and trace alternate function I/Os. The SWJ (Serial Wire JTAG) supports JTAG or SWD

access to the Cortex debug port. The default state after reset is SWJ ON without trace. This

allows JTAG or SW mode to be enabled by sending a specific sequence on the JTMS /

JTCK pin.

000: Full SWJ (JTAG-DP + SW-DP): Reset State

001: Full SWJ (JTAG-DP + SW-DP) but without NJTRST

010: JTAG-DP Disabled and SW-DP Enabled

100: JTAG-DP Disabled and SW-DP Disabled

Other combinations: no effect

0 REPLIES 0