Getting Started

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

noweare
Posts: 2
Joined: Sat Apr 25, 2020 10:47 pm

Getting Started

Postby noweare » Sun Apr 26, 2020 4:12 pm

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.

User avatar
Giovanni
Site Admin
Posts: 12963
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 735 times
Been thanked: 610 times
Contact:

Re: Getting Started

Postby Giovanni » Sun Apr 26, 2020 6:24 pm

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

noweare
Posts: 2
Joined: Sat Apr 25, 2020 10:47 pm

Re: Getting Started

Postby noweare » Sun Apr 26, 2020 6:31 pm

OK, will do.
Thanks for the quick response.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 4 guests