How does the NAFlash API know about the flash sectors, sector sizes and so on? NAFlashInit only configures the number of banks. My problem is: NAFlashSectors returns me -1 and I don’t know why. Regards, Stefan

This return value means UNKNOWN_FLASH. The routine reads the manufacture code and device code and verify it against the supported flash devices. If the device is supported it has all the information needed to control that device. In order to support your chip you have to modify flash.h and flash.c to support your devicec (the flash.c contains the source code for NAFlashSectors by the way). By looking at the supported devices I think you will solve how you should add support for your device. Note that I am using 5.1 and i don’t know if the have changed it i 6.0. /Jesper