Using the CORE with OR without BOOTLOADER: problems
Posted: Fri Apr 03, 2020 6:23 am
Hi Guys
Maybe there are some problems using Roger's CORE if not in conjunction with the USB bootloader?
(https://github.com/rogerclarkmelbourne/Arduino_STM32) I use Arduino IDE 1.8.5
Here is my problem: simple code
in the SETUP pinmode (PB4, INPUT_PULLDOWN)
digital.Read(PB4)
It works if I upload the sketch by USB bootloader... BUT
when I get rid of the bootloader and I use the ST-LINK V2 dongle, it doesn't work...
digital.Read(PB4) is always high... and in fact PB4 output 3.3 V
Is there some configuration of the GPIO registers in the bootloader that the core doesn't take care of ?
I tried on different Bluepills and Blackpills …
if I use normal INPUT and external resistor it works also without bootloader...
------------------------------
Ok let me try with another pin, PB5...
well it works with and without bootloader
Usually I use external Pull-up or down resistor, but now I want to save some space an components...
Is there a known reason why some pins they work without bootloader and others don't?
Thanks
Maybe there are some problems using Roger's CORE if not in conjunction with the USB bootloader?
(https://github.com/rogerclarkmelbourne/Arduino_STM32) I use Arduino IDE 1.8.5
Here is my problem: simple code
in the SETUP pinmode (PB4, INPUT_PULLDOWN)
digital.Read(PB4)
It works if I upload the sketch by USB bootloader... BUT
when I get rid of the bootloader and I use the ST-LINK V2 dongle, it doesn't work...
digital.Read(PB4) is always high... and in fact PB4 output 3.3 V
Is there some configuration of the GPIO registers in the bootloader that the core doesn't take care of ?
I tried on different Bluepills and Blackpills …
if I use normal INPUT and external resistor it works also without bootloader...
------------------------------
Ok let me try with another pin, PB5...
well it works with and without bootloader



Usually I use external Pull-up or down resistor, but now I want to save some space an components...
Is there a known reason why some pins they work without bootloader and others don't?
Thanks