Jul 30, 2018
12:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 30, 2018
12:29 AM
Hello,
In current project I need to interface the uC SPI with CAN transceiver.
The QSPI channel is working properly with all configurations, but for example when I try to use "IfxQspi_SpiMaster_exchange", where is the function going to store the data collected from the device? For example I'm trying to read register 0xFD and the data should be 0x70 or 0x74, but I don't know where the data is stored.
Does someone have any example with QSPI reading data?
Thanks for your support.
In current project I need to interface the uC SPI with CAN transceiver.
The QSPI channel is working properly with all configurations, but for example when I try to use "IfxQspi_SpiMaster_exchange", where is the function going to store the data collected from the device? For example I'm trying to read register 0xFD and the data should be 0x70 or 0x74, but I don't know where the data is stored.
Does someone have any example with QSPI reading data?
Thanks for your support.
1 Reply
Aug 03, 2018
12:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 03, 2018
12:31 AM
I manage to send 0xFD, and get response from the uC 0x74 which is the ID of the device TJA1145FD.

The problem now is, I'm using the exchange function to send/receive data:
// wait until transfer of previous data stream is finished
while( IfxQspi_SpiMaster_getStatus(&spiChannel) == SpiIf_Status_busy );
// send/receive new stream
IfxQspi_SpiMaster_exchange(&spiChannel, &spiTxBuffer, &spiRxBuffer, 2);
But for example, when I send 0xFD, the response will be empty(spiRxBuffer). And when I use the above function again with any other data, let's suppose I send 0xFF, than I have the response on spiRxBuffer.
Basically the response from the message just appears in the spiRxBuffer after sending another message.
Do you have any idea why this is happening?
Thanks so much.
The problem now is, I'm using the exchange function to send/receive data:
// wait until transfer of previous data stream is finished
while( IfxQspi_SpiMaster_getStatus(&spiChannel) == SpiIf_Status_busy );
// send/receive new stream
IfxQspi_SpiMaster_exchange(&spiChannel, &spiTxBuffer, &spiRxBuffer, 2);
But for example, when I send 0xFD, the response will be empty(spiRxBuffer). And when I use the above function again with any other data, let's suppose I send 0xFF, than I have the response on spiRxBuffer.
Basically the response from the message just appears in the spiRxBuffer after sending another message.
Do you have any idea why this is happening?
Thanks so much.