arduino-cli icon indicating copy to clipboard operation
arduino-cli copied to clipboard

Excessive FQBN validation

Open grav opened this issue 1 year ago • 0 comments
trafficstars

Describe the problem

The FQBN validation seems excessive - it hinders using my board with the FQBN dadamachines - M4:samd:doppler - apparently because of the dash (-), which previously worked fine.

I tried disabling the check, and then I can succesfully list the board, and compile and upload to the board with my fork.

To reproduce

$ arduino-cli board list
Error starting discovery: Invalid FQBN: fqbn's field dadamachines - M4 contains an invalid character
Port         Protocol Type              Board Name FQBN Core
/dev/ttyACM0 serial   Serial Port (USB) Unknown

Expected behavior

$ ./arduino-cli board list
Port         Protocol Type              Board Name           FQBN                           Core
/dev/ttyACM0 serial   Serial Port (USB) dadamachines doppler dadamachines - M4:samd:doppler dadamachines - M4:samd

Arduino CLI version

arduino-cli Version: 1.0.3-arch Commit: 8b6ad258e88581a9e77b2eede65aeeeeb265008c Date:

Operating system

Linux

Operating system version

Linux 6.10.6-2-aarch64-ARCH aarch64

Additional context

I'm not sure if it's a bug, or if the fqbn check is actually valuable. If so, maybe there should be a switch to ignore invalid characters? I'd be happy to try and implement it.

The specific board is not manufactured anymore, and I'm not sure if I can change the fqbn somehow.

Issue checklist

  • [x] I searched for previous reports in the issue tracker
  • [x] I verified the problem still occurs when using the nightly build
  • [x] My report contains all necessary details

grav avatar Oct 09 '24 20:10 grav