cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CUBEPROG to upload firmware via SPP Bluetooth Port

KKhan.4
Associate II

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

7 REPLIES 7
Javier1
Principal

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

we dont need to firmware by ourselves, lets talk
KKhan.4
Associate II

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
Associate II

@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.

why dont you use the ROM factory programmed bootloader?

we dont need to firmware by ourselves, lets talk

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.

>>I haven't fully implemented open bootloader yet

I would try it with the factory programmed bootloader first

>> I am not sure what baud rate to set. I don't think the baud rate is applicable to Bluetooth connection.

Thats a good question, i would try 115200 as it is standard.

>>In putty, communication is okay irrespective of the baud rate.

Perfect then

we dont need to firmware by ourselves, lets talk

>> I am not interested in that

Its a nice thing to have as a sanity check, to make sure cubeProgr and bluetooth SPP work as expected.

>>I cannot change boot pin to access it

https://stackoverflow.com/questions/73390378/stm32g0b1ce-can-the-boot-option-bits-be-used-to-jump-to-system-bootloader

we dont need to firmware by ourselves, lets talk