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
martinayotte
Posts: 1145
Joined: Mon Apr 27, 2015 1:45 pm

Re: Red Pill or Blue Pill?

Postby martinayotte » Tue May 31, 2016 5:53 pm

@arise, Yes, those schematics are showing schottky diodes, so the USB_VBUS and VCC_IN are not in conflict.

User avatar
martinayotte
Posts: 1145
Joined: Mon Apr 27, 2015 1:45 pm

Re: Red Pill or Blue Pill?

Postby martinayotte » Tue May 31, 2016 6:00 pm

@denis, quickly, I can see 2 differences :

- The LDO of the first seems to be an AMS1117, with huge quiescent current, while the second use small LDO, probably such as SPX3819, with lower quiescent current.
- The MicroUSB connector of the first has only 2 mounting pad while the second has four, which make it more solid.

Arise
Posts: 12
Joined: Sun May 29, 2016 7:13 am

Re: Red Pill or Blue Pill?

Postby Arise » Thu Jun 02, 2016 1:35 pm

I've received a blue pill today and connected it to PC and got an USB error about malfunctioning, not about missing drivers.
Initially there was a 10k ohm resistor.
I've replaced that resistor with a 1500ohm resistor (152) and I still get the same error (about malfunctioning).

When I supply power to the board (over USB) or via 3.3V then the PC13 led is blinking fast.

I've checked the resistance between PA12 and 3.3V and I have 1.5k now.

Do I have to write a bootloader first in order to be able to connect directly over USB to the board? Or the jumpers must be set in some other position?
Attachments
r1500ohm_replaced.jpg
r1500ohm_replaced.jpg (150.03 KiB) Viewed 351 times
Last edited by Arise on Thu Jun 02, 2016 1:43 pm, edited 1 time in total.

User avatar
Rick Kimball
Posts: 722
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Red Pill or Blue Pill?

Postby Rick Kimball » Thu Jun 02, 2016 1:42 pm

Nice job soldering. You can use the USB just fine without a bootloader. It really comes down to how you want to program the device. You have at least 3 choices:

1.) Use the built-in serial uploader with an usb->serial dongle (FTDI, CP210x, CH340 .. etc) and stm32flash
2.) Use Serial Wire Debug (SWD 2 wire JTAG) with an stlink programmer with openocd
3.) Load a bootloader using either method 1 or 2 and then use the bootloader upload. http://wiki.stm32duino.com/index.php?ti ... bootloader
-rick

User avatar
ahull
Posts: 1397
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: Red Pill or Blue Pill?

Postby ahull » Thu Jun 02, 2016 1:47 pm

Rick Kimball wrote:Nice job soldering.

Ultrasonic cleaner?
- Andy Hull -

User avatar
Rick Kimball
Posts: 722
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Red Pill or Blue Pill?

Postby Rick Kimball » Thu Jun 02, 2016 1:53 pm

I must be using the wrong sized SMD resistor mine is slightly larger and has room for 4 digits (1501) vs your 3 digit (152) I had to look that up to see if 152 was really 1k5
-rick

Arise
Posts: 12
Joined: Sun May 29, 2016 7:13 am

Re: Red Pill or Blue Pill?

Postby Arise » Thu Jun 02, 2016 4:14 pm

Ultrasonic cleaner?

Dont know what is that...
Unsoldered the old chip with a tiny bit of bismuth alloy, cleaned then tinned the pads, cannibalized a 1500ohm resistor from another dead usb donor device, and soldered it with a light touch of the tip while holding the resistor on board with tweezers.

I also had a very big SMD for 1.5k resistor, but after I took the original resistor out, I feared the big sized smd will not fit on the tiny pads, so I started looking for a board for donors.

Anyway...

Using the Flash Loader Demonstrator, I was able to upload (boot0 set to 1, boot1 set to 0) a file generic_boot20_pc13.bin. I assume this is the right??? name for my board? Used a USB to Serial adaptor to do that.

After uploading it and moving the jumpers back (boot0 set to 0, boot1 set to 0) my computer is recognizing the board as a Maple DFU when I connect it over USB.

Now I'm stuck again, how to make it to look like a Maple Serial and not a Maple DFU?

If I try to rewrite a sketch, I can only do that on USB To serial Adapter, not on USB cable directly.

Help?

User avatar
Rick Kimball
Posts: 722
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Red Pill or Blue Pill?

Postby Rick Kimball » Thu Jun 02, 2016 5:06 pm

I can't really help there. I've never loaded the bootloader. I bought my blue pills because the swd pins are broken out and it makes it very easy to use with an stlink programmer. If you are really bent on using the bootloader it is possible. However, the right board to use for bootloader operation is the Baite Maple Mini clone as that is what most people who want to do bootloading are using.
-rick

User avatar
Vassilis
Posts: 287
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: Red Pill or Blue Pill?

Postby Vassilis » Thu Jun 02, 2016 5:08 pm

The bluepill must be connected to your computer USB socket.
Select:
* Variant: STM32F103C8 20k RAM 64k flash
* Tools -> Upload method -> STM32duino bootloader
* keep pressed the reset button on bluepill board.
* Compile a blink sketch and click on arduino IDE "upload" button.

When you see the following message release the reset button.
arduinoIDE.JPG
arduinoIDE.JPG (34.9 KiB) Viewed 322 times
Last edited by Vassilis on Thu Jun 02, 2016 5:19 pm, edited 3 times in total.

User avatar
Rick Kimball
Posts: 722
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Red Pill or Blue Pill?

Postby Rick Kimball » Thu Jun 02, 2016 5:12 pm

Have you watched any of Roger's videos?

https://www.youtube.com/watch?v=0jdJp3TQuJY
-rick


Return to “Generic STM32F103”

Who is online

Users browsing this forum: No registered users and 2 guests