Hi,
I am attempting to use Platform IO to burn a bootloader from Ubuntu onto an ATSAMD21G18A custom board. Very new to Platform IO but MP Labs does not have any technology to do this on ARM64. I do not want any IDE I need to be able to do this from the command line so I can automate our assembly line process.
I am using a J Link attached to USB on Ubuntu and generally understand this can/should work. I have tried many different ini approaches – below is the latest one that fails with a very long exception on KeyError: ‘framework-arduino-samd-samd’
[env:samd21_custom]
platform = atmelsam
board = samd21_custom_board ; Use your specific board ID or a generic one
board_build.variant = samd21_custom ; Matches the “variant” in JSON
framework = arduino
upload_protocol = jlink ; e.g., jlink, atmel-ice, etc.
extra_scripts = pre:flash_bootloader.py
custom_bootloader_path = ./ThioBootloader.X.production.bin
I have a prebuilt bootloader. Working. Tested but provisioned using Pic Kit 5 and built using MP Labs IDE. I would prefer for Platform not to have the build the bin or hex but that I use the one I build from MP Labs IDE.
Can any help point me to a doc/ticket/whatever to help me through this?