I was trying to run the sample program of the sd flash (SDFLASH.INSPECT.C) inside my Dynamic C 10.46 and I get all kinds of error.
I found out that the problem is that the constants in sd_dev_interface (SDFLASH.LIB) are not defined. I tried to define myself with proper parameter eg.
#define SD_CS_PORT PBDR
#define SD_CS_PORT_DRSHADOW PBDRShadow
#define SD_CS_PIN 1
#define SD_CS_PORT_DDR PBDDR
#define SD_CS_PORT_DDRSHADOW PBDDRShadow
But errors are still present and I had scatched my head out.
I would like to ask whether it is necessary to define those parameter myself?
Anyone that had tried out sample program SDFLASH_INSPECT.C can PLEASE help me with this problem???
Thank you very much.
Sorry for the inconvenience.