G'day,
I've made up a Blue-Pill Image (30KB) that can be used to test if the USB on your board is working. It can also read the MCU internal ‘Device Electronic Signature’ and prints the results in a organized manner according to the STM32F0 tech sheet. The image boots on power up and runs in a 64KB Flash STM32F103.
Commands are entered in a Terminal Emulator on a PC, connected to the USB device on the board ("<Mecrisp STM32F10x Forth Serial Port>")
This uses the Mecrisp-Stellaris USB driver for STM32F103 by Jean-Claude Wippler.
I've tested it on a Shenzhen LC Technology board with a STM32F103C8T6 MCU as I don't have a Blue-Pill.
For more info: https://mecrisp-stellaris-folkdoc.sourceforge.io/f1-usb.html#stm32f1-usb
Image tarball download link: https://sourceforge.net/projects/mecrisp-stellaris-folkdoc/files/mecrisp-stellaris-1882bdaff62f637a7bdd517d14f4c1a4.tar.gz/download
When submitting your results,
please paste the text in your reply rather than pictures because text is a lot easier for me to tabulate the results.
1882bdaff62f637a7bdd517d14f4c1a4.bin User ResultsSTM32F103C8T6This is the chip I developed my 1882bdaff62f637a7bdd517d14f4c1a4.bin image on. It’s in a $9 Shenzhen LC Technology board. 64KB Flash.
Die xy coords: 108068691
Wafer Number: 80
Lot_num ascii encoded [23:0]: 0x00555071 | U P q
Lot_num ascii encoded [55:24]: 0x87011723 | . . . #
STM32F103ZET144pinner with 512kB flash and 64kB ram
Die xy coords: 97779505
Wafer Number: 78
Lot_num ascii encoded [23:0]: 0x00383341 | 8 3 A
Lot_num ascii encoded [55:24]: 0x51137004 | Q . p .
FLASH.. TOTAL REPORTED: 524288 USED: 51200 FREE: 473088
RAM.... TOTAL PRESET: 20000 USED: 868 FREE: 19132
BPill N1(it has got 128kB).
Die xy coords: 107806536
Wafer Number: 113
Lot_num ascii encoded [23:0]: 0x00564989 | V I .
Lot_num ascii encoded [55:24]: 0x67255444 | g % T D
FLASH.. TOTAL REPORTED: 65536 USED: 51200 FREE: 14336
RAM.... TOTAL PRESET: 20000 USED: 868 FREE: 19132
BPill N2(it has got 128kB).
Die xy coords: 107741009
Wafer Number: 117
Lot_num ascii encoded [23:0]: 0x00535783 | S W .
Lot_num ascii encoded [55:24]: 0x81174113 | . . A .
FLASH.. TOTAL REPORTED: 65536 USED: 51200 FREE: 14336
RAM.... TOTAL PRESET: 20000 USED: 868 FREE: 19132
Bluepillmarked as STM32F103C8T6
Die xy coords: 108068690
Wafer Number: 114
Lot_num ascii encoded [23:0]: 0x00525366 | R S f
Lot_num ascii encoded [55:24]: 0x67145016 | g . P .
FLASH.. TOTAL REPORTED: 65536 USED: 51200 FREE: 14336
RAM.... TOTAL PRESET: 20000 USED: 868 FREE: 19132
GD32F103C8T6“Device descriptor request failed”
Good BluepillDie xy coords: 107806545
Wafer Number: 80
Lot_num ascii encoded [23:0]: 0x00525680 | R V .
Lot_num ascii encoded [55:24]: 0x87192455 | . . $ U
POS BluepillRequires reconfiguring GDB, does not work with Windows STM debug at all.
Die xy coords: 74414100
Wafer Number: 47
Lot_num ascii encoded [23:0]: 0x00525680 | . . .
Lot_num ascii encoded [55:24]: 0x87192455 | . . .
Note: the total lack of Ascii data is telling.