This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NANDConfigure

In the function NANDConfigure you have the following:

unsigned int retVal;

retVal = E_FAIL;     //You are assigning a negative number to an unsigned int. Not good!!!!

But you also have

#define E_FAIL (-1)   in bl.h

You also have

#define E_FAIL (0x00000001u)   in tistdtypes.h

You really need some consistency on that and it should only be defined in one place.