This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC3250 NAND Flash algorithms for NAND MT29F4G08

Hello, I have DK-57TS-LPC3250 demo kit from FDI with LPC3250 and Micron NAND MT29F4G08 on board.
I need to program some program into the NAND flash but I seem to be missing the Flash Algorithms for this flash in Keil.
I found sample code for MT29F2G08ABD at \ARM\Flash\LPC31xx_NAND_LP\ and I tried to make programmer for my MT29F4G08. As an axample code for HW FLASH controller I use code FlashHW.c from \ARM\Boards\Phytec\LPC3250\Bootloader_NAND\.
Project compiled without errors, I add MT29F4G08 flash algorithm for j-link programmer, but when I try to download my test code - I see error message with Flash timeout error :(

In FlashDev.c I have parameters:
struct FlashDevice const FlashDevice = { FLASH_DRV_VERS, // Driver Version, do not modify! "MT29F4G08", // Device Name EXT8BIT, // Device Type 0x30000000, // Device Start Address 0x20000000, // Device Size in Bytes (256MB) 2048, // Programming Page Size 0, // Reserved, must be 0 0xFF, // Initial Content of Erased Memory 300, // Program Page Timeout 300 mSec 1000, // Erase Sector Timeout 1000 mSec

// Specify Size and Address of Sectors 0x20000, 0x000000, // Sector (block) Size 128kB SECTOR_END
};

Flash commands are :
#define NAND_CMD_READ 0x00 // Read command

#define NAND_CMD_PAGEPROG 0x10 // Auto program command
#define NAND_CMD_READSTART 0x30 // Read start command

#define NAND_CMD_ERASE1ST 0x60 // Auto block erase 1-st command
#define NAND_CMD_STATUS 0x70 // Status read command

#define NAND_CMD_SDIN 0x80 // Serial data input command
#define NAND_CMD_READID 0x90 // ID read command
#define NAND_CMD_ERASE2ND 0xD0 // Auto block erase 2-nd command
#define NAND_CMD_RESET 0xFF // Reset command

Please, can you help me in my troble?
Thanks.