Skip to content

Is platform.txt patch needed for Arduino Zero? #1144

Closed
@madgrizzle

Description

@madgrizzle

Issue template

  • Hardware description: Arduino Zero
  • RTOS: Arduino
  • Installation type: Arduino 1.8.19 IDE (Windows), micro-ros-agent (built from source and tried docker) on Ubuntu 20.04
  • Version or commit hash: galactic

The Issue

I am able to compile and upload the simple publisher example to the Arduino zero, however, when I plug it into the ubuntu machine running ROS2 galactic, the micro-ros-agent sits there at init and never connects (I added a blinky LED to the error section and I can see the zero eventually errors out). Compiling and uploading the exact same code to a teensy 4.0 from the same IDE and then plugged into the same ubuntu machine works fine (connects right away).

The Question

When I setup the Arduino IDE initially and installed the SAMD board files for the Arduino Zero, it grabbed the latest version and it successfully compiled and uploaded the code without having to patch the platform.txt file. Does this file need to be patched for the Arduino Zero (or at all if it compiles without it)? I assumed it was just for compilation, but I went ahead and tried it and upon doing so got errors during compilation. The patch file is for 1.6.12 and isn't compatible with the latest board files so I had to edit it to find g++. After that, I kept getting messages about not being able to find samd.h (iirc). I then tried downgrading the board file to 1.6.12 to match and then patched the platform.txt file but then got message about not being able to find sam.h (iirc). I'm not sure if I'm heading down a rabbit hole with this platform.txt file. Is it just for compilation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions