I need help with my 6 DOF racesimulator

Hi all,

I really need your guys help. my project needs to be finished by the 12th of may. I need to connect 3 ODrives to my pc and drive 6 motors with them. I also need to use end stops

I have an ST-link V2 so tell me what to do. I have already installed a lot of software as mentioned in the other topics but probably not everything, so please sum up everything I need. I’m good with my PC and I am able to program.

I want to use SimTools. I’ve seen a post about it on the forum so somebody can prbably help me out.

thanks a lot!

cheers

Carelsbergh Stijn

I don’t even know where to begin to help you. We need a lot more details on what part you are stuck on.

What have you tried so far? Have you gone through the Firmware Developer Guide? If so, did you have any problems there that you need help with? If everything is honky dory with getting the development software installed then have you tried flashing some firmware onto your ODrive?

All of that basic information is covered under the docs. We can definitely help you further if you get hung up on a specific step, but your first place to look should be the link above.

hi

I’m stuck on installing openocd.

cheers

Carelsbergh Stijn

I’ll repeat that you need to use a lot more detail when describing your problems. You aren’t going to get a lot of help with a one liner response that you are stuck.

What have you tried?
What worked? What isn’t working?
Are you getting any error messages that might be helpful to share?
What operating system are you using?
Have you done any googling to see if someone else has had similar problems installing openocd?

2 Likes

Hi,

I’m sorry

I’m using a Windows 10 machine.

I have the odrivetool installed and working.

I have an st link and the correct driver installed.

I have ODrive serial test installed.

I have also installed the zadig tool.

I also have vscode installed with the extension but I can’t figure out the environement variable.

I downloaded these things because they were in this post:


and also this one:

Now I’m stuck on trying to install openocd

Do you need to know anything else?

cheers

Carelsbergh Stijn

Have you retrieved the OpenOCD zip file from the openocd github releases page and unzipped it to %userprofile%\AppData\Roaming\GNU MCU Eclipse yet?

The resulting path to the openocd executables should look something like this once unzipped:

"C:\Users\ilg\AppData\Roaming\GNU MCU Eclipse\OpenOCD\0.10.0-5-20171110-1117\bin\openocd"

Hi

No I have not, I will try it after school.

Do you also know what the environment variabele is?

Thanks a lot

Cheers

Carelsbergh Stijn

Hi

I tried the unzipping, but I’m not seeing the exacutables.

I’ve also succesfully installed openocd as an Xpack. I don’t know if this is also good and what I need to do with it now.



cheers

Thank you

Carelsbergh Stijn

I’ve never used Xpack and haven’t used windows 10, but you’ll likey need to add the path to the openocd bin directory to your system path. Just do a google search for “windows 10 update system path”.

Hi Stijn,

I installed OpenOCD like described here: https://gnu-mcu-eclipse.github.io/openocd/install/
Use the Windows part not XPack. Installing the drivers for ST-Link is also described there.

If you want to add Environment Variables to Windows 10, make right click to your PC-symbol, choose Properties. Then click on this:


Then choose this:

Add your variables here:

Depending on your location, this is only a example of my installation.

C:\Program Files\Git\cmd
C:\ProgramData\Anaconda3
C:\Program Files (x86)\GNU Tools ARM Embedded\7 2017-q4-major\bin
C:\Tools\tup
C:\Program Files (x86)\GnuWin32\bin
C:\Program Files\GNU MCU Eclipse\OpenOCD\0.10.0-7-20180123-1217\bin
C:\Program Files\Microsoft VS Code\bin
C:\Users\Entwicklung\AppData\Local\Programs\Microsoft VS Code\bin

Greetings / Zennix

Hi

thanks for the reply.

I used the Xpack method and got here

If this is not good just tell me and I will do it the other way.
The problem is that when I run the exe file, it opens cmd and closes imediatly

I think I allready got the st-link drivers figured out.

The environment variabele is also added, what is the ODrive repository?

cheers

Carelsbergh Stijn

The behavior that you describe with the executable closing right away is typical for programs that are meant to be run on the command line. Open up a command prompt and try typing openocd (assuming that is the name of the executable). If it works then your system path is setup correctly. OpenOCD won’t do much without passing in some arguments though. During the build process it isn’t typically called directly. The make flash call from the odrive Firmware source directory is what makes the call to openocd. I think there is a way to get your IDE setup to also call openocd but I haven’t gone through the setup of that yet, so I won’t be much help there.

Have you pulled the odrive project down from github yet? I would start with the master branch of oskar’s repo first. Once you have confidence in the build workflow you can clone some of the other repos that are out there that have the functionality that you are looking for.

Hi,

Thanks, so I first have to try the original firmware before the firmware with end stops?

Cheers

Carelsbergh Stijn

That’s just my suggestion. It’s much easier to problem solve when you take very incremental steps. It will be good to make sure your build environment is setup and working as expected before going too much further.

Hi

I’ve sceencaptured my screen on the startup of the exe and this is what I’m getting:

W
har should I do?

Cheers

Carelsbergh Stijn

I’m not convinced that is a problem, it just looks like a config file is missing. Try doing a build in the Firmware directory of the odrive repo. If the build is successful then try make flash with the programmer hooked up to one of your odrive boards.

Hi

I think I have gotten my software under controll, doe this mean that the flash is succesfull?

Cheers

Carelsbergh Stijn

1 Like

Yep, that looks good.

Hi

it says libusb failed, what does that mean?

cheers

Carelsbergh stijn