2017-10-09 09:44 PM
#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 theSWJ and trace alternate function I/Os. The SWJ (Serial Wire JTAG) supports JTAG or SWDaccess to the Cortex debug port. The default state after reset is SWJ ON without trace. Thisallows 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 State001: Full SWJ (JTAG-DP + SW-DP) but without NJTRST010: JTAG-DP Disabled and SW-DP Enabled100: JTAG-DP Disabled and SW-DP DisabledOther combinations: no effect