Arduino Due (or other SAM3/4) upload fails with ATMEL ICE JTAG on VSCode with PlatformIO

Hi Max,

thanks a lot for your fast reply, that is really impressive!

With regards to the Flash library, I am using the Due Flash storage

DueFlashStorage/DueFlashStorage.h at master · sebnil/DueFlashStorage · GitHub

I am sure that some header #defines for the memory size/ start addresses can be redefined, but I am anyhow tending now to switch from flash storage to external EEPROM storage (which we do happen to have on an RFID chip) as I like to keep them separated. I only need a few bytes for configuration purposes.

I believe that I will stick to the easier solution (for adapting to the sam3x4e) and just limit the maximum flash memory size. I do not want to change compiler switches as I do not want to “rig” the settings once they work. The memory requirement of the code is really small, so I will not need any size optimization.

Best regards,
Clemens