通过jlink 烧录.bin文件报错:
Failed to download RAMCode.
Failed to prepare for programming.
Failed to download RAMCode!
Failed to auto program target
通过KEIL 烧录程序报错:
***JLink Error: Could not start CPU core. (ErrorCode: -1)
***JLink Error: Cannot read register 15 (R15) while CPU is running
***JLink Error: Cannot read register 20 (CFBP) while CPU is running
***JLink Error: CPU is not halted
***JLink Error: Cannot read register 15 (R15) while CPU is running
***JLink Error: Cannot read register 20 (CFBP) while CPU is running
***JLink Error: CPU is not halted
***JLink Error: Cannot read register 15 (R15) while CPU is running
问题解决:
调试 主控NXP MIMXRT1021DAG5A 芯片时,按照常规外置看门狗(1.6s喂狗)连接到MIMXRT1021DAG5A 芯片复位引脚上去的,中间没有使用跳针断开。由于芯片还没程序呢,还没开始喂狗,看门狗一直拉低芯片复位引脚,导致芯片频繁重启。程序也就烧录不进去。