I have a custom developed device with SAMD21G MCU and SAM-BA bootloader on top (SparkFun version)
I have experience lot of issue and instability using the Arduino IDE and the BOSSAC programmer over USB to load executable on the flash and sometimes I got error in uploading sometimes in the verification phase..sometimes the load is ok but the code is corrupted
I check USB cable , I tried different HW (windows based)…but the issue is quite random and also sparkfun report issue on the SAMD21 USB-to-Serial converter and programmer and my impression is that the tool chain (arduino IDE + bossac + SAM-BA bootloader) is quite fragile !
Don’t know if there are more “stable” and performant bootloader (native zero bootloader?) but I would like to change approach moving to a MSD (mass storage device) bootloader with just drug and drop of the .bin file in the flash memory but in the same time would like to keep a certain compatibility with Arduino IDE
Is there any way after sketch compilation via IDE to export/copy the .bin executable file in a specified folder (the emulated flash disk) ? maybe using a “custom programmer” that just copy paste the .bin generated file to the target folder
Idea is to use IDE for compilation and that use a drag and drop approach of the .bin file with a MSD bootloader
Any idea how to do or experience?