Robotics StackExchange | Archived questions

Error when Trying to Flash Olimex STM32-E407 Board Using First micro-ROS/FreeRTOS Tutorial

I'm following the instructions from the first micro-ROS/FreeRTOS tutorial. When I get to the step where I flash the Olimex STM32-E407 board using the ARM-USB-TINY-H JTAG connector, I get the following response: Error. Unsuported OpenOCD USB programmer. I have updated the drivers, this is on a Windows 10 PC, running the tutorial (as instructed) in a Docker container using bash and have checked other forums. Nothing seems to work.

The step that fails is

Flash step

ros2 run microrossetup flash_firmware.sh

https://micro.ros.org/docs/tutorials/core/first_application_rtos/freertos/

I'm an experienced FW engineer, but this is my first foray into micro-ROS, which I am vetting for an upcoming project. Any help would be most appreciated.

Asked by LadyEv on 2022-10-27 09:12:39 UTC

Comments

I'm sort of expecting this to be a problem with "this is on a Windows 10 PC". The tutorial specifically states:

First of all, install ROS 2 Foxy FitzRoy on your Ubuntu 20.04 LTS computer

the Docker container you mention is probably this one:

Alternatively, you can use a docker container with a fresh ROS 2 Foxy installation.

Somewhat ambiguous perhaps, but I guess that sentence basically implied you'd still be using some Linux (based) OS. The Docker container would just remove the need to install ROS 2 Foxy natively on it.

re: Windows 10: if you're able to run Linux Docker containers, that probably means you're using WSL2. That makes it no longer Windows, but Linux (and Ubuntu in the case of the container).

Does whatever Linux OS you've installed in WSL2 have access to the device you mention? Can you use it from that OS? If not, the Docker container would also not be able to.

Asked by gvdhoorn on 2022-10-28 02:33:51 UTC

Btw, it is possible to build micro-ROS applications on Windows. The micro-ROS documentation however does not cover that AFAIK. So it's a bit of trial-and-error.

Asked by gvdhoorn on 2022-10-28 02:51:51 UTC

Thank you for responding. As you're working through the tutorial, there are parallel instructions for installing a Docker container on Windows and developing in that instead of an actual Linux machine. All of those instructions worked great (with lots of explanatory detail) until I wound up at the Flash Step.

Trying to verify I can see the USB device in the Docker container. Might be a permissions issue on my PC; my organization clamps down pretty tightly on USB devices. Will troubleshoot from there and see what I can find out.

Asked by LadyEv on 2022-10-28 06:22:29 UTC

As you're working through the tutorial, there are parallel instructions for installing a Docker container on Windows and developing in that instead of an actual Linux machine.

Did you link to the correct tutorial in that case? The word "windows" does not come up when I search for it on https://micro.ros.org/docs/tutorials/core/first_application_rtos/freertos/.

Asked by gvdhoorn on 2022-10-28 06:30:27 UTC

The Windows installation directions come from a previous tutorial - once the Docker container was set up, the instructions are basically the same as for Linux

Asked by LadyEv on 2022-10-28 06:38:20 UTC

Answers