[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
fpiSTM
Posts: 722
Joined: Fri Sep 16, 2016 12:33 pm
Location: Le Mans, France
Contact:

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by fpiSTM » Tue Jan 15, 2019 5:45 pm

Well, really strange behaviour. Will see if someone in ST already saw this.

Seems you are not the first: Fake STM32 “Blue Pill” Boards

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

Re: STM32F103C8T6 Bootloader/Sketch problems

Post by Rick Kimball » Tue Jan 15, 2019 6:24 pm

Watching the video I can see you are not using Roger's core ( the only one that works with the stm32duino DFU bootloader) but you are using the official STM core. Roger's libmaple bootloader doesn't yet work with the official core.

You have two options:

Option 1)
Install Roger's libmaple core. This is the one that works with the DFU user bootloader:
https://github.com/rogerclarkmelbourne/Arduino_STM32
After you install Roger's core please select the proper board:
Image

Option 2)
Continue to use the STM official core, and use the ROM bootloader with your FTDI USB serial dongle as the uploader.


Also, could you please provide the vendor that sold you that bluepill so the rest of use can avoid this pain?
-rick

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

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

Post by fredbox » Tue Jan 15, 2019 11:50 pm

Also, could you please provide the vendor that sold you that bluepill so the rest of use can avoid this pain?
The first post in this thread has a link to an ebay seller. Mine came from https://www.aliexpress.com/item/STM32F1 ... 4c4d0nWq6N

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

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

Post by RogerClark » Wed Jan 16, 2019 2:06 am

Alexpress are often very good with getting a refund. So you may be able to get your money back

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

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

Post by mrburnette » Wed Jan 16, 2019 3:32 am

RogerClark wrote:
Wed Jan 16, 2019 2:06 am
Alexpress are often very good with getting a refund. So you may be able to get your money back
On the positive, 32k flash is the same as UNO Atmega328P, but 10K SRAM is 5X the UNO and 72MHz is 6X the clock, so at $1.69 each delivered, the mutant faux clone Blue Board is still a useful board.

Based on my experiences... For small quantities, the Aliexpress.com vendor is likely to issue a full-refund and reject return of same.

But this chip-swapping was bound to eventually happen, IMO. eBay and Aliexpress.com vendors with good ratings are apparently caught up in this deception; and I doubt it it is on a small scale as the grinding and relabeling is not without cost. Until this shakes out, any reseller is suspect. Again, more than before, we are in a "buyer beware" marketplace. Someone just threw cold watter on the hot Blue Pill market.


Ray

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

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

Post by fredbox » Wed Jan 16, 2019 4:19 am

On the positive, 32k flash is the same as UNO Atmega328P, but 10K SRAM is 5X the UNO and 72MHz is 6X the clock, so at $1.69 each delivered, the mutant faux clone Blue Board is still a useful board.
The link from fpiSTM on the fake boards has instructions on modifying the linker and boards.txt files to allow compilation. I'll have to experiment and see if I can make these work. Rarely does one of my programs need more than 32kb of flash.

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

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

Post by fredbox » Sat Jan 19, 2019 3:46 pm

I installed the fpiSTM core and modified boards.txt then added the linker script. The blink sketch uploads and runs successfully using serial upload. I added one more line to boards.txt for 10kb ram, as it was defaulting to 20kb. diff shows that there are four lines changed in boards.txt.

I also tried to get Roger's core working, but am not successful yet. This would be the most desirable outcome, as many things seem to be missing for the blue pill in the official fpistm core.

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

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

Post by BennehBoy » Sat Jan 19, 2019 5:47 pm

fredbox wrote:
Sat Jan 19, 2019 3:46 pm
I also tried to get Roger's core working, but am not successful yet. This would be the most desirable outcome, as many things seem to be missing for the blue pill in the official fpistm core.
Which things?

CDC is in the current github version, DFU should come with 1.5.0 (I hope).
-------------------------------------
https://github.com/BennehBoy

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

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

Post by fredbox » Sun Jan 20, 2019 12:01 am

Once I enable CDC and use Serial.begin compilation fails with an out of ram error (need another 1K). If I compile for a standard blue pill with 64 or 128K, compilation is successful.

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

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

Post by mrburnette » Sun Jan 20, 2019 3:57 am

fredbox wrote:
Sun Jan 20, 2019 12:01 am
Once I enable CDC and use Serial.begin compilation fails with an out of ram error (need another 1K). If I compile for a standard blue pill with 64 or 128K, compilation is successful.
Compilation is important, but the running system may likely fail due to SRAM exhaustion: stack and/or heap. Bottom line: 10K SRAM and 32K flash means the programmer must be judicious about how to use these reduced resource uC's. Still, for the right application and for under $2 per board, these are rather useful even if half of what was expected.


Ray

Post Reply