SAM-BA Boot program for SAM4E problem

ATMEL in-system programing solution including SAM-BA and SAM-PROG.

Moderators: nferre, fab

supatel
Posts: 10
Joined: Sat Jun 15, 2013 12:01 pm

SAM-BA Boot program for SAM4E problem

Sat Mar 22, 2014 3:11 pm

Hello everyone,

I am using SAM4E-EK which have sam4e16E microcontroller, the datasheet says that it has in built boot loader SAM-BA monitor.
In SAM-BA monitor command for writing a byte is "O200001,CA#" I tried that command and read the data at that address using command, "o200001,#" but it reads a 0x08 instead of data which I have written.

Regards,
Shreyas.
jharley
Posts: 238
Joined: Thu Dec 06, 2012 6:40 am

Re: SAM-BA Boot program for SAM4E problem

Mon Mar 24, 2014 7:40 pm

Are you certain that you are writing to a valid address?

0x200001, it is outside of the flash region of all of the SAM4E variants

e.g. flash range (offsets)
SAM4E16E/C : 0x000000 to 0x0FA000
SAM4E8E/C : 0x000000 to 0x07D000
supatel
Posts: 10
Joined: Sat Jun 15, 2013 12:01 pm

Re: SAM-BA Boot program for SAM4E problem

Fri Mar 28, 2014 12:32 pm

jharley wrote:Are you certain that you are writing to a valid address?

0x200001, it is outside of the flash region of all of the SAM4E variants

e.g. flash range (offsets)
SAM4E16E/C : 0x000000 to 0x0FA000
SAM4E8E/C : 0x000000 to 0x07D000
I also tried to write on another address like, 000001 and other addresses.
but it always show same values like 00, 08,

thank you.
CptTitanic
Posts: 877
Joined: Sat Oct 30, 2010 6:04 pm

Re: SAM-BA Boot program for SAM4E problem

Fri Mar 28, 2014 8:11 pm

supatel wrote:I also tried to write on another address like, 000001 and other addresses. but it always show same values like 00, 08,
Try writing to RAM, which is at 0x20000000 or so. Pretty sure the monitor doesn't write to flash, SAM-BA the app writes flash by uploading applets to achieve that. ie you send a stream of code to RAM, and then GO to it.

Return to “AT91-ISP”

Who is online

Users browsing this forum: No registered users and 1 guest