fprime-community / fprime-arduino

An implementation allowing fprime to be run on a limite number of Arduino compatible devices.
Apache License 2.0
24 stars 11 forks source link

Arduino CLI wrapper support change breaks fprime-util generate #33

Open nateinaction opened 14 hours ago

nateinaction commented 14 hours ago

Hey team,

I'm seeing the following error:

Screenshot 2024-10-27 at 13 31 20

I have verified the board definition is installed:

arduino-cli board listall |grep rpipico
Raspberry Pi Pico                                                       rp2040:rp2040:rpipico

and I'm using a relatively recent version of arduino-cli

arduino-cli version
arduino-cli  Version: 1.0.4 Commit: Homebrew Date: 2024-08-12T13:32:50Z

It looks like there was an update to in cmake/toolchain/support/arduino-wrapper.py #30 that's causing this issue and I confirmed I could generate without seeing this error after reverting https://github.com/fprime-community/fprime-arduino/commit/1efa71306870c6b913186f14d051328ff9e711ab.

I noticed that there seems to be some work-in-progress in the arduino-cli cmake wrapper repo. Is there a recommended version of the wrapper that I should be using other than what I get when I pip install arduino-cli-cmake-wrapper?

ethancheez commented 9 hours ago

It looks like there was an update to in cmake/toolchain/support/arduino-wrapper.py #30 that's causing this issue and I confirmed I could generate without seeing this error after reverting 1efa713.

Yeah this is the reason for the error. The PR has already been merged into main so I did not revert it, and all my Arduino OSAL work branched off of this commit.

To solve this before the official release of arudino-cli-cmake-wrapper through pip, clone the arduino-cli-cmake-wrapper repo, change to the refactor-tooling-cleanup branch, and run this:

pip install .

Make sure you are in your project virtual environment.