Skip to content

arduino/portentax8-m4-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

portentax8-m4-proxy

Spell Check Sync Labels status

How-to-use

arduino-cli compile -b arduino:mbed_portenta:portenta_x8 -v libraries/RPC/examples/PortentaX8_EchoServer -u
  • Build the Go example application and upload to Portenta X8
cd example
GOOS=linux GOARCH=arm64 go build
adb push example /home/fio
  • Login your Portenta X8 and execute the example application
adb shell
./example
  • On your PC open a terminal via the Portenta X8's tty/ACMx serial interface and interact with the M4 sketch
ll /dev/serial/by-id/*
lrwxrwxrwx 1 root root 13 Jän 19 07:43 /dev/serial/by-id/usb-Arduino_Portenta_X8_2D16BA09DAB6FAD9-if02 -> ../../ttyACM0
minicom -D /dev/ttyACM0
...

How-to-debug

Note: the proxy is built into the Yocto image via this recipe. Should it become necessary to debug and build a custom version you can also build it on your PC and then push and execute it on the Portenta X8.

cd proxy
GOOS=linux GOARCH=arm64 go build
adb push proxy /home/fio

Before starting the locally built proxy make sure that the one automatically started as a service is disabled.

ps -A | grep m4_proxy             
   3159 pts/0    00:05:17 m4_proxy
sudo killall m4_proxy
sudo ./proxy

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published