[fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems

Generic boards that are not Maple or Maple mini clones, and don't contain the additional USB reset hardware
fredbox
Posts: 211
Joined: Tue Jul 07, 2015 4:44 pm

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by fredbox » Tue Dec 25, 2018 3:10 am

Watched the video. It took a while to recognize that the image was reversed.

Everything looks okay up to about 2:30. At that point, when you pressed reset, you should have seen the led flash. If the led doesn't flash, then the bootloader isn't being recognized. The bootloader does not include a blink sketch, but you should see the PC13 led blinking on reset for a couple of seconds.

Did you also try powering the board from USB once you had uploaded the bootloader? The board should enumerate as a DFU device then as a COM port. You might also try removing the blue pill from your breadboard. I've seen those breadboards cause some problems. If there is any flux remaining on the board, you might try cleaning it off with alcohol. The boot pins have 100K series resistors, so residual flux could be an issue.

In your blink sketch, don't use pin numbers. Use pin names like "PC13" instead.

The program that comes on the board will blink the LED but not enumerate as a recognized USB device, this is normal.

stevestrong
Posts: 3053
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by stevestrong » Tue Dec 25, 2018 11:25 am

You can upload from Arduino when you choose the serial upload method, it works same as with the ST utility gui.
Just upload the blinky sketch. Does it work?
For USB you may have to install the USB drives with admin rights.

Korishan
Posts: 7
Joined: Sun Dec 23, 2018 2:08 pm

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by Korishan » Tue Jan 01, 2019 5:41 pm

fredbox:
Yes, I've connected directly using the usb cable. That is shown in the video. I know the usb is good as it works with my other boards, tablet, and phone.

I never get a blinking of the PC13 led. I tried several times with different boards. All 5 units have the same problem. I've cleaned the flux off the boards using toothbrush and alcohol.

Stevestrong:
I used the Arduino IDE and changed the setting to serial. Are you mean SerialUSB instead of the SerialUART? The SerialUSB won't work if the device isn't seen in Device Manager as a functional port.

fredbox
Posts: 211
Joined: Tue Jul 07, 2015 4:44 pm

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by fredbox » Mon Jan 14, 2019 7:25 pm

In the ST Demonstrator GUI, the CPU type should be "Medium density 64K" not "Low density 32K."
You likely have boards with the wrong CPU chip installed. At 1:30 in your YouTube video, I see 32K.

I received three new boards this morning that report as 32K and do not work. The other boards I have here report 64K and work correctly.

fredbox
Posts: 211
Joined: Tue Jul 07, 2015 4:44 pm

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by fredbox » Tue Jan 15, 2019 1:16 am

Further info from an ST-Link shows that the problem boards only have half the memory and ram:

Working boards:

Code: Select all

./st-info --probe
Found 1 stlink programmers
 serial: 513f6906493f51504816093f
openocd: "\x51\x3f\x69\x06\x49\x3f\x51\x50\x48\x16\x09\x3f"
  flash: 65536 (pagesize: 1024)
   sram: 20480
 chipid: 0x0410
  descr: F1 Medium-density device
Non-working boards:

Code: Select all

./st-info --probe
Found 1 stlink programmers
 serial: 513f6906493f51504816093f
openocd: "\x51\x3f\x69\x06\x49\x3f\x51\x50\x48\x16\x09\x3f"
  flash: 32768 (pagesize: 1024)
   sram: 10240
 chipid: 0x0412
  descr: F1 Low-density device

fredbox
Posts: 211
Joined: Tue Jul 07, 2015 4:44 pm

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by fredbox » Tue Jan 15, 2019 1:46 am

Pictures:

Working:
STM32-working.png
STM32-working.png (3.5 KiB) Viewed 353 times
Not working:
STM32-not-working.png
STM32-not-working.png (3.36 KiB) Viewed 353 times
Ignore the difference in contrast - the working chip had gold Sharpie over the letters. Note that the "C" in the part number is much narrower on the non-working part.

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

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by RogerClark » Tue Jan 15, 2019 9:11 am

Interesting.

I'm not sure how "st-info" makes its determination about the IC.

My best guess is that the chip that didn't work is a cheaper ST device re-labelled as the F103 e.g. perhaps its a F101?
(But I don't know what F1 series would match the results given my st-info, (assuming what st-info reports is correct .....))

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

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by mrburnette » Tue Jan 15, 2019 2:36 pm

Looks like the Asian market may be trying to capitalize on the popularity of the Blue Pill ... dare I suggest fraud?

Image

User avatar
BennehBoy
Posts: 886
Joined: Thu Jan 05, 2017 8:21 pm
Location: Yorkshire
Contact:

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by BennehBoy » Tue Jan 15, 2019 2:45 pm

..goes to check if the parts he has on order explicitly stated flash/sram size....
-------------------------------------
https://github.com/BennehBoy

fredbox
Posts: 211
Joined: Tue Jul 07, 2015 4:44 pm

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by fredbox » Tue Jan 15, 2019 3:22 pm

The AliExpress listing clearly shows 64K flash and 20K ram. I contacted the seller and will see if anything useful happens.

Based on the STM32 data sheet, I'm guessing these are probably STM32F103C6.

st-info (Linux), ST Demonstrator GUI (Windows), and ST-Link Utility (Windows) all agree on the memory and the device ID.

Post Reply