Search found 14 matches

by Piter_de_Vries
Sun Apr 30, 2023 2:53 am
Forum: General discussion
Topic: Is the reset pin needed when debugging BluePill with STLink v2 clone?
Replies: 0
Views: 2045

Is the reset pin needed when debugging BluePill with STLink v2 clone?

For in-circuit debugging on a BluePill board with an STLink v2 clone dongle, does the reset wire need to be connected or is that exclusively for programming the STM8?
by Piter_de_Vries
Fri Mar 24, 2023 6:14 pm
Forum: IDE's
Topic: Trying to in-circuit debug BluePill program in VSCode 1.76.2 with PlatformIO
Replies: 0
Views: 5961

Trying to in-circuit debug BluePill program in VSCode 1.76.2 with PlatformIO

I want to do in-circuit debugging of my BluePill program with an STLink v2 dongle in VSCode but I don't think it's working. I can't enter debugging mode unless Boot 0 is set to 1. If Boot 0 is set to 0, then I get this error when I click on Start Debugging: "Failed to launch GDB: .pioinit:13: E...
by Piter_de_Vries
Fri Feb 24, 2023 7:54 am
Forum: Off topic
Topic: CH32V103C8T6
Replies: 1
Views: 4284

CH32V103C8T6

Do ya'll know about the CH32V103C8T6 and related MCUs, meant to be replacements for STM32 equivalents but at a lower cost by using RISC-V instead of ARM? There's a list of them here: http://www.wch-ic.com/products/categories/47.html?pid=5 I'm a brainlet that can't do anything outside of the Arduino ...
by Piter_de_Vries
Thu Oct 06, 2022 3:19 pm
Forum: General discussion
Topic: How many GPIO pins is the Blue Pill supposed to have?
Replies: 3
Views: 1047

How many GPIO pins is the Blue Pill supposed to have?

When I count all the GPIO pins that are broken-out, I find only 35 GPIO pins but I see multiple source online say that there are 37. Are some of them not broken-out? Thanks.
by Piter_de_Vries
Thu Oct 06, 2022 8:17 am
Forum: General discussion
Topic: Connecting to USB while powering with battery: STM32F103C8 Blue Pill
Replies: 6
Views: 1537

Re: Connecting to USB while powering with battery: STM32F103C8 Blue Pill

If I disconnect the power from the battery before connecting to USB, I will lose the data in the RAM.
by Piter_de_Vries
Thu Oct 06, 2022 12:13 am
Forum: General discussion
Topic: Connecting to USB while powering with battery: STM32F103C8 Blue Pill
Replies: 6
Views: 1537

Connecting to USB while powering with battery: STM32F103C8 Blue Pill

I have an STM32F103C8 Blue Pill board of which I am using every pin (so I have no pins to write to an SD card). I want the board to store some data from the ADC in RAM while being powered by NiMH battery (three or four cells in series). I then want to connect the board to my PC to retrieve the data ...
by Piter_de_Vries
Sun Sep 25, 2022 11:21 pm
Forum: General discussion
Topic: BluePill:PB2 state change not detected when connecting to ground - is my core out of date?
Replies: 6
Views: 6167

Re: BluePill:PB2 state change not detected when connecting to ground - is my core out of date?

Where are you getting access to PB2? From the symptoms you describe, I would guess at the at the boot jumper pin. There is a 100k resistor between that and the pin on the processor. Yes, that's where I am connecting to PB2. Is the alternative to try to solder directly to the chip? or maybe on the c...
by Piter_de_Vries
Sun Sep 25, 2022 3:05 pm
Forum: General discussion
Topic: BluePill:PB2 state change not detected when connecting to ground - is my core out of date?
Replies: 6
Views: 6167

Re: BluePill:PB2 state change not detected when connecting to ground - is my core out of date?

I installed the offical STM32 core (I didn't until now realise you could have both installed simultaneously) and the problem persists when my sketch is compiled with that core (works with button set to PB12 but not PB2). I tried the Blink sketch using PB2 and the LED is extremely dim. Could that be ...
by Piter_de_Vries
Sun Sep 25, 2022 11:27 am
Forum: General discussion
Topic: BluePill:PB2 state change not detected when connecting to ground - is my core out of date?
Replies: 6
Views: 6167

Re: BluePill:PB2 state change not detected when connecting to ground - is my core out of date?

hobbya wrote: Sun Sep 25, 2022 11:15 am PB2 is Boot1 of the bluepill and generally a jumper is fitted. The Boot1 jumper is usually tied to LOW. You should either tie the jumper to HIGH or remove this jumper before running your code.

I removed the jumper already and added a DuPont wire that goes to my tactile momentary switch.
by Piter_de_Vries
Sun Sep 25, 2022 12:43 am
Forum: General discussion
Topic: BluePill:PB2 state change not detected when connecting to ground - is my core out of date?
Replies: 6
Views: 6167

BluePill:PB2 state change not detected when connecting to ground - is my core out of date?

I'm trying to use PB2 for a button in my project and it isn't working for some reason. The entirety of my code is posted below. When I change the button pin to PB12, the program behaves as expected but for PB2, no change is detected when I connect the pin to ground. I have confirm that the voltage d...

Go to advanced search