D21G with Raspbian
Hi there,
I need some help to configure the D21G on Raspbian. In Windows IDE everything is working fine, but i need to flash a sketch remotely over linux shell. So I installed the SAMD package with the board manager and in Windows I would install the driver as explained but what to do know now in linux? The D21G does not appear in the boards list...
regards
Christian
Hi Tom,
we want to keep it as simple as possible and we would like to use
a usb connection. I recognized that I installed the wrong package.
Trying to install the correct package named "Industruino SAMD
Boards M0+... V1.0.1" (right?) i got different failure reports.
"Tool bossac is not available for your OS" or "Tool openocd is not
available..." or "Tool CMSIS.... "
Any ideas?
Hi, in Linux no additional driver needs to be installed. Did you install the Industruino D21G board package through the board manager in the Arduino IDE? Actually, if your purpose is to upload a sketch remotely, you could do that with just the Industruino and its Ethernet module, making use of the TFTP bootloader as described here: https://industruino.com/blog/our-news-1/post/remote-sketch-upload-via-ethernet-27If you still want to use a Pi, let us know if you encounter further issues.
--Tom
Sent by Industruino using Odoo
Hi, it seems other people have had similar problems with M0-style Arduino boards on the Raspberry Pi, but it might be fixed by using the latest Arduino IDE rather than the one in the Pi repository. Did you download the IDE from https://www.arduino.cc/en/Main/Software (Linux ARM)? If not, please try that. (according to https://forum.arduino.cc/index.php?topic=445623.0)
Hi Tom, Arduino IDE is 1.8.5 on Debian Stretch (Raspberry Pi 3B+). I have now Installed the M0+ 1.6.18 by Arduino where the D21G should be integrated (I did not know before). The Industruino does not exist in the boards.txt but i choose the MKRZERO with AVRISP mkII programmer. Compilation works well but while uploading the sketch I get an checksum verification error. Programming a serial output with Windows is also shown on the Raspberry IDE at ttyACM0. Regards Christian Here is the IDE's output: Erzwinge Reset durch öffnen/schließen mit 1200 bps auf dem Port /dev/ttyACM1 PORTS {/dev/ttyACM1, /dev/ttyAMA0, } / {/dev/ttyACM1, /dev/ttyAMA0, } => {} PORTS {/dev/ttyACM1, /dev/ttyAMA0, } / {/dev/ttyAMA0, } => {} PORTS {/dev/ttyAMA0, } / {/dev/ttyACM0, /dev/ttyAMA0, } => {/dev/ttyACM0, } Found upload port: /dev/ttyACM0 /home/pi/.arduino15/packages/arduino/tools/bossac/1.7.0/bossac -i -d --port=ttyACM0 -U true -i -e -w -v /tmp/arduino_build_616617/iz_ndustruino_test.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 : 8192 Pages : 3968 Page Size : 64 bytes Total Size : 248KB 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=0x2000) done in 0.756 seconds Write 20596 bytes to flash (322 pages) write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000) [===== ] 19% (64/322 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000) [=========== ] 39% (128/322 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000) [================= ] 59% (192/322 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x5000, size=0x1000) [======================= ] 79% (256/322 pages)write(addr=0x20005000,size=0x1000) writeBuffer(scr_addr=0x20005000, dst_addr=0x6000, size=0x1000) [============================= ] 99% (320/322 pages)write(addr=0x20005000,size=0x80) writeBuffer(scr_addr=0x20005000, dst_addr=0x7000, size=0x80) Beim Hochladen des Sketches ist ein Fehler aufgetreten [==============================] 100% (322/322 pages) done in 0.102 seconds Verify 20596 bytes of flash with checksum. checksumBuffer(start_addr=0x2000, size=0x1000) = 3bd Verify failed
Hi Christian, it seems the upload worked correctly, only the verify failed. i assume the sketch is running fine then?
can you let us know if the setup is working now? thanks- Tom
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: 6/30/18, 8:57 AM |
Seen: 2520 times |
Last updated: 8/12/18, 4:27 AM |
Hi, in Linux no additional driver needs to be installed. Did you install the Industruino D21G board package through the board manager in the Arduino IDE? Actually, if your purpose is to upload a sketch remotely, you could do that with just the Industruino and its Ethernet module, making use of the TFTP bootloader as described here: https://industruino.com/blog/our-news-1/post/remote-sketch-upload-via-ethernet-27 If you still want to use a Pi, let us know if you encounter further issues.