cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 blue pill, SPI mcu-mcu comunication

Testik123
Associate

Hello everyone. I'm currently just learning and getting familiar with microcontrollers. For educational purposes, I would like to set up master-slave communication between two C8T6 boards. The master should send an array of values, which the slave receives and evaluates. If the array matches a predefined pattern, the slave sends a response—also an array of values. The master receives the array and, if it matches the expected pattern, changes the state of an LED. This process should repeat in a loop.

When I connect the power, only the LED turns on and nothing else happens. If I reset the slave (using the button on the board), the communication starts working and the LED begins blinking. I can also get the communication to work by resetting the master, but I usually have to press the reset button several times before it connects properly. The slave always connects correctly after a reset.

If someone could help me figure out what I'm doing wrong, I would really appreciate it. I've been struggling with this for almost a week...
The code is focused purely on SPI polling.
Thank you very much!

 

 

 

 

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

Welcome @Testik123, to the community!

ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products like your Blue Pill work properly with the firmware we provide.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Regards,
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Peter BENSCH
ST Employee

Welcome @Testik123, to the community!

ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products like your Blue Pill work properly with the firmware we provide.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter.

Regards,
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.