STM32:connecting to cpu via connect under rest failed.

一、问题描述:

通过JLINK链接STM32F765BG调试,J-flash中connect时提示如下错误:

ERROR:STM32:connecting to cpu via connect under rest failed.

Bad JTAG communication:Write to IR:Expected 0x1,got 0x3 (TAP Command:10)@Off 0x5.

二、解决措施

Options–>Project settings–>Flash,FlashBank选择“Bank 0(Internal flash)”,“Disable flash bank”前打勾。

再次connect 提示 Connected successfully.

Program 时提示如下错误:

Selected Data(0x8010000 – 0x80579D3) does not fit into selected flash sectors.

重新取消“Disable flash bank”前打勾。

再次connect -Program提示  successfully.

作者:snow_shirley

物联沃分享整理
物联沃-IOTWORD物联网 » STM32:connecting to cpu via connect under rest failed.

发表回复