[HELP] iNemo M1 debug

Discussions and support about ChibiStudio, the free development environment for ARM.
Post Reply
renegade82
Posts: 13
Joined: Thu Jul 03, 2014 12:21 pm

[HELP] iNemo M1 debug

Post by renegade82 »

How to debugging and programming iNemo M1 (+ st-link/2) on Chibistudio, openocd script which needs to be loaded?

P.S. Excuse me but i'm newby :oops: , Excuse me for my bad english i'm italian student :lol:
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [HELP] iNemo M1 debug

Post by Giovanni »

Hi,

Look for C:\ChibiStudio\tools\openocd\scripts\target\stm32f1x_stlink.cfg

Giovanni
renegade82
Posts: 13
Joined: Thu Jul 03, 2014 12:21 pm

Re: [HELP] iNemo M1 debug

Post by renegade82 »

i have tried to load : OpenOCD st-link v2 -> stm32f1x_stlink.cfg

in output i ve this:

Code: Select all

Open On-Chip Debugger 0.8.0 (2014-04-28-08:39)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 0.000000
Error: target voltage may be too low for reliable debugging
Error: init mode failed
in procedure 'transport'
in procedure 'init'
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [HELP] iNemo M1 debug

Post by Giovanni »

The answer is in the error, target voltage is zero, you have to power the board (through USB presumably).

Giovanni
renegade82
Posts: 13
Joined: Thu Jul 03, 2014 12:21 pm

Re: [HELP] iNemo M1 debug

Post by renegade82 »

:oops:

thanks Giovani
nbon
Posts: 10
Joined: Fri Jan 23, 2015 2:56 pm

Re: [HELP] iNemo M1 debug

Post by nbon »

Sorry but I'm not familiar with OpenOCD ... How do I load C:\ChibiStudio\tools\openocd\scripts\target\stm32f4x_stlink.cfg ?
Using command line ? But how do I tell ChibiStudio to use it ?
Thank you for the help.
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [HELP] iNemo M1 debug

Post by Giovanni »

Hi,

In the toolbar there is a menu that allows to launch external applications, OOCD is there, after launch it will prompt for the script file.

launch_oocd.png
launch_oocd.png (10.87 KiB) Viewed 8141 times


Giovanni
Post Reply