Red Pill or Blue Pill?

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
zmemw16
Posts: 979
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Red Pill or Blue Pill?

Postby zmemw16 » Thu May 12, 2016 3:15 pm

i just pulled up the footprints from geda gaf library and over laid them

i didn't say it was neat, but 0805 overlaps on to 1206, as does 0603 'just a tad of overlap.!

think butt weld with solder.

if they're 0603, replace or just stack a 1k8 on top.

stephen

denis
Posts: 17
Joined: Wed May 11, 2016 8:38 pm

Re: Red Pill or Blue Pill?

Postby denis » Thu May 12, 2016 6:58 pm

Thanks all.
I did some tests. The issue does not comes from the resistor. It is cause by usb connection. If I plug the usb cable to the computer screen, I can only upload one time. If I plug the usb cable to the computer box, no issue, I can upload many times.
It is the same with 10K or 1k5 resistor.

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

Re: Red Pill or Blue Pill?

Postby RogerClark » Thu May 12, 2016 7:16 pm

I am not sure if this is the issue, but the usb connections are often not soldered well

Also, did you select the serial com port for the board in the IDE and can you see serial data e.g from println()

Serial is used to reset the board, so if serial is not working it wont reset.

That being said, Some people have issues with specific usb ports on specific PCs and going through hubs etc.

Do you have another PC or Mac you can try it on

denis
Posts: 17
Joined: Wed May 11, 2016 8:38 pm

Re: Red Pill or Blue Pill?

Postby denis » Thu May 12, 2016 8:45 pm

I try with 4 different cables, on another computer (a macbook 2007), connected to the keyboard usb port and in the usb port where the screen is connected. On all of them, the serial com port is available.
I also write a program with Serial.println(value++);, I was able to see in serial monitor the result.
But when connected to a usb port of the screen, no serial port is available. This confirm that issue comes from my connection to the screen.
I checked with an ohmmeter the resistor between PA12 and 3V3. The value is 10k04 exactly.
:P I was lucky, I can use my Blue Pill without modify it. :P

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

Re: Red Pill or Blue Pill?

Postby RogerClark » Thu May 12, 2016 8:54 pm

The 10k resistor is far too high.

The USB spec value for this resistor should be 1.5k

This is a design fault on these boards :-(

You can just solder a 1.8k resistor between PA12 and 3.3V as it will be in parallel with the exiting 10k that is on the board

As 1/(1/10000 + 1/1800) = 1525 ohms, which is close enough.

In fact, even 1.5k or 2k in parallel may fix this

But..

Running the board via a hub or a keyboard etc, is still likely to be problematic

X-death
Posts: 5
Joined: Fri May 27, 2016 9:50 am

Re: Red Pill or Blue Pill?

Postby X-death » Fri May 27, 2016 10:04 am

Hi STM32duino.

Fist i want to say thanks for the information here and the wiki :
http://wiki.stm32duino.com/index.php?title=Blue_Pill

I have purchased the blue board and pinout is the same as in the wiki page.
Sadly I'm a beginner and it's the first Arduino/ARM hardware i use and i have some problem.

I use Win7 as main PC when i connected the board in USB in my computer it display as unknown USB.

i have installed these repro driver :
https://github.com/rogerclarkmelbourne/ ... er/drivers
now the device is named µPSD DFU STMicroelectronics Extension Application Demo with a yellow warning.
But DfuSeDemo.exe display nothing in the available DFU Device.

I have tried to add the 1,8K resistor in // but error is the same ( i have the 10K CMS resistor soldered).

After reading your discussion here , i think it's normal beacause it don't have the bootloader inside , so my computer can't drive it yet.

i have downloaded "generic_boot20_pc13.bin" and seach a way to send it into the board.
I don't have Serial USB cable but i have a JTAG USB Blaster clone.
Mayube i can build a DIY cable in RS232 ?

Is it possible to use OpenOCD and a JTAG USB Blaster for flashing the bootloader with these board ?
I use OpenOCD in my Raspberry for flashing Altera CPLD.

After that i think i will be able to upload new code directyly from USB into the flash ( after bootloader of course)

Thanks in advance

for information here is what dmesg display ( seems linux tells more information than windows ) :

Image

User avatar
mrburnette
Posts: 1769
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: Red Pill or Blue Pill?

Postby mrburnette » Fri May 27, 2016 12:51 pm

X-death wrote:<...>
for information here is what dmesg display ( seems linux tells more information than windows ) :


You have to use 3rd party tools to make Windows give you the information; for example: usbview.exe and similar utilities, some from the developers disk and other sources such as the resource kits.

Ray

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

Re: Red Pill or Blue Pill?

Postby RogerClark » Fri May 27, 2016 2:14 pm

Look in the FAQs page

viewtopic.php?f=2&t=873

There is a section on windows problem, and a possible solution using zadig

X-death
Posts: 5
Joined: Fri May 27, 2016 9:50 am

Re: Red Pill or Blue Pill?

Postby X-death » Sat May 28, 2016 10:27 am

Thanks both for your reply.

Here is result with Zadig and Usb View!

Image

Image

Is it because they are no bootloader inside ?

i have buy this for send the bootloader.

http://www.ebay.fr/itm/Emulateur-Downlo ... SwstxVOzP-

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

Re: Red Pill or Blue Pill?

Postby zmemw16 » Sat May 28, 2016 11:17 am

look for those on aliexpress, much cheaper, bit longer to wait; i'd suggest getting at least 2 or 3
very useful if you need to program both ends of an experiment. :)
these are just first couple for the search string 'stlink programmer'

http://www.aliexpress.com/item/Hot-Sale-1PCS-ST-LINK-Stlink-ST-Link-V2-Mini-STM8-STM32-Simulator-Download-Programmer-Programming/32371609216.html?spm=2114.01010208.3.11.cghBpY&ws_ab_test=searchweb201556_0,searchweb201602_2_10037_10033_507_10032_10020_10017_10021_10022_10009_10008_10018_101_10019,searchweb201603_9&btsid=9a667dba-d4e8-43cf-bff4-20dfd54a9515

http://www.aliexpress.com/item/Hot-Sale-1PCS-ST-LINK-Stlink-ST-Link-V2-Mini-STM8-STM32-Simulator-Download-Programmer-Programming/32343514985.html?spm=2114.01010208.3.20.cghBpY&ws_ab_test=searchweb201556_0,searchweb201602_2_10037_10033_507_10032_10020_10017_10021_10022_10009_10008_10018_101_10019,searchweb201603_9&btsid=9a667dba-d4e8-43cf-bff4-20dfd54a9515

both £1.61

i'll get corrected, but they use a protocol hardwired into the device, no bootloader.
if its just a small target board you can supply 3v3 at low milliamps, that's 4 wires.
i usually power the target with a usb cable and connect just 3 wires, ground and the data/clock signals.

stephen


Return to “Generic STM32F103”

Who is online

Users browsing this forum: No registered users and 1 guest