[Solved] Help with ATSAM3X8E (Due barebones)

lynxz3:
As per baselsw recommendation i'll post this here.

Hi baselsw,
I was looking at your schematic for the barebones DUE clone, I wanted to confirm something from you,
SV1 headder's pin 1 is pin 1 on atsam3x8e and pin 1on SV2 is pin 37 on the atsam3x8e and so on so forth?

Also i see that in your schematic for VDDCORE and VDDPLL pins on the atsam3x8e you are powering them with 1.8V but i don't see where you are creating the 1.8V. I don't see any resistive divider or any regulated source with that output. Can you tell me how you are creating that source.

Thanks

Taha

Hey Taha,

Yes, pin 1 on SV1 is pin 1 on atsam3x8e, the same goes for SV2, so you're correct there.

The 1.8V is supplied from the internal voltage regulator (pin 56 [VDDOUT]).. You can see how it's connected on page 22 in the atsam3x8e datasheet, here is the link: http://www.atmel.com/Images/doc11057.pdf

If you have any more questions feel free to ask. But please use the thread instead, so others can learn also =)..

Best regards
//Basel

I thought i'd add this here for everyone else SV2 in baselsw's schematic the pin numbers is are incorrectly labled SV2 e.g. Pin1 goes to ATSAM3X8E - Pin38 (DHSDM) not Pin37. So if anyone uses it as a reference they should be weary of this.

Just looking at the pins can be confusing.. It's good that you double checked that.. Still the electrical connections in the schematic are correct.. Let's make it easier for everyone.. I found a excel file with the pinout for my board..

SAM3X8E pinout.xlsx (15.6 KB)

So, you got this working and you're currently programming the chip over USB?

You mentioned using Atmel Studio, is that with a USB cable, or using a SAM-ICE?

jtw11:
So, you got this working and you're currently programming the chip over USB?

You mentioned using Atmel Studio, is that with a USB cable, or using a SAM-ICE?

Yes... USB only.. I don't have SAM-ICE or any other JTAG module.. Fortunately the chip comes preloaded with a bootloader... I've programmed the chip with Atmel Studio over USB.. It's simple.. Just create a external tool (http://www.atmel.no/webdoc/atmelstudio/atmelstudio.section.csl_qbq_kc.html) in Atmel Studio.. The tool will consist of a call to bossac (just like the Arduino IDE).. If you need further details let me know..

//Basel

I'll look into that in the morning, thanks.

When you say you've been programming it from Atmel Studio, what have you been doing code wise? Coding using pure C and not the Arduino libraries etc?

jtw11:
I'll look into that in the morning, thanks.

When you say you've been programming it from Atmel Studio, what have you been doing code wise? Coding using pure C and not the Arduino libraries etc?

Well, I wouldn't call it pure C.. But sure.. C/C++.. No arduino libraries.. In the case of the SAM chip, I'm only using ASF (Atmel Software Framework) in Atmel Studio..

P.S: Arduino IDE uses ASF .. D.S

You're welcome bro =)..
//Basel

I see - well done again!

EDIT - I've just been playing with Atmel Studio, my Due and SAM-BA trying to get some results. Maybe you can help.

When I open SAM-BA, under 'Select your board' - what did you select, no_board? As when I press connect SAM-BA just disappears but seems to be running in the background according to Windows Task Manager.

jtw11:
I see - well done again!

EDIT - I've just been playing with Atmel Studio, my Due and SAM-BA trying to get some results. Maybe you can help.

When I open SAM-BA, under 'Select your board' - what did you select, no_board? As when I press connect SAM-BA just disappears but seems to be running in the background according to Windows Task Manager.

Well, I remember I had a lot of trouble with SAM-BA.. I tried no_board and also atmels official sam3x8e board (I'm currently at work and can't remember the name of the board).. In both cases I got an error and the board refused to connect.. I also remember that SAM-BA disappeared just as you describe it.. I didn't look into it further.. I'll have a look at it when I get home and report back!

//Basel

Thanks, I may get Atmel in on this and see what they have to say.

baselsw:
To all of you, yes it works now :D:D:D:D.. It was probably noise from the breadboard. After two hours of trying to fit the break out (made wrong measurements) board to my newly soldered board it's finally working.

Here is some pictures as proof =P:

Board soldered (Front): https://dl.dropbox.com/u/74389175/BaselM3Proto/IMAG0457.jpg
Board soldered (Back): https://dl.dropbox.com/u/74389175/BaselM3Proto/IMAG0458.jpg

Breakout board attached to the board (Front): https://dl.dropbox.com/u/74389175/BaselM3Proto/IMAG0461.jpg

When you attach the USB the first time, you need the drivers delivered with SAM-BA. After installing the drivers you should get the following: https://dl.dropbox.com/u/74389175/BaselM3Proto/sam_ba_com.png

Then open Arduino IDE and upload the blink sketch. The board will restart as Arduino Due (you'll need to install the arduino due drivers that comes with the arduino IDE). After install you should get the following: https://dl.dropbox.com/u/74389175/BaselM3Proto/arduino_blink.png.

If you've got any questions hit me! =P

And by the way I've changed a small thing in the schematic so here is the updated version:

Schematic: https://dl.dropbox.com/u/74389175/BaselM3Proto/BaselsM3ProtoV1.0.sch
Board: https://dl.dropbox.com/u/74389175/BaselM3Proto/BaselsM3ProtoV1.0.brd

Nice work & post!
So how did you solder AT91SAM3X8E to PCB? Is there any 144 LFBGA Adapter available to ease use of AT91SAM3X8E on custom pcb build like yours?
From what distributor of electronic component did you buy AT91SAM3X8E? I tried farnell but they sell only Arduino Due. What's the price?
I just found it: http://si.farnell.com/jsp/displayProduct.jsp?sku=2318838&action=view&CMP=GRHS-1000082, price: €8.57
Would it be possible for you to find out minimalistic number of periferal passive components? Are the 2 oscillators really needed? Why are there two of them?
I would need AT91SAM3X8E because of 700kHz ADC. At328p is simply too slow.

tsaG:
So, thats how my "minimum" looks like. Well, thats all I need. I wont be frugal with the capacitors and hope this works :smiley:
Sorry for the wrong symbol of the switch (Schalter), but Multisim/Ultiboard doesnt allow different footprints for buttons :-/

Have you tried that - I mean have you soldered it acording this schematics?
And - is it working?
Can you post schematics and pcb - what design program you use? DesignSpark PCB maybe? :wink:

Can I use some other inductor (BLM21PG300SN1D) instead of Murata Ferrite Bead for EMI Suppression (Chip Bead), 2 x 1.25 x 0.85 mm (0805)? I mean I found 0805 package hard to solder...

I can also see both crystal 12MHz and 32kHZ are in atsam3x.
So is it really necessery to put them on pcb as extra? I know external are more precise - but still would atsam3x work without external ones?

OK just for the record,

board works OK and it can be programmed through the arduino IDE and on board USB. USB driver was installed by the chip itself. Overwriting flash with aruino was done using /u flag of bossac.exe that comes with arduino .../hardware/tools.
Video of led blinking:
https://plus.google.com/110230689089207649183/posts/az8U2MYvNPa

The chip is 100pin qpf ATSAM3X8CA.

However I also noticed that cpu gets quite warm *around (45degreeC).

HI!
thank you all for sharing your knowledge and time, as a contribution I can say: you do not need the external 32K oscillator , my Arduino DUE have not incorporated and works perfectly (this is for use with the RTC that I think it is better to use an external one for the possibility of a battery backup as DS1307).
zhivkec
did you compiled a sketch in ARDUINO IDE 1.5x and you load in a ATSAM3X8CA?
I wanted to do that in the beginning, but due to lack of information and components (in my country do not get these chips) finally I didn't , but it was in my plans, I wish you could confirm this.
greetings
Erick

Hi,

  1. Does anyone have a BOM for this project?
  2. Can someone confirm that the two oscillators (12 MHz and 32 KHz are not needed)

Thanks.

erictronico:
HI!
thank you all for sharing your knowledge and time, as a contribution I can say: you do not need the external 32K oscillator , my Arduino DUE have not incorporated and works perfectly (this is for use with the RTC that I think it is better to use an external one for the possibility of a battery backup as DS1307).
zhivkec
did you compiled a sketch in ARDUINO IDE 1.5x and you load in a ATSAM3X8CA?
I wanted to do that in the beginning, but due to lack of information and components (in my country do not get these chips) finally I didn't , but it was in my plans, I wish you could confirm this.
greetings
Erick

I compiled it on arduino 1.5.8.
When I plug usb connector to windows machine I get following in my device manager:

In arduino IDE I can see board as:

The BOM is here:
Report Written : Tuesday, June 16, 2015 03:17
Design Path : C:\Users\klemen\Dropbox\ArduinoDue\ArduinoDue.sch
Design Title :
Created :
Last Saved : 15.9.2014 3:08:54
Editing Time : 3569 min
Units : thou (precision 2)

Bill of Materials generated with DesignSpark PCB - www.DesignSpark.com/pcb

"Ref Name","Qty","Component","Value","Package","Manufacturer","MPN","RS Part Number","Other Part Number","Description"
"R8","1","1206","100k","1206","","","","","Resistor"
"C15","1","Capacitor_1206","1uF","1206_Klemen","","","","","Capacitor"
"C1","1","Capacitor_1206","10nF","1206_Klemen","","","","","Capacitor"
"C10","1","Capacitor_1206","10pF","1206_Klemen","","","","","Capacitor"
"C11","1","Capacitor_1206","22pF","1206_Klemen","","","","","Capacitor"
"C12","1","Capacitor_1206","22pF","1206_Klemen","","","","","Capacitor"
"C13","1","Capacitor_1206","22pF","1206_Klemen","","","","","Capacitor"
"C14","1","Capacitor_1206","22pF","1206_Klemen","","","","","Capacitor"
"C6","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C16","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C17","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C18","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C19","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C20","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C21","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C7","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C22","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C23","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C24","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C25","1","Capacitor_1206","100nF","1206_Klemen","","","","","Capacitor"
"C9","1","Capacitor_1206_Electrolyte","2.2uF","SMD_Electrolyte","","","","","Capacitor"
"C8","1","Capacitor_1206_Electrolyte","4.7uF","SMD_Electrolyte","","","","","Capacitor"
"CONN2","1","CONN15X2","","DIL","","","","",""
"PL3","1","CONN_SIL_2","","DSC","","","","","2 way Pin Header"
"PL4","1","CONN_SIL_2","","DSC","","","","","2 way Pin Header"
"PL5","1","CONN_SIL_2","","DSC","","","","","2 way Pin Header"
"PL6","1","CONN_SIL_2","","DSC","","","","","2 way Pin Header"
"PL7","1","CONN_SIL_2","","DSC","","","","","2 way Pin Header"
"PL8","1","CONN_SIL_2","","DSC","","","","","2 way Pin Header"
"Q2","1","CRYSTALHC49UV","12MHz","HC49U-V","","","","","CrystalsVarious standard crystals. Proven footprints. Spark Fun Electronics SKU : COM-00534"
"Q1","1","CRYSTALTC26H","32kHz","TC26H","","","","","CrystalsVarious standard crystals. Proven footprints. Spark Fun Electronics SKU : COM-00534"
"Ground1","1","Ground","","SPICE","","","","",""
"Ground2","1","Ground","","SPICE","","","","",""
"Ground3","1","Ground","","SPICE","","","","",""
"Ground4","1","Ground","","SPICE","","","","",""
"Ground5","1","Ground","","SPICE","","","","",""
"Ground6","1","Ground","","SPICE","","","","",""
"Ground7","1","Ground","","SPICE","","","","",""
"Ground8","1","Ground","","SPICE","","","","",""
"Ground9","1","Ground","","SPICE","","","","",""
"Ground10","1","Ground","","SPICE","","","","",""
"Ground11","1","Ground","","SPICE","","","","",""
"Ground12","1","Ground","","SPICE","","","","",""
"Ground13","1","Ground","","SPICE","","","","",""
"Ground14","1","Ground","","SPICE","","","","",""
"Ground15","1","Ground","","SPICE","","","","",""
"Ground16","1","Ground","","SPICE","","","","",""
"Ground17","1","Ground","","SPICE","","","","",""
"Ground18","1","Ground","","SPICE","","","","",""
"Ground19","1","Ground","","SPICE","","","","",""
"Ground20","1","Ground","","SPICE","","","","",""
"Ground21","1","Ground","","SPICE","","","","",""
"Ground22","1","Ground","","SPICE","","","","",""
"Ground23","1","Ground","","SPICE","","","","",""
"Ground24","1","Ground","","SPICE","","","","",""
"Ground25","1","Ground","","SPICE","","","","",""
"CONN1","1","JTAG-HEADER","","DIL","","","","",""
"JTAGBSCAN","1","JUMPER-2PTH","","1X02","","","","","JumperBasic 0.1"" spaced jumper. Use with breakaway headers."
"U3","1","LD1117V33C","","TO-220","STMicroelectronics","LD1117V33C","6869767","","LDO Regulator 3.3V 1.3A TO220"
"LED1","1","LED1206","","LED-1206","","","","","LEDsStandard schematic elements and footprints for 5mm, 3mm, 1206, and 0603 sized LEDs. 5mm - Spark Fun Electronics SKU : COM-00529 (and others)"
"MUSB1","1","MiniUsbB","","MINI-USB","","","","",""
"R12","1","RESISTOR1206","0ohm","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R2","1","RESISTOR1206","6.8k","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R7","1","RESISTOR1206","6.8k","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R3","1","RESISTOR1206","15k","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R4","1","RESISTOR1206","22k","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R6","1","RESISTOR1206","39","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R5","1","RESISTOR1206","39R","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R1","1","RESISTOR1206","100k","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R9","1","RESISTOR1206","100k","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R10","1","RESISTOR1206","100k","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"R11","1","RESISTOR1206","100k","1206","","","","","ResistorBasic schematic elements and footprints for 0603, 1206, and PTH 1/10th watt (small) resistors."
"SW2","1","ts695","","DIL","","","","",""
"SW3","1","ts695","","DIL","","","","",""

The schematics is here:

G+ album is here: :slight_smile:
https://plus.google.com/u/0/photos/110230689089207649183/albums/6056369572177773473

Hope it could help someone...

Hello,

It's an old topic, but I would like to ask something about.
Is it possible to program the SAM3X8E with ICSP (MOSI,MISO,SCK...) ?
ie loading sketches into SAM3X8E with ICSP.

Regards
Etienne

Hi
excellent information. thank you so much for sharing. reha