Arduino cli on lattepanda

I want to use serial interface on the arduino cli environment.

So I installed the arduino cli on the lattepanda board.
But I don't know the --fqbn option to compile a source code.

On the lattepanda the board list is like the followings.

hslab@hslab:~/test/MyFirstSketch$ arduino-cli board list
Port Protocol Type Board Name FQBN Core
/dev/ttyACM0 serial Serial Port (USB) Unknown
/dev/ttyS4 serial Serial Port Unknown

And the core list is like the follwongs.
hslab@hslab:~/test/MyFirstSketch$ arduino-cli core list
ID Installed Latest Name
arduino:samd 1.8.13 1.8.13 Arduino SAMD Boards (32-bits ARM Cortex-M0+)

What should I do to compile my source code?

Thanks

Hi @andykim17

I'm not sure I understood correctly what you mean by this. Please provide a more detailed description of your goal to help me to understand it.

Which Arduino board do you want to compile for?

I installed the arduino cli on the lattepanda board to use the AI Port / serial port
which is provided by arduino compatible connector(on lattepanda)

The compile example is provided at the following site.

This site explains how to compile a source code. ==> arduino-cli compile --fqbn arduino:samd:mkr1000 MyFirstSketch

The board list on this site is like the following.

I to am confused by what you say .
Latte panda has the Arduino IDE already loaded ( upgradable )
I guess you can install cli from the windows part on the PC , whether it works here I’ve no idea - it does need other parts installing as per the Git.
The built in board is a Leonardo compatible and the serial port connects direct to the PC part to allow connection to the PC , uploading sketches or sending/ receiving data . Being a Leonardo the PC keeps moving the COM port number .
In you want to use another serial connection, you probably have to use software serial .
Not sure any of that helps but …
Why do you need to run the CLI version , I’ve just developed code on my PC and then copy to the panda to compile and upload with the IDE?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.