昨晚淘宝的jlink刚刚到货就拆包,进行了驱动安装,花了一个晚上看论坛 数据数据手册 原理图 视频。设置Keil 的一些工具。到今天中午才把线接好。然后就遇到了。这种情况
buid output中出现如下代码
开始我以为是下载速度过快就吧下载速度调低了。使用最低的10kHz。还是不行。
我的接线 如下
keil可以识别出我的芯片等信息。就是无法下载程序进去。求大神赐教。
ROMTableAddr = 0xE00FF003 Target info: ------------ Device: STM32F103RB VTarget = 3.261V State of Pins: TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 1 Hardware-Breakpoints: 6 Software-Breakpoints: 8192 Watchpoints: 4 JTAG speed: 4000 kHz Programming Failed!
1.Erase Full Chip
2.Reset and Run
3program
4verify
然后Add STM32F10x........这个设备进去。如下图所示:
然后就可以写入程序进行仿真了。
Load "D:\\keil472-a\\STM32F10x_StdPeriph_Lib_V3.5.0\\STM32F10x_StdPeriph_Lib_V3.5.0\\Project\\STM32F10x_StdPeriph_Template\\MDK-ARM\\STM32100E-EVAL\\STM32100E-EVAL.axf" Set JLink Project File to "D:\keil472-a\STM32F10x_StdPeriph_Lib_V3.5.0\STM32F10x_StdPeriph_Lib_V3.5.0\Project\STM32F10x_StdPeriph_Template\MDK-ARM\JLinkSettings.ini" * JLink Info: Device "STM32F102RB" selected (128 KB flash, 16 KB RAM). JLink info: ------------ DLL: V4.70 , compiled May 7 2013 21:38:06 Firmware: J-Link ARM V8 compiled Nov 14 2012 22:34:52 Hardware: V8.00 S/N : 286370559 Feature(s) : RDI,FlashDL,FlashBP,JFlash * JLink Info: Found SWD-DP with ID 0x1BA01477 * JLink Info: Found SWD-DP with ID 0x1BA01477 * JLink Info: TPIU fitted. * JLink Info: FPUnit: 6 code (BP) slots and 2 literal slots * JLink Info: Found Cortex-M3 r1p1, Little endian. ROMTableAddr = 0xE00FF003 Target info: ------------ Device: STM32F102RB VTarget = 3.254V State of Pins: TCK: 0, TDI: 0, TDO: 0, TMS: 1, TRES: 1, TRST: 1 Hardware-Breakpoints: 6 Software-Breakpoints: 8192 Watchpoints: 4 JTAG speed: 4000 kHz Full Chip Erase Done. Programming Done. Verify OK. Application running ...
最后,谢谢各位大牛们耐心的指导。