D21G uploader in Mac
Does anyone know what uploader is used in a Mac for the D21G board ? I've found the binaries, .hex and .elf, from the Arduino compilation, and I know that in Linux 'bossac' is the right uploader to use. But in a Mac ?
I can't realize that from the (verbose) compiler output as at the end of compilation I only see, in red, this:
Atmel SMART device 0x10010005 found
Device : ATSAMD21G18A
Chip ID : 10010005
Version : v2.0 [Arduino:XYZ] Aug 1 2017 11:04:45
Address : 16384
Pages : 3840
Page Size : 64 bytes
Total Size : 240KB
Planes : 1
Lock Regions : 16
Locked : none
Security : false
Boot Flash : true
BOD : true
BOR : true
Arduino : FAST_CHIP_ERASE
Arduino : FAST_MULTI_PAGE_WRITE
Arduino : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
done in 0.796 seconds
Write 54624 bytes to flash (854 pages)
[== ] 7% (64/854 pages)
[==== ] 14% (128/854 pages)
[====== ] 22% (192/854 pages)
[======== ] 29% (256/854 pages)
[=========== ] 37% (320/854 pages)
[============= ] 44% (384/854 pages)
[=============== ] 52% (448/854 pages)
[================= ] 59% (512/854 pages)
[==================== ] 67% (576/854 pages)
[====================== ] 74% (640/854 pages)
[======================== ] 82% (704/854 pages)
[========================== ] 89% (768/854 pages)
[============================= ] 97% (832/854 pages)
[==============================] 100% (854/854 pages)
done in 0.340 seconds
Verify 54624 bytes of flash with checksum.
Verify successful
done in 0.050 seconds
CPU reset.
Tom,
I am sorry: I missed enabling verbose during upload, just for compilation !
The command used in my Mac is bossac as well.
btw please find below my verbose output and in bold the bossac command:
.......
Lo sketch usa 54176 byte (20%) dello spazio disponibile per i programmi. Il massimo è 262144 byte.
Forzo il reset aprendo e chiudendo a 1200bps la porta /dev/cu.usbmodem1461
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.MALS, /dev/cu.SOC, /dev/cu.usbmodem1461, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.MALS, /dev/tty.SOC, /dev/tty.usbmodem1461, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.MALS, /dev/cu.SOC, /dev/cu.usbmodem1461, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.MALS, /dev/tty.SOC, /dev/tty.usbmodem1461, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.MALS, /dev/cu.SOC, /dev/cu.usbmodem1461, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.MALS, /dev/tty.SOC, /dev/tty.usbmodem1461, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.MALS, /dev/cu.SOC, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.MALS, /dev/tty.SOC, } => {}
PORTS {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.MALS, /dev/cu.SOC, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.MALS, /dev/tty.SOC, } / {/dev/cu.Bluetooth-Incoming-Port, /dev/cu.MALS, /dev/cu.SOC, /dev/cu.usbmodem1461, /dev/tty.Bluetooth-Incoming-Port, /dev/tty.MALS, /dev/tty.SOC, /dev/tty.usbmodem1461, } => {/dev/cu.usbmodem1461, /dev/tty.usbmodem1461, }
Found upload port: /dev/cu.usbmodem1461
/Users/stefanotosi/Library/Arduino15/packages/industruino/tools/bossac/1.7.0-industruino/bossac-0x4000 -i -d --port=cu.usbmodem1461 -U true -i -e -w -v /var/folders/5m/yl7dz0tx00b46pbgdcs3vs3w0000gn/T/arduino_build_588230/dumDab.ino.bin -R
Set binary mode
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v2.0 [Arduino:XYZ] Aug 1 2017 11:04:45
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device : ATSAMD21G18A
readWord(addr=0)=0x20007ffc
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID : 10010005
version()=v2.0 [Arduino:XYZ] Aug 1 2017 11:04:45
Version : v2.0 [Arduino:XYZ] Aug 1 2017 11:04:45
Address : 16384
Pages : 3840
Page Size : 64 bytes
Total Size : 240KB
Planes : 1
Lock Regions : 16
Locked : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security : false
Boot Flash : true
readWord(addr=0x40000834)=0x7000a
BOD : true
readWord(addr=0x40000834)=0x7000a
BOR : true
Arduino : FAST_CHIP_ERASE
Arduino : FAST_MULTI_PAGE_WRITE
Arduino : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x4000)
done in 0.797 seconds
Write 54624 bytes to flash (854 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000)
[== ] 7% (64/854 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x5000, size=0x1000)
[==== ] 14% (128/854 pages)write(addr=0x20005000,size=0x1000)
etc etc
Hi Stefano,
Can you switch on verbose output for compilation and upload.
On my Linux system, i see about 10 orange lines before the output you quote, and just before that, in white, the bossac command, after a line 'Found upload port: /dev/ttyACM0'
it looks like this:
/home/tom/.arduino15/packages/industruino/tools/bossac/1.7.0-industruino/bossac-0x4000 -i -d --port=ttyACM0 -U true -i -e -w -v /tmp/arduino_build_363388/sketch_name.ino.bin -R
Your answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Keep Informed
About This Forum
This community is for professionals and enthusiasts of our products and services.
Read GuidelinesQuestion tools
Stats
Asked: 9/21/18, 10:04 AM |
Seen: 2396 times |
Last updated: 9/24/18, 8:19 AM |