你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

CubeMX 4.22.1 remap导致sw掉线bug

[复制链接]
wfwf654 发布时间:2017-10-13 10:41
#define __HAL_AFIO_REMAP_TIM2_PARTIAL_1() do{ CLEAR_BIT(AFIO->MAPR, AFIO_MAPR_TIM2_REMAP); \
! Z* u( x9 W, uSET_BIT(AFIO->MAPR, AFIO_MAPR_TIM2_REMAP_PARTIALREMAP1); \( s7 X. p5 _8 X. h% s
}while(0U)
CUBEMX version4.22.1
used stm32f103vct6
调试模式是sw MAPR寄存器不能直接读   直接读写回去导致sw掉线
Bits 26:24 SWJ_CFG[2:0]: Serial wire JTAG configuration& T0 i# s5 O% d
These bits are write-only (when read, the value is undefined! G# h" \* q$ l' R! ^
). They are used to configure the$ I' J8 t% `* A
SWJ and trace alternate function I/Os. The SWJ (Serial Wire JTAG) supports JTAG or SWD8 F2 c! a. {* n- {
access to the Cortex debug port. The default state after reset is SWJ ON without trace. This
/ g7 M1 i/ \. [5 b/ nallows JTAG or SW mode to be enabled by sending a specific sequence on the JTMS /& c* e( Q# C( h9 G3 o3 ^
JTCK pin.' [) K- Q0 H2 \+ `
000: Full SWJ (JTAG-DP + SW-DP): Reset State
  r5 f6 g# G+ E0 U+ E6 c, t001: Full SWJ (JTAG-DP + SW-DP) but without NJTRST
$ G3 c8 s( U) W$ ]* g1 J7 [/ v010: JTAG-DP Disabled and SW-DP Enabled8 n8 H8 S4 L  X! M5 W8 G% ^0 o
100: JTAG-DP Disabled and SW-DP Disabled; F) d4 X3 P* N2 P! e* B: V
Other combinations: no effect

+ I4 E- `. C  m+ U; d6 ]
赞 收藏 评论1 发布时间:2017-10-13 10:41

举报

1个回答
斜阳 回答时间:2017-10-13 11:00:04
帮顶      
关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
人形机器人运动控制、感知与智能配电
半导体创新技术与应用方向
EE架构与软件定义汽车
12V/48V 汽车智能配电(SPD)
区域控制单元(ZCU)与分区架构
关注我们
st-img 微信公众号
st-img 手机版