Effacer les filtres
Effacer les filtres

SPI communication link on a Nucleo board

3 vues (au cours des 30 derniers jours)
Zoltan Nagy
Zoltan Nagy le 14 Août 2023
Modifié(e) : Zoltan Nagy le 15 Août 2023
Hi,
I try to use the SPI communication link from a Nucleo board (NUCLEO-H743ZI2) to stream short messages. I wired up the board to an Arduino, which is running a simple SPI slave, which worked with a GNSS module (MIKROE-3922 GNSS Click 7).
When I use Monitor & Tune, in Data Inspector, I see that, the SPI Master Transfer block gets the streamed values as input and it outputs zeros constantly.
On the hardware, I checked clock signal from the master, and I could not find it.
On Arduino, I saw 15 0xFFs and then the communication stopped.
When I use Build, Deploy & Start, I get three or four odd characters, pretty much noise, some are zeros, but that suggest me that, the communication link is active for a short time, when the software start running.
When I use Connected I/O, I have a continuous stream of FFs on Arduino, but after a couple of seconds, I am getting an error message, the SPI is not available, and I get the same error after any further attempt to run the software, even after clearing the workspace and re-open the model.
So the model is clearly running and the communication is active, although the values are FF, not the expected ones.
I am aware of the only example ‘Communicating with an SPI based EEPROM Using the STMicroelectronics Nucleo Board’, which I managed to build with strange results (block outlines are marked by red), see attached screenshot and I did not received anything on the Arduino side.
I am not sure if I missed something or did something wrong, so any suggestions or help would be appreciated.
Zoltan

Réponses (0)

Produits


Version

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by