Upload firmware to SAM4E16E with USB

Discussion around product based on ARM Cortex M4 core.

Moderators: nferre, ncollot

pilnik5
Posts: 5
Joined: Sat Sep 05, 2015 5:43 pm

Upload firmware to SAM4E16E with USB

Thu Aug 18, 2016 8:48 am

Hi friends,

Are you trying upload firmware to SAM4E chip? Any idea how to prove it?
For example: I need upload firmware to chip through USB.
pilnik5
Posts: 5
Joined: Sat Sep 05, 2015 5:43 pm

Re: Upload firmware to SAM4E16E with USB

Thu Aug 18, 2016 12:57 pm

Ok.
I try SAM-BA 3.1.3.

When I try example code from help:

Code: Select all

sam-ba.exe -p serial -m read32:0xfc069000 -m write32:0x200000:0x12345678 -m read16:0x200000 -m read16:0x200002
output is here:

Code: Select all

Opening serial port 'COM4'
read32(0x00000000)=0x20000800
write32(0x00200000,0x12345678)
read16(0x200000)=0x0800
read16(0x200002)=0x2000

And when I connect my board throught Terminal 1.9b and send this command:

Code: Select all

V#
Output from line:

Code: Select all

v1.0 May 10 2012 18:12:25
And now, how to upload my firmware? I try everythink, but all my attempts failed.
aarcov
Posts: 12
Joined: Thu Aug 18, 2016 3:26 pm

Re: Upload firmware to SAM4E16E with USB

Fri Aug 19, 2016 1:12 am

You might try the sam-ba v2.16, I believe it has some profiles for additional (older) chips. If you get v3 working could you post what you did?
pilnik5
Posts: 5
Joined: Sat Sep 05, 2015 5:43 pm

Re: Upload firmware to SAM4E16E with USB

Mon Aug 22, 2016 7:21 am

I have got v3. And I´m trying on SAM4E Xplained Pro Evaluation Kit. There is a SAM4E16E chip. And I would like upload my firmware to this chip. But I don´t know how?
aarcov
Posts: 12
Joined: Thu Aug 18, 2016 3:26 pm

Re: Upload firmware to SAM4E16E with USB

Mon Aug 22, 2016 2:33 pm

I would use v2.16, there is an entry for that specific board. I'm starting to think that the v3 should actually be called something else because it seems only support a couple newer boards. You may have to patch it to work (the patch if needed should be provided in a zip file under the documents tab for your processor on the atmel website).
aarcov
Posts: 12
Joined: Thu Aug 18, 2016 3:26 pm

Re: Upload firmware to SAM4E16E with USB

Mon Aug 22, 2016 2:37 pm

Here is a general reference for SAM-BA:
http://www.atmel.com/Images/Atmel-42141 ... n-Note.pdf

There will most likely also be one specifically for your processor that you will also want to read.
hraftery
Posts: 5
Joined: Wed Nov 23, 2016 11:10 pm

Re: Upload firmware to SAM4E16E with USB

Thu Nov 24, 2016 5:26 am

As aarcov suggests, sam-ba v3 is a red herring - the only thing it appears to provide SAM4E users is another frustrating couple of hours getting nowhere.

sam-ba v2.16 is what you want. It seems there used to be a patch for v2.12 to support SAM4E but that's not required anymore for v2.16.

v2.16 comes with a GUI, so use that first. When it launches, select "at91sam4e16-ek" for the SAM4E16E. Be sure to check "Customise lowlevel" and set the options exactly as your board is configured. Click connect, select the "Flash" tab, put your bin file in "Send File Name", and click "Send File". Finally, select the "Boot from Flash" script and execute that. Next time you reset the MCU, it will run your firmware.

Return to “SAM4 Cortex-M4 MCU”

Who is online

Users browsing this forum: No registered users and 3 guests