Skip to main content
Associate II
February 10, 2024
Solved

help to connect 2 device stm32

  • February 10, 2024
  • 4 replies
  • 3433 views

hello to all

i want to build project with 2 blue pill firist one have an eeprom it save the file on it the firist blue pill will be as programmer to program the file from the eeprom on the secound blue pill the secound one will be as slave

i want to program the file from the eeprom to the slave stm32 .

the master is ok i build and connect with the eeprom with i2c and can cll the data from the eeprom in the master side but in the slave i want to program the file on it without using pc using the master one

so haw to connect the stm32 slave with the master

This topic has been closed for replies.
Best answer by Peter BENSCH

This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

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.

Thank you for your understanding.

Regards
/Peter

4 replies

Tesla DeLorean
Guru
February 10, 2024

Suggest review app notes AN3155 and AN2606

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
TDK
Super User
February 10, 2024

In hardware:

  • Connect the device you're flashing to the master device using a UART peripheral supported by the bootloader per AN2606.
  • Connect BOOT0 and NRST on the second chip to GPIOs on the master chip.

In your program:

  • Put the second chip in bootloader mode by holding BOOT0 while toggling reset.
  • Use the UART bootloader commands in AN3155 to erase, then flash, the second chip.
"If you feel a post has answered your question, please click ""Accept as Solution""."
ElmoftyAuthor
Associate II
February 10, 2024

thanks for your replay

is there any example to send the command from master to slave

Tesla DeLorean
Guru
February 10, 2024

Likely several if you look, the F1 is 17 years old.

The firmware upgrade method for the MKR WAN1300 is on GitHub is a pretty clean MCU to MCU port

 

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Peter BENSCH
Technical Moderator
April 25, 2025

This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.

We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.

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.

Thank you for your understanding.

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.