Can't boot from my at91sam9260 custom board via dataflash

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

Jude
Posts: 9
Joined: Tue Jun 26, 2007 6:47 am

Can't boot from my at91sam9260 custom board via dataflash

Fri Sep 07, 2007 4:58 am

Hi.
I'm using the ISPV1.10 and the SAM-BA V2.6.
Chips included on my custom board are one 'AT45DB642D' as dataflash(not dataflash card) and two 'MT48LC16M16A2's as sdram.
Absolutely, SAM-BA V2.6 can support those chips.
Followings are SAM-BA command lines extracted. There were no problem to write on dataflash and to initiate sdram.

----------------SAM-BA command lines-------------
(AT91-ISP v1.10) 1 % SDRAM::initSDRAM_48
-I- Configure PIOC as peripheral (D16/D31)
-I- Init MATRIX to support EBI0 CS1 for SDRAM
-I- Init SDRAM
-I- 1. A minimum pause of 200us is provided to precede any signal toggle
-I- 2. A Precharge All command is issued to the SDRAM
-I- *pSDRAM = 0;
-I- 3. Eight Auto-refresh are provided
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- *pSDRAM = 0;
-I- 4. A mode register cycle is issued to program the SDRAM parameters
-I- *(pSDRAM+0x20) = 0;
-I- 5. Write refresh rate into SDRAMC refresh timer COUNT register
-I- 6. A Normal Mode Command is provided, 3 clocks after tMRD is set
-I- *pSDRAM = 0;
-I- End of Init_SDRAM_48
(AT91-ISP v1.10) 1 % DATAFLASH::SelectDataflash AT91C_SPI0_CS1
-I- Init SPI0 for DataFlash interfaces
-I- Configure SPI0 PIOs
-I- Reset the SPI0
-I- Configure SPI0 in Master Mode (no CS selected)
-I- Configure SPI0 CS0 for DataFlash AT45
-I- Configure SPI0 CS1 for DataFlash AT45
-I- Disable the RX and TX PDC transfer requests
-I- Reset all Counter register Next buffer first
-I- Enable the RX and TX PDC transfer requests
-I- End of Init_DataFlash
-I- Switch to the correct PCS of SPI0 Mode Register (Fixed Peripheral Selected)
-I- Chip Select 1 Selected
-I- Enable the SPI0
-I- Wait for dataflash ready (bit7 of the status register)
-I- DataFlash AT45DB642
-I- End of Select DataFlash
-I- Initialize SDRAM
-I- SDRAM already initialized
(AT91-ISP v1.10) 1 % DATAFLASH::EraseAllDataFlash
-I- Erasing whole DataFlash ... Please Wait...
(AT91-ISP v1.10) 1 % DATAFLASH::SendBootFileGUI
-I- File size = 3946 byte(s)
-I- Boot File Written Successfully
(AT91-ISP v1.10) 1 % send_file {DataFlash AT45DB/DCB} "D:/01] 대학원/석사 졸업논문/USB WLAN DOC/9260_linux_demo/9260_linux_demo/u-boot-env-df.bin" 0x8000 0
-I- Send File D:/01] 대학원/석사 졸업논문/USB WLAN DOC/9260_linux_demo/9260_linux_demo/u-boot-env-df.bin at address 0x8000
-I- File size = 154020 byte(s)
--------------------------------END

As you gays see, There's no problem...
But, on hyper terminal window from DBGU port on my custom, There's just one line '>RomBOOT'.
That's all. Can't boot. What's the matter?

does this problem come from the binary file
'at91bootstrap_dataflash_at91sam9260ek.bin'?

Please some one help me!!... please....
psa
Contact:
Location: Rennes
Posts: 25
Joined: Tue Jul 10, 2007 1:15 pm

Fri Sep 07, 2007 11:34 am

Have you make your own bootstrap or do you use the boutstrap provided by Atmel?

In both cases it is possible that you use PA31 in an other case that in the eval board. So you should disabled 'df_recovery' function in the bootstrap.
Because if PA31 if low at boot, the first sector of dataflash is erased and after you can't boot ...
Jude
Posts: 9
Joined: Tue Jun 26, 2007 6:47 am

Mon Sep 10, 2007 3:00 am

psa wrote:In both cases it is possible that you use PA31 in an other case that in the eval board. So you should disabled 'df_recovery' function in the bootstrap.
There is no 'PA13' on the AT91SAM9260-LQFP208 i used.
And, bootstrap I used is provided by ATMEL.

I can't understand what you mean(above quote).
Is the 'df_recovery' you said a function in bootstrap source code?
How can i disable 'df-revocery'function and where is that function(which file)?

Please give me more detail please...!!

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 1 guest