Part Number: MSP432P401R
Hello.
First, the hardware is as follows:
MSP-EXP432P401R (MSP432 LaunchPad)
LAUNCHXL-CC2650 (SimpleLink CC2650 BoosterPack)
We want to change the NPI in project_zero from UART to SPI and check the BLE operation.
Then, I programmed the firmware for SPI on the CC2650 side, and changed the MSP432 side from UART to SPI.
Now, I am debugging with CCS.
I'm having trouble in the middle of it. Please help me.
In project_zero.c, we initialize the SPI and SPI_open (completed successfully so far), and then call SAP_reset().
In this process, the reset command is sent to the message queue (mq_send).
Q1:
The reset command is a command to the CC2650, right?
However, it does not use the SPI driver (SPI_transfer).
Q2:
Do I need to create a process to retrieve it from the message queue and send it to the CC2650 via SPI?
(What would have happened with the default UART?)
After SAP_reset(), the message queue cannot be received, resulting in an infinite loop.
In the case of the default UART, we were able to receive successfully.
SAP_reset();
do
{
pzEvent = 0;
mq_receive(pzQueueRec, (void*) &pzEvent, sizeof(uint32_t),
&prio);
if (pzEvent != PROJECT_ZERO_EVT_PUI)
{
Display_printf(displayOut, 0, 0,
"[bleThread] Warning! Unexpected Event %lu",
pzEvent);
}
}
while (pzEvent != PROJECT_ZERO_EVT_PUI);
Q3:
If you find out what is causing this, please let me know.
Best Regards.