I tried to run the example code below on the portenta PMC to use the msgpack RPC:
Unfortunately it seems the library (although being part of the framework) is not linked for some reason...or part of the firmware.??
Processing portenta_h7_m7 (platform: ststm32; board: portenta_h7_m7; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/portenta_h7_m7.html
PLATFORM: ST STM32 (15.4.1) > Arduino Portenta H7 (M7 core)
HARDWARE: STM32H747XIH6 480MHz, 511.35KB RAM, 768KB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, jlink, stlink)
PACKAGES:
- framework-arduino-mbed @ 3.1.1
- tool-dfuutil @ 1.11.0
- toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 43 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Adafruit AS7341 @ 1.3.3
| |-- Adafruit BusIO @ 1.14.1
| | |-- Wire
| | |-- SPI
| |-- Wire
| |-- SPI
|-- simpleRPC @ 3.2.0
|-- Arduino_MachineControl @ 1.1.1
| |-- SPI
| |-- Wire
| |-- ArduinoRS485 @ 1.0.5
|-- SparkFun Spectral Triad AS7265X @ 1.0.3
| |-- Wire
|-- USBHID @ 1.0
|-- rpclib @ 1.0.0
|-- Wire
Building in release mode
Compiling .pio\build\portenta_h7_m7\src\main.cpp.o
Linking .pio\build\portenta_h7_m7\firmware.elf
.pio\build\portenta_h7_m7\src\main.cpp.o: In function `setup':
main.cpp:(.text.setup+0xc): undefined reference to `rpc::server::server(unsigned short)'
main.cpp:(.text.setup+0x78): undefined reference to `rpc::server::~server()'
main.cpp:(.text.setup+0x4c0): undefined reference to `rpc::server::run()'
main.cpp:(.text.setup+0x518): undefined reference to `rpc::server::~server()'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\portenta_h7_m7\firmware.elf] Error 1