arduino-cli upload failing with 3rd party board

Hi, I'm having trouble using arduino-cli to upload from a linux machine to a 3rd party board. The error on the upload command is a cryptic "panic: runtime error: invalid memory address or nil pointer dereference"

Some important notes:

  • I am able to build and upload from my mac to the 3rd party board
  • I am able to build and upload to an arduino mega from my linux machine
  • The board is based on MKRZERO and I'm able to build from my linux machine for MKRZERO but have no board to upload it to. I can upload the MKRZERO build to the 3rd party board but the sketch doesn't run properly.

The command I'm using to build is

arduino-cli compile -b P1AM-100:samd:P1AM-100_native Blink

(or swapping the -b argument for arduino:samd:mkrzero or arduino:avr:mega)

The command I'm using to upload is

arduino-cli upload -p /dev/ttyACM0 -b P1AM-100:samd:P1AM-100_native Blink

My linux machine is running Ubuntu 16.04.6. Here's the output from uname -a:

$ uname -a
Linux tegra-ubuntu 4.4.38-tegra #1 SMP PREEMPT Thu May 17 00:15:19 PDT 2018 aarch64 aarch64 aarch64 GNU/Linux

I know this is a broad and hard to define problem, so I'm curious if anyone knows of any files / lines I might try editing to get past this step. For instance, I was having trouble with the build step, and found a line in platform.txt (~/.arduino15/packages/P1AM-100/hardware/samd/1.6.20/platform.txt) that solved it, indicating that maybe the 3rd party developers have another line that needs fixing. (and yes, I'm talking to the developers there as well but they are scratching their heads too.)

Let me know if you'd like additional information.
Thanks!

I really need to take a look at this "P1AM-100" boards platform you're using.

Is it something you found online? If so, please post a link. If you made any modifications to it, I need to know exactly what you did.

If you wrote it yourself, I'll need to get a link or a copy of the files from you.

here's a link to the board: https://www.automationdirect.com/adc/overview/catalog/programmable_controllers/open_source_controllers_(arduino-compatible)/productivityopen_(arduino-compatible)

(tldr it's an industrialized PLC built around an Arduino MKR ZERO)

Haven't made any modifications to it