SAM-BA2.16 can not "enable nandflash

Discussion around AT91RM9200 and SAM9 Series Products.

Moderator: nferre

smart
Posts: 16
Joined: Sat Dec 31, 2016 10:42 am

SAM-BA2.16 can not "enable nandflash

Sat Dec 31, 2016 11:16 am

hi ~
i have trouble that it is SAM-BA2.16 can not "enable nandflash" .

1)The AT91SAM9x35-EK onboard nandflash is :MT29F2G08AAD,my custom onboard nandflash is MT29F2G08ABAEAWP .

2) i rebuild the SAM-BA2.16 applet by GCC 3.4.5 and add some trace information by pass to DEBUG uart output them in main.c file that i copy the BIN to ..\Atmel\sam-ba_2.16\tcl_lib\at91sam9g15-ek
replace the "applet-nandflash-sam9g15.bin" file and run SAM-BA2.16.
The debug uart show this --- by default :
RomBOOT
-I- -- NandFlash SAM-BA applet 2.14 --
-I- --
-I- INIT command
-I- Open NAND Flash Interface (ONFI)-compliant
-I- Nandflash driver initialized
-I- pageSize : 0x800 blockSize : 0x20000 blockNb : 0x800 spareSize :0x40 numPagesPerBlock :0x40
-I- Nandflash PMECC initialized
-I- End of applet (command : b2bbe225 --- status : 0)

i trace in the applte execute the code occur a abnormal the postion in the main.c file

DMAD_Initialize( &dmad, POLLING_MODE );
if ( NandFlashConfigureDmaChannels( &dmad )) <---here is run after the pMailbox->command is modifty to random value...
{
pMailbox->status =APPLET_DEV_UNKNOWN;
goto exit;
}
at that time the PC SAM-BA2.16 GUI is show information :
loading history file ... 12 events added
SAM-BA console display active (Tcl8.5.9 / Tk8.5.9)
(sam-ba_2.16) 13 %
(sam-ba_2.16) 13 % NANDFLASH::Init
-I- NANDFLASH::Init (trace level : 4)
-I- Loading applet applet-nandflash-sam9g15.bin at address 0x20000000
-E- Script error: Applet Init command has not been launched (-E- Timeout: The applet did not return.
Please check the connection and reconnect the target device.)
(sam-ba_2.16) 13 %

i has tried printf the Nandflash data ,the nandflash chip is is same like the datasheeet and the pagesize\blockSize\spareSize all is ok. in addition i run MDK4(keil4) and IAR in Atmel proviod exeample code test them by DEBUG uart is all of passed .so i think the hardware should be normal .
but why not the SAM-BA2.16 is fail ???

i find the SAM-BA2.16 load the applet main is return and take the pMailbox is 0x2000004 by define TCL file .but why changed them by option the DMA . that is a qusthion ..
IAR and MDK main is never return and the NNADFALSH bus init is same.

3) chip information
the MPU is AT91SAM9X25
the DDR2 is MT47H64M16NF-25E
the NAND FLASH is :MT29F2G08ABAEAWP

SAM9x5-EK-Nand-recovery run logfile :
-I- Waiting ...
-I- TCL platform : Windows 95
-I- SAM-BA 2.16 on : windows
-I- current connection is \jlink\ARM0, \\jlink\\ARM0 to be matched
-I- Retrieved arguments from command line :
-I- argv 0 : \jlink\ARM0
-I- argv 1 : at91sam9g15-ek
-I- argv 2 : SAM9x5-EK-Nand-recovery.tcl
-I- Connection \jlink\ARM0
-I- Connect index 0 in connection list
-I- Connecting with \jlink\ARM0\SN:-1
-I- Connection : \jlink\ARM0\SN:-1 (target(comType) = 2)
-I- Board : at91sam9g15-ek
-I- Traces Level : 4
-I- target(handle) : 26332016
-I- sourcing board description file C:/Program Files/Atmel/sam-ba_2.16/sam-ba.exe/../tcl_lib/at91sam9g15-ek/at91sam9g15-ek.tcl
Read device Chip ID at 0xFFFFF240 --- get 0x819a05a1
-I- Found chip : at91sam9x25 (Chip ID : 0x819a05a1)
-I- Loading applet applet-lowlevelinit-sam9g15.bin at address 0x300000
-I- Memory Size : 0x2 bytes
-I- Buffer address : 0x4
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- Low level initialized
-I- External RAM Settings : extRamVdd=0, extRamType=1, extRamDataBusWidth=32, extDDRamModel=0
-I- External RAM Settings : extRamVdd=0, extRamType=1, extRamDataBusWidth=32, extDDRamModel=0
-I- Loading applet applet-extram-sam9g15.bin at address 0x300000
-I- Memory Size : 0x8000000 bytes
-I- Buffer address : 0x300B90
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- External RAM initialized
-I- Command line mode : Execute script file : SAM9x5-EK-Nand-recovery.tcl
-I- === SAM9x5-EK product test software Programming ===
-I- === Init NandFlash ===
-I- NANDFLASH::Init (trace level : 4)
-I- Loading applet applet-nandflash-sam9g15.bin at address 0x20000000
-E- Script File SAM9x5-EK-Nand-recovery.tcl returned error : Applet Init command has not been launched (-E- Timeout: The applet did not return.
Please check the connection and reconnect the target device.) - Applet Init command has not been launched (-E- Timeout: The applet did not return.
Please check the connection and reconnect the target device.)
while executing
"error "Applet Init command has not been launched ($dummy_err)""
(procedure "GENERIC::Init" line 42)
invoked from within
"GENERIC::Init $NANDFLASH::appletAddr $NANDFLASH::appletMailboxAddr $NANDFLASH::appletFileName [list $target(comType) $target(traceLevel)]"
(procedure "NANDFLASH::Init" line 11)
invoked from within
"NANDFLASH::Init"
(file "SAM9x5-EK-Nand-recovery.tcl" line 36)
invoked from within
"source $scriptFile"




my e-mail :9252955802qq.com
my Mob-phone : 13346239466


tks all ..
Last edited by smart on Tue Jan 03, 2017 3:16 am, edited 1 time in total.
blue_z
Location: USA
Posts: 1504
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAM-BA2.16 can not "enable nandflash

Tue Jan 03, 2017 1:41 am

smart wrote:i have trouble that it is SAM-BA2.16 can not "enable nandflash" .
Why are you reposting the same question 29 minutes later?
smart wrote:1)The AT91SAM9x35-EK onboard nandflash is :MT29F2G08AAD,but i used onboard nandflash is MT29F2G08ABAEAWP .
Does that mean you replaced the NAND flash chip on the EK?

Besides a language issue, you're not providing clear, salient information.

Regards
smart
Posts: 16
Joined: Sat Dec 31, 2016 10:42 am

Re: SAM-BA2.16 can not "enable nandflash

Tue Jan 03, 2017 3:03 am

blue_z wrote:
smart wrote:i have trouble that it is SAM-BA2.16 can not "enable nandflash" .
Why are you reposting the same question 29 minutes later?
smart wrote:1)The AT91SAM9x35-EK onboard nandflash is :MT29F2G08AAD,but i used onboard nandflash is MT29F2G08ABAEAWP .
Does that mean you replaced the NAND flash chip on the EK?

Besides a language issue, you're not providing clear, salient information.

Regards

i designed a custom board by ref the AT91SAM9XX5-EK schematic and i use the MT29F2G08ABAEAWP replace the MT29F2G08AAD on my custom board.
so the EK is MT29F2G08AAD.my board is MT29F2G08ABAEAWP.
it is a pity that my board is can not enable nandflash ..

i am sorry that my english is bad . :cry:

tks your answer and look forword to your answer the qusthion is trouble me 3 weeks ..and project can not progress.
blue_z
Location: USA
Posts: 1504
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAM-BA2.16 can not "enable nandflash

Wed Jan 04, 2017 2:52 am

While it's commendable that you're searching through old threads, you're not contributing anything to those discussions by fully quoting each poster and then repeating the same plea.
It's still double posting, and you were asked to stop.

README BEFORE POSTING

Regards
smart
Posts: 16
Joined: Sat Dec 31, 2016 10:42 am

Re: SAM-BA2.16 can not "enable nandflash

Wed Jan 04, 2017 3:32 am

blue_z wrote:While it's commendable that you're searching through old threads, you're not contributing anything to those discussions by fully quoting each poster and then repeating the same plea.
It's still double posting, and you were asked to stop.

README BEFORE POSTING

Regards

i understanding, tks for "blue_z" ..the double posting mybe is the first time to use ask question . i am sorry :)
smart
Posts: 16
Joined: Sat Dec 31, 2016 10:42 am

Re: SAM-BA2.16 can not "enable nandflash

Thu Jan 12, 2017 10:35 am

:lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:
it is DDR2 HW question ....the end ,change 10R to 33R SAM-BA write and FLASH is OK !!

Return to “SAM9 ARM9 MPU”

Who is online

Users browsing this forum: No registered users and 2 guests