Closed ghost closed 5 years ago
Please write the command from which you are programming the device. Most likely this is a bug of the program that loads the firmware. Try to repeat these commands several times, maybe the device has not been erased completely or protection has not disappeared, try switching the loader jumper and again these commands.
reset halt stm32f1x unlock 0 reset halt
Hi @sklv ,
I've checked your binary and it doesn't work for me either. Are you by chance using Ubuntu 18.04 LTS? Apparently, there is a bug in newlib which causing any binary using newlib to crash. Here is the bug report https://bugs.launchpad.net/ubuntu/+source/gcc-arm-none-eabi/+bug/1767223 and one possible workaround is to install newer package https://github.com/bbcmicrobit/micropython/issues/514#issuecomment-404759614
Use kali linux, its best os)))
I tried with the unlock commands enabled, and all configurations of the bootloader pins to get the same results as before.
I'm using gentoo with a toolchain built with crossdev -s4 -S --ex-gdb -t arm-none-eabi
which i have been led to believe in the openocd irc, might be the cause of my issues.
I will try to non-self-built toolchain and see if it makes a difference.
I've seen this thread with similar issues on Gentoo caused by incorrect build flags.
I've verified that my toolchain is the issue, as I compiled with the toolchain from arm.com and everything is working. Thanks all for the prompt replies, advice and firmware :)
Hi, thanks for writing a cool firmware. I'm trying to build and flash a blue pill board. I can build fine (bins.zip containing .elf and .bin attached). I can't exactly follow your instructions as if I telnet to my localhost, openocd drops the connection, so I opted to use
openocd -f openocd.txt
. If I useprogram build/u2f.bin 0x08000000 verify reset
to flash, when I connect the board to my PC I don't get anything indmesg
. If I useprogram build/u2f.elf verify reset exit
to flash, I get:Both BOOT pins set to 0, which has seemed to work fine so thus far. Any idea what's going wrong? Happy to provide any additional info.
openocd.txt bins.zip