Part Number: LAUNCHXL-CC2640R2
Tool/software: Code Composer Studio
I have two main question on access external flash memory.
First when i want to reference the ExtFlash file to my program with #include <ti/mw/extflash/ExtFlash.h> It will always report me error with
":Description Resource Path Location Type
unresolved symbol ExtFlash_open, first referenced in ./memory.obj memory_ccs C/C++ Problem"
But if i do it with #include <ti/mw/extflash/ExtFlash.c>. It doesn't have these kind of problem anymore, but i know it is not a suitable method.
Then i tried to test the ExtFlash_open() function, i made a very simple coding:
Board_initGeneral();
SPI_Handle spi;
SPI_Params spiParams;
SPI_init(); // Initialize the SPI driver
SPI_Params_init(&spiParams); // Initialize SPI parameters
spiParams.dataSize = 8; // 8-bit data size
spi = SPI_open(Board_SPI0, &spiParams);
if (spi != NULL) {
System_printf("SPi transfer is open");
}
bool isOpen = ExtFlash_open();
if (isOpen == false){
System_printf("No external flash memory");
}
else{
System_printf(" external flash memory open wake up");
}
return(0);
I have already checked the support device list in ExtFlash.c, i saw the device type
{
.manfId = MF_MACRONIX, // Macronics
.devId = 0x14, // MX25R8035F
.deviceSize = 0x100000 // 1 MByte (8 Mbit)
},
The result is that is SPI can always start, but the return value of the ExtFlash_open() is always false. Does anyone know any possible solution for that?