Go Down

Topic: [Solved] Help with ATSAM3X8E (Due barebones) (Read 12534 times) previous topic - next topic

zachtos

Hmm, I'm looking to build a barebones board like yours, but from goldphoenix PCB using EAGLEcad and will want to find a way to upload hex files via the native USB port.  So it sounds like I can do that but not sure about the user interface yet.

I need a very simple way for a third party to update via a hex file though, possible w/ the DUE?
IR Combat laser tag developer/inventor

baselsw


Hmm, I'm looking to build a barebones board like yours, but from goldphoenix PCB using EAGLEcad and will want to find a way to upload hex files via the native USB port.  So it sounds like I can do that but not sure about the user interface yet.

I need a very simple way for a third party to update via a hex file though, possible w/ the DUE?


Hmmm, wasn't I clear in the previous post? To begin with it's a "bin" file that you upload in this case (not hex).. You can use arduinos "uploader tool" bossac manually, see post #3 in this topic: http://arduino.cc/forum/index.php/topic,153630.0.html.

Another option AGAIN! is to use the SAM-BA program (I said it like a 1000 times already). To download and use SAM-BA go to the following site: http://www.atmel.com/tools/ATMELSAM-BAIN-SYSTEMPROGRAMMER.aspx

zachtos

thanks, I'll install those tools to see how user friendly they are to non engineers that may be using my devices.
IR Combat laser tag developer/inventor

Hi baselsw!

I have a question: can you please point to the .bin file that needs to be uploaded to the SAM chip?

Also, I think in your post above you posted an incorrect link by mistake, referring to using Arduino's bossac tool.

I am also making my own Due and am a little stuck on this step. Thank you!

baselsw


Hi baselsw!

I have a question: can you please point to the .bin file that needs to be uploaded to the SAM chip?

Also, I think in your post above you posted an incorrect link by mistake, referring to using Arduino's bossac tool.

I am also making my own Due and am a little stuck on this step. Thank you!


There is no bin file that needs to be uploaded.. The Sam-chip will come preloaded with a bootloader.. So it will work out of the box! The link isn't a mistake.. Let me try to explain it in simpler terms:
- In case of uploading (a sketch) to an ordinary AVR (for example the atmega328/UNO) then you'll upload a HEX file with avrdude..
- In case of uploading (a sketch) to a SAM-chip (for example the SAM3X8E/DUE) then you'll upload a BIN file with either BOSSAC or SAM-BA...
- For a newbie I recommend sticking with BOSSAC for uploading because it's simpler.. SAM-BA has a GUI but there is a lot of boxes and settings (a newbie will simply get confused and run back to the arduino forum for help =P)..

If my explanation isn't clear enough then let me know exactly what you're stuck on and I'll do my best to help you!

//Basel

lynxz3

As per baselsw recommendation i'll post this here.
Quote

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

lynxz3

baselsw i had another question whats the power consumption like with the barebone circuit?

baselsw

that's a darn good question.. Normally I don't think about power consumption if it's not something that is going to be a 'final product'... I really have no idea.. The circuit is not "current measurement friendly"... If I get some spare time this week, I'll make a workaround and measure the power consumption.. No promises though..

//Basel

lynxz3


As per baselsw recommendation i'll post this here.
Quote

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.

baselsw

#39
Jul 19, 2013, 02:28 am Last Edit: Jul 19, 2013, 02:31 am by baselsw Reason: 1
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..

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?

baselsw


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

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?

baselsw


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

jtw11

#44
Aug 02, 2013, 01:40 pm Last Edit: Aug 02, 2013, 10:26 pm by jtw11 Reason: 1
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.

Go Up