Red Pill or Blue Pill?

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
User avatar
Rick Kimball
Posts: 1038
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Red Pill or Blue Pill?

Post by Rick Kimball » Mon May 25, 2015 11:17 pm

RogerClark wrote:So.. Where does this leave things
I think the code is fine.

I hadn't really looked at the voltage regulator on this board. * At first glance I thought it was a transistor *. I think people should replace the voltage regulator on "Blue Pill Board" (hereafter called) BPB. It seems to be under powered and leaves a lot to be desired. I think the 10k pull up resistor .. hmm I don't know what to think, it just seems wrong. If people replace the voltage regulator and do some minor modification to the board replacing the resistor, it is probably OK.

-rick
-rick

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

Re: Red Pill or Blue Pill?

Post by RogerClark » Mon May 25, 2015 11:57 pm

Rick

Thanks

I will re-instate the code when I get chance (later today) but it was better to be safe and remove it for a while

Cheers

Roger

zatalian
Posts: 4
Joined: Mon Jun 01, 2015 9:47 am

Re: Red Pill or Blue Pill?

Post by zatalian » Mon Jun 01, 2015 9:54 am

I just got a blue version of the board.
Without any program uploaded, should the board enumerate or not if plugged into an usb port? Mine does not...
I was under the impression that the board would enumerate and would be programmable over usb.
I tried both windows 7 and linux. No luck :cry:

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

Re: Red Pill or Blue Pill?

Post by RogerClark » Mon Jun 01, 2015 10:00 am

The Red and Blue pill don't have a bootloader unless you upload one using either USB Serial or STlink

The bootloader for that board is

https://raw.githubusercontent.com/roger ... 0_pc13.bin

I use STM's own Serial Flash loader but if you don't have that you could use stm32flash in the tools folder

Note, you need a USB to Serial converter to flash the board. It can also be done if you have a Uno (I posted how to flash using a uno elsewhere on the forum)

Flashing the bootloader via serial you need to set Boot0 link to HIGH

see https://www.youtube.com/watch?v=G_RF0a0hrak

For using a Uno see
http://www.stm32duino.com/viewtopic.php ... &hilit=uno

zatalian
Posts: 4
Joined: Mon Jun 01, 2015 9:47 am

Re: Red Pill or Blue Pill?

Post by zatalian » Wed Jun 03, 2015 12:39 pm

I do have a ftdi usb to serial 3.3V adaptor.

What STM serial flash loader are you talking about? Is it a free download?
I tried stm32flash but no luck...

Just to be sure:

Boot0 should be 1
Boot1 should be zero
press reset
flash

correct?

Also, what baudrate do i need to flash? Is the default 57600 ok? is the default 8E1 ok?

zatalian
Posts: 4
Joined: Mon Jun 01, 2015 9:47 am

Re: Red Pill or Blue Pill?

Post by zatalian » Wed Jun 03, 2015 12:49 pm

Ok, i'm one step further :P
I found the stm loader demo and burning the bootloader was successfull!

next... drivers

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

Re: Red Pill or Blue Pill?

Post by RogerClark » Wed Jun 03, 2015 9:37 pm

Windows drivers are in the repo

See driver/win folder

Run the bat file

If you are using Linux or OSX you need to make changes to the rules files, see the wiki on GitHub , it has information about this

zatalian
Posts: 4
Joined: Mon Jun 01, 2015 9:47 am

Re: Red Pill or Blue Pill?

Post by zatalian » Thu Jun 04, 2015 6:55 am

it's working!
BlinkNCount over usb is counting and blinking :P

No hardware modifications where necessary on my blue board.

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

Re: Red Pill or Blue Pill?

Post by RogerClark » Thu Jun 04, 2015 7:13 am

@zatalian

OK. Some other people have already tested with Blue Pill and it works OK, it also works on Red Pill and for some people it works with the "Ugly" board, but the Ugly board doesnt work for me :-( , perhaps mine has a fault

darth_llamah
Posts: 89
Joined: Fri Aug 21, 2015 10:08 am

Re: Red Pill or Blue Pill?

Post by darth_llamah » Sun Sep 20, 2015 11:48 am

Just performed the "resistor surgery" on my blue pill board. There is no manufacturer marked on the silk screen, flux visible on the board is not my work. Original resistor was 10 kOhm, now it's replaced with a 1/8W 1.5kOhm one.
bluepill.jpg
bluepill.jpg (71.11 KiB) Viewed 2107 times

Post Reply