Author Topic: help with blu pill programing  (Read 848 times)

0 Members and 1 Guest are viewing this topic.

Offline METopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: gb
help with blu pill programing
« on: March 05, 2025, 12:22:09 am »
I have just uploaded fredzo's latest firmware from this thread https://www.eevblog.com/forum/testgear/10mhz-gpsdo-by-bh3sap/125/
It was a new blu pill so did a full chip erase before uploading the bin file from github, All i get now on powering on my gpsdo is a blank display, do i need to upload a bootloader or similar first?.
 

Offline elektryk

  • Regular Contributor
  • *
  • Posts: 181
  • Country: pl
Re: help with blu pill programing
« Reply #1 on: March 05, 2025, 11:49:35 am »
Are you sure that MCU is not a clone?
How did you set the jumpers?
 

Offline METopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: gb
Re: help with blu pill programing
« Reply #2 on: March 05, 2025, 11:34:12 pm »
The blupill was from aliexpress so guess its a fake,i tried the jumpers in all positions,I am trying to flash new firmware to the blupill in my  bh3sap gpsdo.
 

Offline ozcar

  • Frequent Contributor
  • **
  • Posts: 365
  • Country: au
Re: help with blu pill programing
« Reply #3 on: March 06, 2025, 01:36:14 am »
You could try this to check if the processor is "fake":

https://www.eevblog.com/forum/microcontrollers/stm32f103c8-diagnostic-bootable-binary-freely-available/

Some STM32 code will run just fine on the "fake" processors that get remarked as ST parts, but I don't know anything at all about that gpsdo project in that regard.

Fake or not, Blue Pill boards are not known for their high quality workmanship. I had one with solder bridging some of the processor pins (fortunately noticed before I did anything with it), and another had dodgy soldering that left one of the boot pins floating regardless of jumper setting.
 

Offline METopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: gb
Re: help with blu pill programing
« Reply #4 on: March 06, 2025, 09:55:31 am »
Is there a programer for them that runs on ubuntu with a gui?.
 

Offline METopic starter

  • Regular Contributor
  • *
  • Posts: 152
  • Country: gb
Re: help with blu pill programing
« Reply #5 on: March 06, 2025, 12:46:18 pm »
I tried to program the gpsdo original bp but its connection fails as if its fake, If its fake how was it programed in the first place?.
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2673
  • Country: gb
  • Recovering Electrical Engineer
Re: help with blu pill programing
« Reply #6 on: March 06, 2025, 03:31:27 pm »
Viagra. Programable? Who would have thought.
 

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 5051
  • Country: nl
Re: help with blu pill programing
« Reply #7 on: March 06, 2025, 07:28:33 pm »
Is there a programer for them that runs on ubuntu with a gui?.

Yes there is a programming software with a GUI that runs on Linux: https://www.st.com/en/development-tools/stm32cubeprog.html

Get yourself a ST-link clone and connect it the the SWD port of the bluepill. https://www.aliexpress.com/item/1823628996.html

Even if it is a clone MCU, a lot of code will still run on it.

Edit: When programming with the ST-link, the jumper settings don't matter while programming, but make sure to have them set to run the user program when done. With the boot pins you can start the MCU in system programming mode, in which it allows you to load programs to the FLASH via a serial connection on UART1.
« Last Edit: March 06, 2025, 07:34:24 pm by pcprogrammer »
 
The following users thanked this post: ME

Offline pcprogrammer

  • Super Contributor
  • ***
  • Posts: 5051
  • Country: nl
Re: help with blu pill programing
« Reply #8 on: March 06, 2025, 07:31:01 pm »
Fake or not, Blue Pill boards are not known for their high quality workmanship. I had one with solder bridging some of the processor pins (fortunately noticed before I did anything with it), and another had dodgy soldering that left one of the boot pins floating regardless of jumper setting.

You must have had bad luck then. I have a lot of bluepills from Aliexpress and have not have these kind of problems with them.

Online radiolistener

  • Super Contributor
  • ***
  • Posts: 4374
  • Country: Earth
Re: help with blu pill programing
« Reply #9 on: March 09, 2025, 12:09:49 pm »
Is there a programer for them that runs on ubuntu with a gui?.

yes, you can use stlink-gui on linux:

Code: [Select]
sudo apt install stlink-gui


I tried it on Chinese ST-LINKv2 from aliexpress with blue-pill F103 and with black-pill G431, it works ok
« Last Edit: March 10, 2025, 08:45:49 am by radiolistener »
 
The following users thanked this post: ME


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf