This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm643x NAND boot questions

HI,

I have a dm6437 based system; it uses Micron MT29FG08  512MB x 8 NAND as a boot source. I have run genAIS to create a binary AIS image, filled in the 3 32bit place holders for size information, and programmed the ais image to block 1 page 0.  Additionally I prefaced my code load with a cfg option that simply does a block fill in L1D RAM.  The beginning (in asm) for what my AIS image looks like is this:

 .word 0x41504954
 .word 0x0000000a    <= # of pages over which image spans
 .word 0x00000001   <= image block number start
 .word 0x00000000   <= image page number start
 .word 0x5853590A   <= section fill
 .word 0x10F09000   <= loaction in L1D
 .word 0x00004000   <= size
 .word 0x00000002   <= access type
 .word 0x000055AA   <= pattern

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Section Size = 576,  NumWords = 144
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;   Loading Section: .chip_config_code
;;;   Current FLASH Address: 0x00000024
;;;   Section Size in Bytes: 0x00000240
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 .word 0x58535901
 .word 0x10F10280
 .word 0x00000240
 .word 0x867725F7

etc...

I have linked my code to start at 0x10f09000 so that it avoids the first 20K of L1D per documentation, which also seems to state that I can not do section loads to L1P nor L2 (can anyone confirm this?).

I have verified that the image is programmed properly.  When I power up the system it does not boot.  When I reconnect (I am using CCS 3.3) and take a look at memory, for instance the memory I wanted block filled, it is garbage.  I have single stepped through the Rom Loader dissasembly (as much as I could, fairly tedious to figure out what is going on) and verified that it is reading the NAND flash properly (saw it issue the read id commands and get valid responses back.  The ID of the NAND is one of the validly listed ones in the documentation. I have tried AIS images with and without CRC, with and without the section fill, all with same result (no boot).

The strapping on the board (our own board) is:

  > [Boot Mode]: NAND Boot
  > [Fast Boot]: No
  > [Bus Width]: 8-bit
  > [PCI]      : OFF
  > [Endianess]: Little Endian
  > [AEAW][4]  : EMIFA ADDR[20:0]
  > [AEM] [5]  : [NAND 8-bit][CCDC 16-bit][VENC 8-bit]

  Can anyone give me some clues?

Thanks,

Michel