Other Parts Discussed in Thread: HALCOGEN
I have been working on transmitting and receiving data by SPI (regular single buffer) with DMA. RXDATA has not received actual data but I can see 0x8000 in RXDATA buffer.
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.
I have been working on transmitting and receiving data by SPI (regular single buffer) with DMA. RXDATA has not received actual data but I can see 0x8000 in RXDATA buffer.
This is an example of SPI + DMA on LS1224 device. It should work on TMS570LC43x device.
I tried this example as follows but its not working.
In HalCoGen:
Enabled RTI, SPI1 and SPI3 drivers.
Enabled MIBSPI1 and MIBSPI3 under pinmux tab and resolved conflicts
VIM Channels 39 and 40 are activated (HBC and BTC) and generate the code.
I have changed the original code provided by you to adapt new library APIs (code attached here).
When I debug the code it never comes to dmaGroupANotification. So that execution hang in while( SPI3_BTCFlag == 0 )
https://e2e.ti.com/Can you please advise, do I miss anything here?0724.HL_sys_main.c
There is no problem in the code. Please double check the wires connecting SPI1 and SPI3 on your board.
These are my configurations and physical connections:
--------------- ---------------
SPI3 ( Master ) SPI1 ( SLave)
--------------- ---------------
SIM0 ---> SIMO (Connected with wire in TMS570LC43X DK)
S0MI <--- SOMI (Connected with wire in TMS570LC43X DK)
CLK ---> CLK (Connected with wire in TMS570LC43X DK)
CS0 ---> CS0 (Connected with wire in TMS570LC43X DK)
------------------
GUI configurations
------------------
Only 16 clocks come out of SPI3 and then it stops. Can you please clarify why this is stopped?