Using one F28379D board as a master to send an integer to another F28379D slave board
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Christos Dimosthenous
el 26 de Oct. de 2018
Comentada: Christos Dimosthenous
el 26 de Oct. de 2018
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
2 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!