Gnuk on bluepill: I am missing something

Hartmut Semken hase at hase.net
Fri Dec 31 23:26:18 CET 2021


Hi,

I am new to the list.

Could not find a solution in the archives, so here it goes

I tried multiple Bluepills I have on hand; none work for me.

One particular device reports only 64k Flash and here openocd shows an 
error; this is somewhat expected.

But even on the 128k versions, I do not see the Bluepill enumeratre on 
USB at all.

I got a recent version of gnuk:

[hase at hase-station gnuk]$ cat VERSION
release/1.2.15

configure and make and flashing run just fine

[hase at hase-station gnuk]$ ./configure --vidpid=234b:0000 --target=BLUE_PILL

[hase at hase-station gnuk]$ make clean && make -j16

[hase at hase-station gnuk]$ openocd -f interface/stlink.cfg -f 
target/stm32f1x.cfg -c init -c "reset halt" -c "stm32f1x unlock 0" -c 
"reset halt" -c "program build/gnuk.elf verify reset exit"

Open On-Chip Debugger 0.11.0-rc2
Licensed under GNU GPL v2
For bug reports, read
     http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To 
override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The 
results might differ compared to plain JTAG/SWD
Info : clock speed 1000 kHz
Info : STLINK V2J37M26 (API v2) VID:PID 0483:374B
Info : Target voltage: 3.261660
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for stm32f1x.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800025c msp: 0x20005000
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x unlocked.
INFO: a reset or power cycle is required for the new settings to take 
effect.

target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800025c msp: 0x20005000
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800025c msp: 0x20005000
** Programming Started **
** Programming Finished **
** Verify Started **
** Verified OK **
** Resetting Target **
shutdown command invoked

Yet, the programmed Bluepill does not show up on USB. Not at all.

What am I missing here?


merci bien

hase





More information about the Gnuk-users mailing list