Problems compiling ArduPilot/ArduRemoteID sketch

I am new to Arduino stuff. I am using a few esp32-S3 for Drone Remote ID work. My install system is Fedora38 and I have the Flatpak arduino.arduinoide installed. I have 2 esp32's working using:

So I am now stepping up and setting up a 3rd and trying

And I get an error:

In file included from /home/rgm/Arduino/ArduRemoteID-master/RemoteIDModule/options.h:6,
from /home/rgm/Arduino/ArduRemoteID-master/RemoteIDModule/RemoteIDModule.ino:8:
board_config.h:164:2: error: #error "unsupported board"
#error "unsupported board"
^~~~~
In file included from /home/rgm/Arduino/ArduRemoteID-master/RemoteIDModule/RemoteIDModule.ino:10:
version.h:4:10: fatal error: git-version.h: No such file or directory
#include "git-version.h"
^~~~~~~~~~~~~~~
compilation terminated.

So I am rather clueless here; I code in English, writing IETF drafts and RFCs. But this looks like I need to get something else in my sketch, how do I do this?

thanks

Hi @rgmhtt. The "ArduRemoteID" project is not designed to be compiled via the Arduino IDE GUI as a normal sketch. This is the reason for the errors you encountered while trying to do that. There is a complex procedure for compiling the program, which is documented here:

Unless you want to make modifications to the source code, I think your best bet will be to use the pre-built binaries that are provided by the project maintainers. You can download it by clicking on the appropriate .bin file download link under the "Assets" section on the release page:

https://github.com/ArduPilot/ArduRemoteID/releases/latest

After that, follow the instructions for flashing the binary to your ESP32 board:

1 Like

This instruction is for Ubuntu, not Fedora. There is no rpm to install with dnf for arduino. I am going to have to ask on the Fedora list.

And though the binary should work as a starting point, I know that there are changes I and others working with IETF's DRIP additions will be doing, so at some point I have to work out how to do the build.

But thanks for the pointer.

It turns out you don't even need it. That is the Arduino IDE 1.x package, but they use Arduino CLI for the build. They forgot to update the instructions when they switched the build system to using Arduino CLI. Arduino IDE is not used at all in the current system so you would only be wasting your time trying to find that package.

So you only need to install Arduino CLI. It might be that some 3rd party maintains a package, but I would just install the official build of Arduino CLI by following the instructions here:

https://arduino.github.io/arduino-cli/latest/installation/

the

./scripts/regen_headers.sh

with a long error dump which seems a bit much to attach here.

Where do I ask for help on that. Do I complete those steps before:

Building with make and arduino-cli

Or is that a separate path to install?

thanks

Well I plugged along and tried the makes and ended up with the error

In file included from /home/rgm/Arduino/arduremoteid/RemoteIDModule/RemoteIDModule.ino:16:
/home/rgm/Arduino/arduremoteid/RemoteIDModule/DroneCAN.h:7:10: fatal error: uavcan.protocol.NodeStatus.h: No such file or directory
#include <uavcan.protocol.NodeStatus.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

grumble

Please do. If possible, add it directly in a reply post rather than in a file attachment.

Click the <CODE/> icon on the post composer toolbar before pasting the error dump text into the reply:

Code tags icon on toolbar

This will wrap the error dump text in the forum's code block markup (```) to make sure the error messages are correctly formatted.

If you get an error when you attempt to post due to the error dump text being longer than the maximum allowed by the forum, then it is find to put it in a .txt file and attach the file to the reply.

It is perfectly fine to ask for help here. However, you might try over on the ArduPilot forum instead:

It is possible there are some people over there knowledgeable in working with this specific project.

If you do that, please add a reply here linking to the topic you created on the other forum.

I believe you must complete those steps first. The documentation on that page has a strange structure that leaves some ambiguity, but I think the first section of the page is instructions for getting everything in place that is required for the build, while the second section "Building with make and arduino-cli" is the instructions for performing the build and uploading it to the board.

I suspect this is because you weren't able to perform the full setup before attempting the build.

OK. I deleted the whole directory and restarted with the git clone line. I opened a problem report over at ArduPilot. They do not have a specific category for ArduRemoteID so:

I got code onto my esp32. So I can close this thread out.

thank you

You are welcome. I'm glad it is working now.

If anyone else finds this thread while searching for information about the subject matter, definitely check out @rgmhtt's ArduPilot forum topic at the link above. There is some valuable information.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.