Other Parts Discussed in Thread: AWR1642
Tool/software: Code Composer Studio
Hi all,
I am trying to add qspiflash capabilities (read/write) to my project (mss).
I follow the directives found in SWRA583.pdf application note.
I redefined pins for AWR1642 as needed.
At the beginning of the "main.c", I placed the following lines:
#include <ti/drivers/qspi/qspi.h>
#include <ti/drivers/qspiflash/qspiflash.h>
Following I modified Properties -> Arm -> Linker ->File Search Path
In: Include library file....
C:\ti\mmwave_sdk_02_00_00_04\packages\ti\drivers\qspiflash\lib\libqspiflash_xwr16xx.aer4f
C:\ti\mmwave_sdk_02_00_00_04\packages\ti\drivers\qspi\lib\libqspi_xwr16xx.aer4f
In: add <dir> ...
${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/utils/qspi/lib
${COM_TI_MMWAVE_SDK_INSTALL_DIR}/packages/ti/utils/qspiflash/lib
The projects is succesfully built
But when I run it, it fails executing:
qspiflashHandle = QSPIFlash_open(qspiHandle, &errCode);
I get the error message:
xdc.runtime.Main: "src/qspiflash_device_spansion.c", line 87: assertion failure
xdc.runtime.Error.raise: terminating execution
It is Ok, because my flash chip is a Macronix and all the definitions for it are in "qspiflash_device_macronix.c"
My question is:
Where I need to change to address the correct file "qspiflash_device_macronix.c"?
"libqspiflash_xwr16xx.aer4f" seems to contain all the flash manufacturers information...
Thanks,
Claudio