Skip to main content
KKhan.4
Associate II
February 1, 2023
Question

STM32CUBEPROG to upload firmware via SPP Bluetooth Port

  • February 1, 2023
  • 3 replies
  • 3540 views

I am using an open bootloader from st for the firmware update in my project. Bluetooth module is connected to MCU via UART, which is configured to communicate with the computer via SPP protocol. Basically, I am able to communicate with the MCU like a serial com port.

I want to know if I can use the stm32cubeprog UART feature to upload the firmware on the MCU running ST Open Bootloader? 

ST Open Bootloader: https://github.com/STMicroelectronics/stm32-mw-openbl

This topic has been closed for replies.

3 replies

Javier1
Principal
February 1, 2023

This is a very interesing idea.

>>an open bootloader from stm32

what did you mean?

>> with the computer via SPP.

If im not mistaken CUBEPROG will expect an USB vitual com port (COM), is your bluetooth creating a COM port when paired?0693W00000Y9h4FQAR.png

hit me up in https://www.linkedin.com/in/javiermuñoz/
KKhan.4
KKhan.4Author
Associate II
February 1, 2023

I mean from ST (I just edited the main post)

Here is the link to it: https://github.com/STMicroelectronics/stm32-mw-openbl

KKhan.4
KKhan.4Author
Associate II
February 1, 2023

@Javier Muñoz​ I already have a COM port. I can communicate with the device via putty, tera term or similar serial terminals.

I haven't fully implemented open bootloader yet. However, at this point whenever I try to connect to the device via stm32cubeprog it throws the following error.

0693W00000Y9hDgQAJ.pngIn addition, I am not sure what baud rate to set. I don't think the baud rate is applicable to Bluetooth connection. In putty, communication is okay irrespective of the baud rate.

Javier1
Principal
February 1, 2023

why dont you use the ROM factory programmed bootloader?

hit me up in https://www.linkedin.com/in/javiermuñoz/
KKhan.4
KKhan.4Author
Associate II
February 1, 2023

Every STM32 has, but I am not interested in that nor I have given it a try as on my board I cannot change boot pin to access it.