ROBOTIS-GIT / OpenCM9.04

Software for OpenCM 9.04 / OpenCM means Open-source Control Module.
Apache License 2.0
33 stars 24 forks source link

st-link simple example #69

Closed Le0nX closed 5 years ago

Le0nX commented 5 years ago

Hello! I'm new to ARM programming and couldn't find any manuals/examples on C++ programming via ST-Link for your board... Could you give some simple example of code and process of it's building with flashing OpenCM via ST-link?

For example, I have Dynamixel ax-12a servos and want to rotate one of them with C++ bare bones on your board. Will I be able to use Dynamixel SDK for this task?

Le0nX commented 5 years ago

anybody?

OpusK commented 5 years ago

Hi, @Le0nX

We do not officially provide a reference for this method. However, since there is a hardware SWD pin, you can use it to create general firmware yourself.

If you use Eclipse or use TrueStudio, you can do this easily. However, in this case, OpenCM's boot loader will be erased, which can be a bit cumbersome to repair.

TuxLeon commented 5 years ago

Hi Le0nX, I was also looking for the STM source code or project. I now found this github repository. Perhaps this is what you were looking for. https://github.com/ROBOTIS-GIT/OpenCM9.04/tree/master/arduino/opencm_arduino/opencm9.04

OpusK commented 5 years ago

Hi, @TuxLeon.

This is a project to create a .lib file for opencm9.04. With this eclipse project, you can not do exactly what @Le0nX wants. Of course, you can refer to it to create an eclipse or TruStudio project.

Le0nX commented 5 years ago

Thx!