2020-07-16 12:03 AM
It seems that there are two major matter that have been neglected by HAL developers for NAND peripheral.
First, if someone has a NAND IC with more than 1Gb (I have K9F2G08U0C with 2Gb storage) on PCB, then Read ID function doesn't work completely. The fifth ID is neglected! The function isn't as discussed in many datasheets on the internet. Lower storages are OK.
Second, I followed AN4761 and copied some code for checking if NAND FLASH works correctly. I don't know if it is the lack of my C Language knowledge or HAL NAND library deficiency. The problem is when I change the place of integer definition, it works correctly, but when it is the same as the one in the document, the data change without any pattern. IOC and the main file are attached.