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.
Part Number: MSP432P401R
Tool/software: Code Composer Studio
I am getting the following errors when I try to compile my code.
/* DriverLib Includes */
#include <ti/devices/msp432p4xx/driverlib/driverlib.h>
#include <ti/drivers/SPI.h>
/* Standard Includes */
#include <stdint.h>
#include <stdbool.h>
#define MSGSIZE 32
#define CONFIG_SPI0 0
int main(void)
{
/* Stop Watchdog */
MAP_WDT_A_holdTimer();
SPI_Handle spi;
SPI_Params spiParams;
SPI_Transaction spiTransaction;
uint8_t transmitBuffer[MSGSIZE];
uint8_t receiveBuffer[MSGSIZE];
bool transferOK;
SPI_init(); // Initialize the SPI driver
SPI_Params_init(&spiParams); // Initialize SPI parameters
spiParams.dataSize = 8; // 8-bit data size
spi = SPI_open(CONFIG_SPI0, &spiParams);
if (spi == NULL) {
while (1); // SPI_open() failed
}
// Fill in transmitBuffer
spiTransaction.count = MSGSIZE;
spiTransaction.txBuf = (void *)transmitBuffer;
spiTransaction.rxBuf = (void *)receiveBuffer;
transferOK = SPI_transfer(spi, &spiTransaction);
if (!transferOK) {
// Error in SPI or transfer already in progress.
while (1);
}
}
<a href="processors.wiki.ti.com/.../10234"> unresolved symbols remain
gmake: *** [all] Error 2
gmake[1]: *** [spi_test_master.out] Error 1
unresolved symbol HwiP_disable, first referenced in C:/ti/simplelink_msp432p4_sdk_3_40_01_02/source/ti/drivers/lib/drivers_msp432p401x.aem4f<SPI.oem4f>
unresolved symbol HwiP_restore, first referenced in C:/ti/simplelink_msp432p4_sdk_3_40_01_02/source/ti/drivers/lib/drivers_msp432p401x.aem4f<SPI.oem4f>
unresolved symbol SPI_config, first referenced in C:/ti/simplelink_msp432p4_sdk_3_40_01_02/source/ti/drivers/lib/drivers_msp432p401x.aem4f<SPI.oem4f>
unresolved symbol SPI_count, first referenced in C:/ti/simplelink_msp432p4_sdk_3_40_01_02/source/ti/drivers/lib/drivers_msp432p401x.aem4f<SPI.oem4f>
Hello:
It is a very common linker error. See the below link for more details:
Basically you are missing the object files that define the mentioned unresolved symbols.
I will move this thread to the device forum. The experts there can tell you what you are missing in your project
Thanks
ki
**Attention** This is a public forum