Using one F28379D board as a master to send an integer to another F28379D slave board
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I'm trying to program one F28379D board using Code Composer Studio and Control Suite's example code "spi_loopback_cpu01" to send an integer from the master board (programmed with CCS) to the slave (programmed with Simulink). I set up the master to send data via SPI_A and the slave to receive data on its SPI_A. Both boards were set up to use GPIO pins 16-19. I can confirm in CCS that an integer is being sent, but when running Simulink in external mode, no integer is received on the slave board and I get a status of '2' (timeout).
Have I set up the hardware and software correctly to do what I'm trying to do? Can I hook up pins 16-19 on both boards together (SPI_A->SPI_A) or do I have to use SPI_B on the slave board? Does the CCS code provide sufficient data to the second board to get the SPI_Receive block to work? Is there more data I should be transmitting to get the receive function to work properly? I attached the CCS code and the Simulink code to this post.
Thanks for any help you can provide,
Tyler
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!