We now use a board based on MCF54418,and its circuit is the same as development board(TWR-MCF5441x (700-26131))bought from freescale。The NAND flash is 16bit IC MT29F2G16AADWP . But now,we want change NAND flash to 8bit MT29F2G08ABAEAWP‐IT because of its lifecycle.
MT29F2G16AADWP is well used on our board.Some days ago i have tried to change it to MT29F2G08AADWP which only has a difference of bit wide(8bit & 16bit). About the code , i have just change "#define MT29F2G16_WIDTH 16" to "8" in MT29F2G16.c as below. But it does not work.
So I am very confused for a long time. Is there anything else should be change?
Hello Eric,
We support an 8-bit wide NAND flash in TWRMPC5125 BSP with the same Freescale MQX NAND flash driver. So the driver, in general, can work with an 8-bit flash. It’s just a task of proper configuration of the MCU (pins, NFC module) according to your specific NAND flash device. I think you can follow the configuration NANDFLASH_INIT_STRUCT and NANDFLASH_INFO_STRUCT that is provided with the twrmpc5125 BSP as an example. Double check the configuration of pin functions, and reflect the difference between the NAND flash device used on TWR-MPC5125 (c:\Freescale\Freescale MQX 3.8\mqx\source\io\nandflash\nand_devices\MT29F32G08.c) and your’s.
(you can find the MT29F32G08.c attached to this thread)
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------