While my first steps using portenta and platformIO (with VIM) were motivating and encouraging, I quickly faced a bottleneck.
I am trying to run the example code dot151-print-from-m4-core-rpc here.
My platformio.ini is straightforward, created with
pio init --board=portenta_h7_m7:
[env:portenta_h7_m7] platform = ststm32 board = portenta_h7_m7 framework = arduino
But when compiling the code (
pio run) I get:
PACKAGES: - framework-arduino-mbed 2.6.1 - tool-dfuutil 1.9.200310 - toolchain-gccarmnoneeabi 1.70201.0 (7.2.1) [...] Dependency Graph |-- <RPC> 1.0 | |-- <rpclib> 1.0.0 | |-- <openamp> 1.0 Building in release mode Compiling .pio/build/portenta_h7_m7/src/main.cpp.o Generating LD script .pio/build/portenta_h7_m7/cpp.linker_script.ld Compiling .pio/build/portenta_h7_m7/lib661/rpclib/format.cpp.o Compiling .pio/build/portenta_h7_m7/lib661/rpclib/rpc/client.cc.o Compiling .pio/build/portenta_h7_m7/lib661/rpclib/rpc/detail/client_error.cpp.o ~/.platformio/packages/framework-arduino-mbed/libraries/rpclib/src/rpc/client.cc:13:10: fatal error: **asio.hpp: No such file or directory**
The code compiles fine when I use the arduino IDE (v. 1.8.19).
I searched for this
asio.hpp in the PIO registery web page (nothing besides a ChirpSDK).
I didn’t find the header anywhere in ~/.platformio/packages/framework-arduino-mbed, it is not either located in the the original ArduinoCore-mbed, which at first sight seems to be what is installed in my
But I could trace the header in the original github /rpclib/rpclib,
asio.hpp is located in under rpclib/tree/master/dependencies/include.
I couldn’t find anything more about asio.hpp besides its own repository.
And now I’m in a dead-end, slowing down my enthusiasm to use PlatformIO.
Could it be that the official ArduinoCore-mbed is now at v 3.0.0 while the one installed in my PIO is 2.6.1 (automatically installed this version when I did
pio run, but I notice the one in the registry page of framework-arduino-mbed is said to be 2.7.2)?
The Readme at the registry page of framework-arduino-mbed is similar to that in the ofifical ArduinoCore-mbed but is kind of obscure to me as it doesn’t seem relevant to PlatformIO (it’s only for the Arduino IDE isn’t it?) and the Installation instructions don’t help much either.
Am I missing another dependency (that I couldn’t find…)?
PS: new user can only put 2 links in a post, I wished I could put more to make the post clearer and more convenient!