hello everyone,
I developed my own board using Arduino due processors. But I want to program it with Arduino Ide. I had previously developed my own card with Atmega 2560 and performed these operations. But I couldn't find a documentation with Arduino Due. Atmega 16u2 is also available on my card. Same as Arduino Due board. But I know it takes one more step to program with Arduino IDE. But I couldn't find out what it was. Can you help me ?
Due has SAMD on board. If you can help the don't build a custom board with these uCs.
Due is SAM3X8E of course. Arduino IDE uses the BOSSA program to download code via USB port, so if your custom board has USB with 16U2 chip then it should work via that port.
This page may or not be helpful:
The bootloader of the SAM3X8E (16k worth - includes a "monitor" as well) is built into the chip, and supports loading of code over either Serial or USB (using BOSSA, aka "SAM-BA") This will run by default on a brand-new chip, or one that has been erased using the ERASE pin.
See the datasheet description of ERASE, and section 20 for info on the bootloader.
(It looks like the details of how to get into the bootloader are a bit obfuscated. )
I cannot find exactly solutions. I dont know, What I will do?
For example , I used Nick Cammon Arduino Bootloader for Atmega2560 (arduino mega) Thanks to this bootloader, I was using my own PCB board like Arduino Mega . I want to the same with Arduino Due.
You are doing something that few people have done before, so you are unlikely to find "exact solutions". You will need to learn a bunch of stuff.
If you have copied the Due schematic exactly, then you can program the 16u2 via it's ICSP header with firmware to support the Due "programming port". Then you should be able to use the Arduino IDE to program sketches. Perhaps that is what you are trying to do?
The process is described here :
You can also program the SAM3X8E directly without the 16u2. ISTR the 16u2 toggles the ERASE line, which if you program directly needs to be done manually. It's been a while since I played with a Due.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.