cancel
Showing results for 
Search instead for 
Did you mean: 

help to connect 2 device stm32

Elmofty
Associate II

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

4 REPLIES 4

Suggest review app notes AN3155 and AN2606

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
TDK
Guru

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".
Elmofty
Associate II

thanks for your replay

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

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 Venmo
Up vote any posts that you find helpful, it shows what's working..