niladridmgit / CuriosityNiladriSAME51

CuriosityNiladriSAME51 Arduino Package
7 stars 2 forks source link

Problems running Blink example #3

Open technoblogy opened 1 year ago

technoblogy commented 1 year ago

Hello Niladri,

It's great that you've created this! I have a Curiosity Nano SAME51 and I want to try and get my Lisp interpreter, uLisp, working on it, and your package should be a great help.

I have run into a couple of problems trying to upload the Blink example to the board:

If you have the Arduino IDE preferences set up like this:

Screen Shot 2023-03-14 at 11 11 50

the upload fails with the error:

Error while uploading: missing 'upload.params.quiet' configuration parameter

Fixing that problem I then get the error:

C:\Program Files (x86)\Atmel\Studio\7.0\atbackend\atprogram.exe -t nedbg -i SWD -d atsame51j20a program -f /var/folders/fd/7rbn3jxx5j942sk5kn0vhb740000gn/T/arduino_build_354462/Blink.ino.elf --verify 
java.io.IOException: Cannot run program "C:\Program Files (x86)\Atmel\Studio\7.0\atbackend\atprogram.exe": error=2, No such file or directory

I'm running Arduino IDE 1.8.19 on a MacBook Pro on MacOS 10.13.6 (High Sierra).

Any help would be appreciated - thanks!

niladridmgit commented 1 year ago

Hi unfortunately for flashing the elf file you need windows pc and Atmel Studio installed on it. In mac os you might be able to build your code successfully but flashing the binary i ll suggest you to go to below path /var/folders/fd/7rbn3jxx5j942sk5kn0vhb740000gn/T/arduino_build_354462/Blink.ino.elf (every time you build your code, new path will create and without closing the arduino ide you have to download the file or lese it ll delete automatically)

once you download the elf file, convert the elf file to hex and use MP Lab x IPE (mac version available) to flash the hex file

technoblogy commented 1 year ago

Thanks for the reply, David.