开发 Nucleo-L053R8,gcc编译器安装完成后,准备调试工具。当然是openocd了,我用的版本0.8,可以去openocd.sourceforge.net下载。
Nucleo-L053R8只支持swd调试模式,设置cfg配置文件,
显示信息如下:
Open On-Chip Debugger 0.8.0 (2014-05-23-18:50)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
target is stm32l
using hla_swd
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v20 API v2 SWIM v4 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.249641
Info : stm32l.cpu: hardware has 4 breakpoints, 2 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0xf1000000 pc: 0x08000f70 msp: 0x20000478
STM32L: Enabling MSI