Hello folks,
I am having a little trouble getting started with STM32F030R8 nucleo board
with integrated STLINKv2. Hopefully I am following the best way to get started
and not going down the wrong path.
This is what I have done.
Downloaded ChibiStudio_Linux_Preview2.7z
Launched ChibiStudio-GCC8.3.1
Created eclipse workspace
File->New Imported source from Demo folder RT-STM32F030R8-NUCLEO64
Opened Main.c
Project-> Build all
The project built with no errors or warnings
When I went to upload to my board via "OpenOCD, Flash & Run" config
I got the error:
Error in final launch sequence:
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: Connection timed out.
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: Connection timed out.
I read the readme to change debug protocol to OpenOCD TCP/IP
so I changed:
<stringAttribute key="org.eclipse.cdt.debug.mi.core.protocol" value="mi"/>
to
<stringAttribute key="org.eclipse.cdt.debug.mi.core.protocol" value="OpenOCD TCP/IP"/>
or
maybe I was supposed to change this lines value to "OpenOCD TCP/IP"
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="Generic TCP/IP"/>
Looking for a little direction Thank you.
Getting Started
Moderators: RoccoMarco, barthess
- Giovanni
- Site Admin
- Posts: 14444
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1074 times
- Been thanked: 921 times
- Contact:
Re: Getting Started
hi,
Is OpenOCD running? it appears to fail connection to it. You can run it from the "tools" drop down menu in the toolbar. On playembedded.org there are guides (for the windows version). Note, on Linux there is a little extra setup to perform regarding OpenOCD and USB, you need to read the OCD manual, there are files to be copied.
If you have VirtualBox download the Linux VM with everything installed, user and password are: chibios. This is the easiest way to get started using Linux, once you have it working then you can replicate the whole setup on your computer.
You need to change that protocol from within Eclipse, edit the launch configuration using "Debug Configurations..." in the debug drop down menu.
Giovanni
Is OpenOCD running? it appears to fail connection to it. You can run it from the "tools" drop down menu in the toolbar. On playembedded.org there are guides (for the windows version). Note, on Linux there is a little extra setup to perform regarding OpenOCD and USB, you need to read the OCD manual, there are files to be copied.
If you have VirtualBox download the Linux VM with everything installed, user and password are: chibios. This is the easiest way to get started using Linux, once you have it working then you can replicate the whole setup on your computer.
You need to change that protocol from within Eclipse, edit the launch configuration using "Debug Configurations..." in the debug drop down menu.
Giovanni
Who is online
Users browsing this forum: No registered users and 21 guests