I am a novice to use ChibiOS so I am asking some basic question.
My test environment is,
1. Host PC : Unbuntu 12.04LTS
2. Eclipse : Luna + ARM Plugin
3. Target board : STM32F4Discovery
4. OpenOCD : 0.8.0 (installed from OpenOCD homepage)
I followed these steps -> http://gnuarmeclipse.livius.net/blog/openocd-debugging/
After setting the test environment, I made the "ARMCM4-STM32F407-DISCOVERY" project.
Compiled successfully, I entered debug mode but following error message happen!
Code: Select all
Open On-Chip Debugger 0.8.0 (2014-08-24-13:05)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v14 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 2.903844
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection from 3333
Info : device id = 0x10016413
Info : flash size = 1024kbytes
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080001d0 msp: 0x20000400
semihosting is enabled
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080001d0 msp: 0x20000400, semihosting
Info : Padding image section 0 with 4 bytes
target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000042 msp: 0x20000400, semihosting
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080001d0 msp: 0x20000400, semihosting
Error: gdb requested a non-existing register
Info : dropped 'gdb' connection
I tired to make File->New->C Project->Executable (STM32F4xx C/C++ Project).
This project works well without problem.
If you have any same experience, please let me know what is the solution.