Hi
I'm trying to make a tms320dm6437 (own board layout) boot from NAND device (Samsung K9F1208X0C).
I have used genAIS.pl script using the following .bat script to construct a binary AIS script:
perl genAIS.pl -otype bin -i GPIO_test.out -o GPIO_nand.bin -bootmode nand -datawidth 8 -cfg configfile.cfg
The config file contains:
0x5853590D # Function Execute Command
0x00030000 # Selects PLL configuration function, with 3 arguments
0x00000015 # PLLM value
0x00000000 # PLLDIV 0
0x00000000 # Clock source
0x5853590D # Function Execute Command
0x00050001 # Selects EMIFA configuration, with 5 arguments
0x3FFFFFFC # AB1CR control register mask
0x3FFFFFFC # AB2CR control register mask
0x3FFFFFFC # AB3CR control register mask
0x3FFFFFFC # AB4CR control register mask
0x00000000 # NANDFCR control register mask
0x5853590D # Function Execute Command
0x00090002 # Selects DDR memory configuration, with 9 arguments
0x00000017 # DDR PLLM
0x00000001 # PLL SRC
0x0000000B # DDR CLLK DIV
0x00000000 # VPBE CLK DIV
0x50006405 # DDR Control register mask
0x00138822 # SDRAM Config register mask
0x16492148 # SDRAM Timer 0 register mask
0x000CC702 # SDRAM Timer 1 register mask
0x000004EF # SDRAM Refresh control register mask
As I understand from the SPRAAG0D App report this image should be loaded into flash from block 0 page 0 and forward if possible. Furthermore the number of pages the image spans should be written to the second Uint32 of the image. I have done this and constructed a program which writes the AIS script to the flash device. This program also reads the flash again to a new file after it has written the program. This way I can test the data written. If I make a binary diff of the two files, the only difference is the number of pages written and a zero-padding of the last page in the flash. I have set the DIP-swithes to boot from NAND flash and when using an oscilloscope during reset of the device I see the CE toggle. But the program does not seem to load correctly.
Does anybody have some pointers to how I can debug this?