Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Bootstrap recovery code for SPI data flash
PostPosted: Thu Nov 11, 2010 10:59 am 
Offline

Joined: Thu Jul 29, 2010 12:47 pm
Posts: 11
Hi all,

I downloaded the bootstrap code and an application code in SPI data flash of 9260 Eval-kit.
But i unable to erase the code by using the recovery part mentioned in the bootstrap code (By pressing BP4 while booting).

Did any face similar issue? Please provide your comments.

Thanks in advance
Vipin.


Top
 Profile  
 
 Post subject: Re: Bootstrap recovery code for SPI data flash
PostPosted: Thu Nov 11, 2010 6:42 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
Are you using the debug serial port or USB?

If serial are you seeing the RomBoot message (115200 8N1)?

If USB is the PC finding the board?

Does SAM-BA find the board?

Do you have JTAG connectivity to the board?

What bootstrap code did you put on the board? Precompiled, rebuilt, settings, etc.

The BP4 recovery code is in the df_recovery() function in at91sam9260ek.c, if this function is not working or not present, you could to get some code into the CPU/SRAM via JTAG to erase the flash parts. The easiest way is to get SAM-BA access via serial or USB.


Top
 Profile  
 
 Post subject: Re: Bootstrap recovery code for SPI data flash
PostPosted: Fri Nov 12, 2010 7:21 am 
Offline

Joined: Thu Jul 29, 2010 12:47 pm
Posts: 11
Yes, I see the RomBOOT on serial port.

I use the dataflashtosdram code of the bootstrap project. Changed the pre-configuration to Slot B to support Dataflash chip of 9260 Eval-board.

I could write the bootstrap and the application code in Dataflash for the first time using SAM-BA through USB.

I would like to upgrade the application code without using the JTAG interface.
But the recovery code in the bootstrap code does not seems to work. So I am unable to access the SAMBA through USB.

I did try the same with NAND flash provided in the eval-board and this works fine.


Top
 Profile  
 
 Post subject: Re: Bootstrap recovery code for SPI data flash
PostPosted: Fri Nov 12, 2010 8:24 am 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 574
You might not want to use the JTAG method, but it would permit you to debug the code issue with the serial flash boot loader, and unbrick the board.

Another alternative would be to replace R40 with a switch so you could disable the serial flash at boot


Top
 Profile  
 
 Post subject: Re: Bootstrap recovery code for SPI data flash
PostPosted: Fri Nov 12, 2010 11:37 am 
Offline

Joined: Thu Jul 29, 2010 12:47 pm
Posts: 11
Yes, you are right. I have replaced the R40 register with a switch and that gives the access to SAMBA.

I tried to debug the recovery part of dataflash code. The recovery code calls this function to erase the first page of dataflash
error = AT45_SendCommand(pAt45, AT45_PAGE_ERASE, 4, 0, 0, address, 0, 0);

The code fails in the sanity check of this function and the error is "AT45_Command: Device has no descriptor, only STATUS_READ command allowed.

Any suggestion?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: