买了stm32F051芯片,做了快stm32的开发板,但是发现用jlink swd 模式烧录不进去代码也无法仿真,用jink arm 可以connect 上,但是点击erase 提示错误,在网上搜索后说有可能是芯片锁住了, 找了很多办法解锁,发现都不行。新的stm32 的芯片也有可能锁住吗? 也测试了板子的供电,都是正常的。jlink 也没有问题,烧录其他的板子都是OK的,现在不知道是哪里出问题了? 网上有说在RAM中运行一个解锁的代码,但是我尝试了很久都无法正常从RAM中运行。能否提供一个M0 的RAM启动代码的过程或者告诉我方法呢? 网上的方法我能搜到的都尝试过了。 非常感谢! |
回复:Stm32F051 芯片通过Jlink 可以连接,但是无法擦除代码
- J-Flash ARM V4.50 (J-Flash compiled Jun 1 2012 22:44:53)
- JLinkARM.dll V4.50 (DLL compiled Jun 1 2012 22:44:17)
Reading flash device list [C:\Program Files\SEGGER\JLinkARM_V450\ETC\JFlash\Flash.csv] ...
- List of flash devices read successfully (1170 Devices)
Reading MCU device list [C:\Program Files\SEGGER\JLinkARM_V450\ETC\JFlash\MCU.csv] ...
- List of MCU devices read successfully (1457 Devices)
Creating new project file [C:\Program Files\SEGGER\JLinkARM_V450\Default.jflash] ...
- New project created successfully
Connecting ...
- Connecting via USB to J-Link device 0
- J-Link firmware: V1.20 (J-Link ARM V8 compiled Nov 14 2012 22:34:52)
- JTAG speed: 200 kHz (Auto)
- Initializing CPU core (Init sequence) ...
- ERROR: Failed to connect
Connecting ...
- Connecting via USB to J-Link device 0
- J-Link firmware: V1.20 (J-Link ARM V8 compiled Nov 14 2012 22:34:52)
- JTAG speed: 200 kHz (Auto)
- Initializing CPU core (Init sequence) ...
- ERROR: Failed to connect
Connecting ...
- Connecting via USB to J-Link device 0
- J-Link firmware: V1.20 (J-Link ARM V8 compiled Nov 14 2012 22:34:52)
- JTAG speed: 2000 kHz (Auto)
- Initializing CPU core (Init sequence) ...
- Initialized successfully
- JTAG speed: 2000 kHz (Auto)
- Connected successfully
Unsecure chip ...
- Disconnecting ...
- Disconnected
- Connecting via USB to J-Link device 0
- Chip unsecured successfully - Completed after 0.552 sec
Erasing chip ...
- Connecting ...
- Connected successfully
- Erasing 64 sectors, 1 range, 0x8000000 - 0x800FFFF
- ERROR: RAM check failed @ address 0x20000000.
- ERROR: Write: 0x03020100 07060504
- ERROR: Read: 0xAAAAAAAA AAAAAAAA
- ERROR: (0 bytes of RAM have been checked successfully)
- ERROR: Failed to erase chip
Disconnecting ...
- Disconnected
回复:Stm32F051 芯片通过Jlink 可以连接,但是无法擦除代码
RE:Stm32F051 芯片通过Jlink 可以连接,但是无法擦除代码