I am trying to program the ATSAMD21G18A MCU using ATMEL ICE to run a sample Arduino code to test my Bluetooth module. I tried to import the Arduino project to ATMEL Studio 7 by creating an Arduino sketch in AS7 but I am facing various library issues when I try to build the code. I also tried to program the MCU through Arduino IDE using Upload using programmer option. But I am facing the following error.
Error: at91samd21g18.cpu -- clearing lockup after double fault
What is the best way to program an Arduino code to ATSAMD21G18A MCU?
I'm facing the same issue,
Here some other details:
bootloader burns flawlessly
uploading with programmer gives that error and MCU halts
but reburning the bootloader the MCU start executing the program that previously gave error.
So the program uploads but it is unable to clear lockup.
Any suggestions?
I have the same issue, programing Arduino MKR 1010, through the isp connector on the bottom side of board.
After charging the program, it doesn't start, but if I recharge the bootloader it starts.
Someone have seen same problem after this procedure? Or I can program bords in this way without problems?