Bluepill with STM32F4

Limited support for STM32F4 Discovery, Nucleo and custom F4 boards
racemaniac
Posts: 627
Joined: Sat Nov 07, 2015 9:09 am

Re: Bluepill with STM32F4

Post by racemaniac » Wed Dec 28, 2016 8:56 pm

zmemw16 wrote:what does the blue pill plus pin out diagram look like at the edges ?

a complete re-write or just a few pins ?

stephen
All the port numbers are correct. the peripherals however are located on other ports, so if you're used to a peripheral being at PA8, then it could be on PB5 on the other microcontroller.
only the crystals, power, usb & DACS seem to always be on the same pins.

So if you make an upgraded bluepill like this,all the port labeling is correct :D. (if you'd upgrade a maple mini however... all the peripherals indicated on it won't be correct).

racemaniac
Posts: 627
Joined: Sat Nov 07, 2015 9:09 am

Re: Bluepill with STM32F4

Post by racemaniac » Wed Dec 28, 2016 9:02 pm

Rick Kimball wrote:It seems like there are a couple of lqfp 48 parts available in the stm32l4xx line, the stm32l433cct6 and the stm32l443cct6. These don't have as much ram or flash (64k/256k) but might be an easier replacement, * assuming the pin outs are the same * Both are a step up from the f103's 20k

I wonder if you can just buy the bluepill pcb?

-rick
the stm32f303 is also a nice step up, and also lqfp48 :). A while ago i upgraded a bluepill with it (http://www.stm32duino.com/viewtopic.php?f=40&t=893), and that can be done with a normal soldering iron :). Always double check with stm32cubemx if the pinouts are compatible, i think i found one of the stm32l series which had one of its power supply pins moved to another pin, but the 433 at least seems to be compatible :)-.

User avatar
RogerClark
Posts: 7494
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Bluepill with STM32F4

Post by RogerClark » Wed Dec 28, 2016 9:55 pm

I tried upgrading a Maple mini to a GD32 some time ago, but as the GD32 was removed from another board, it had a tiny bit of solder on it, and I ended up damaging the Maple mini by pulling a track off the PCB when I tried to position the GD32

So Its probably best to do this upgrade on the cheapest board e.g. Black Pill and not using a salvaged STM32 ;-)

racemaniac
Posts: 627
Joined: Sat Nov 07, 2015 9:09 am

Re: Bluepill with STM32F4

Post by racemaniac » Thu Dec 29, 2016 7:48 am

RogerClark wrote:I tried upgrading a Maple mini to a GD32 some time ago, but as the GD32 was removed from another board, it had a tiny bit of solder on it, and I ended up damaging the Maple mini by pulling a track off the PCB when I tried to position the GD32

So Its probably best to do this upgrade on the cheapest board e.g. Black Pill and not using a salvaged STM32 ;-)
had the same issues when a while back i tried to upgrade a maple mini with the stm32f303. on the mini it's so easy to pull off a track, on the bluepill i don't have that issue.

User avatar
RogerClark
Posts: 7494
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Bluepill with STM32F4

Post by RogerClark » Thu Dec 29, 2016 8:45 am

I think I'll order some more Black Pill's as they have a better USB connector, as I've already broken the usb connector on 2 x Red Pills in the last year.

racemaniac
Posts: 627
Joined: Sat Nov 07, 2015 9:09 am

Re: Bluepill with STM32F4

Post by racemaniac » Thu Dec 29, 2016 10:55 am

RogerClark wrote:I think I'll order some more Black Pill's as they have a better USB connector, as I've already broken the usb connector on 2 x Red Pills in the last year.
blackpill indeed also seems to work. i have yet to do a succesful transplant on them (my first attempt was on a blackpill, and removing the f103 went without issues. afterwards i ruined the board because i was still getting to know my hot air station XD)

racemaniac
Posts: 627
Joined: Sat Nov 07, 2015 9:09 am

Re: Bluepill with STM32F4

Post by racemaniac » Sat Dec 31, 2016 8:03 am

i've done some more experiments with replacing chips:
for me the bluepill is the only option. The maple mini has tiny pads that are only suited for qfp, not for qfn... and the blackpill has a lot of smd components near the microcontroller... it could work, but you'll have to fix up all the tiny resistors/capacitors afterwards >_<

*edit* after some testing i've noticed that if i put the 401 in a higher clockspeed, it often crashes while setting up the clock. i'm going to have a look at if it has to do with the VCAP pin that isn't connected yet. at 24Mhz it's running stable, at 72Mhz it often crashes.

racemaniac
Posts: 627
Joined: Sat Nov 07, 2015 9:09 am

Re: Bluepill with STM32F4

Post by racemaniac » Mon Jan 16, 2017 7:05 pm

Ok, after some waiting for the bigger value ceramic capacitors to arrive from china, i finally continued with this project, and i've got some great news :)
After adding the required capacitor (4.7µF between PB11 & ground, and yes it HAS to be ceramic), my bluepill with the stm32f411CEU6 is now running stable at 96Mhz :). (basically the fastest it can go. it's rated to 100Mhz, but then USB won't work as you can't configure a 48Mhz clock).
So if you want to go for a stm32f411 bluepill, it's possible and it works :).

I've yet to do more extensive tests with this little beast, but all signs are starting to point to the fact that this works :p.

zmemw16
Posts: 1491
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Bluepill with STM32F4

Post by zmemw16 » Tue Jan 17, 2017 12:49 am

what package were the ceramic caps ? leads or smd
any convenient cap to replace and / or rewire the pads

is that PB11 the bluepill pin on the pcb, or pb11 on the cpu or something entirely different ?

any other mods needed ?

stephen

racemaniac
Posts: 627
Joined: Sat Nov 07, 2015 9:09 am

Re: Bluepill with STM32F4

Post by racemaniac » Tue Jan 17, 2017 6:58 am

zmemw16 wrote:what package were the ceramic caps ? leads or smd
any convenient cap to replace and / or rewire the pads

is that PB11 the bluepill pin on the pcb, or pb11 on the cpu or something entirely different ?

any other mods needed ?

stephen
just a normal leads package, and between the pcb pb11 & ground, so very easy to do:
bluepill411.jpg
bluepill411.jpg (16.88 KiB) Viewed 119 times
And besides that i did no other mods. I've yet to test other features, but USB is on the same pins as the 103, so should just work, all ports are on the same pins, so the bluepill labeling is correct (except for PB11 which has become VCAP which requires this capacitor).
Last edited by racemaniac on Fri Sep 29, 2017 6:22 am, edited 1 time in total.

Post Reply