STM32CUBEPROG to upload firmware via SPP Bluetooth Port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-01 12:37 AM
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
- Labels:
-
STM32CubeProgrammer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-01 12:40 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-01 12:45 AM
I mean from ST (I just edited the main post)
Here is the link to it: https://github.com/STMicroelectronics/stm32-mw-openbl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-01 1:14 AM
@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.
In 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-01 1:20 AM
why dont you use the ROM factory programmed bootloader?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-01 1:22 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-01 1:22 AM
>>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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-01 1:31 AM
>> 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
