WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post here first, or if you can't find a relevant section!
Fziegler_076
Posts: 21
Joined: Fri Apr 19, 2024 1:04 am

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by Fziegler_076 »

void SystemClock_Config() {

return; // <- return on entry, so no clock setting is done

....
}
Should I do this in a sketch or fix some file?



I also bought the same boards with HSE 25 MHz today, but they will arrive no earlier than in 2 weeks.
ag123
Posts: 1668
Joined: Thu Dec 19, 2019 5:30 am
Answers: 25

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by ag123 »

for 32k RTC crystal , i've a few times it doesn't oscillate, but normally for the HSE 8, 12, 25 mhz crystals etc, seldom have problem, so it is surprising if HSE don't oscillate, but maybe sometimes that can happen.
ag123
Posts: 1668
Joined: Thu Dec 19, 2019 5:30 am
Answers: 25

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by ag123 »

Fziegler_076 wrote: Sun Apr 21, 2024 2:48 am
void SystemClock_Config() {

return; // <- return on entry, so no clock setting is done

....
}
Should I do this in a sketch or fix some file?

I also bought the same boards with HSE 25 MHz today, but they will arrive no earlier than in 2 weeks.
inside that variant file
Fziegler_076
Posts: 21
Joined: Fri Apr 19, 2024 1:04 am

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by Fziegler_076 »

oid SystemClock_Config() {

return; // <- return on entry, so no clock setting is done
I have corrected the file

Code: Select all

oid SystemClock_Config() {

return; // <- return on entry, so no clock setting is done
Unfortunately, this doesn't work either (
I will try it via ST-LINK
Attachments
variant_BLACKPILL_F411CE.zip
(1.34 KiB) Downloaded 4 times
ag123
Posts: 1668
Joined: Thu Dec 19, 2019 5:30 am
Answers: 25

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by ag123 »

if that doesn't work, then it is unlikely to be a clock issue, because by returning in void SystemClock_Config(), before clock setting.
it is running on its internal clock, not even on the crystal

it seem you have a few boards, all of them don't work?
Fziegler_076
Posts: 21
Joined: Fri Apr 19, 2024 1:04 am

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by Fziegler_076 »

if that doesn't work, then it is unlikely to be a clock issue, because by returning in void SystemClock_Config(), before clock setting.
it is running on its internal clock, not even on the crystal
it seem you have a few boards, all of them don't work?
Yes, I have 10 boards! I've already checked on 4x and it doesn't no work on all 4x via USB DFU


I understand you!
Thank you very much!

I will be able to test with ST-Link only tomorrow and I will write immediately
ag123
Posts: 1668
Joined: Thu Dec 19, 2019 5:30 am
Answers: 25

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by ag123 »

if the stm32cube programmer messages make sense, it seem your boards are actually working, otherwise cannot even program.
but the blink test not working is unusual.

I rebuild a blink test with some other test usb, adc, temperature reading, whetstone benchmark etc
my board is 25 mhz, I've rebuild this for hse 8 mhz fcpu 84 mhz
you can try flashing and testing
but this is for stm32f401 not f411

this one has virtual comm port, you can try using putty to connect
https://www.putty.org/
i think arduino ide serial monitor works as well

edit:
I uploaded a new bin file, should be the same but if it works the statistics for this is more accurate, previous one I define wrong fcpu to calculate wheatstone benchmark
Attachments
blackpill_f401_8mhz_fcpu84mhz.zip
blink + other test in stm32f401 hse 8mhz fcpu 84mhz
(13.36 KiB) Downloaded 6 times
Last edited by ag123 on Sun Apr 21, 2024 4:38 am, edited 3 times in total.
Fziegler_076
Posts: 21
Joined: Fri Apr 19, 2024 1:04 am

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by Fziegler_076 »

Yes, the programming of the boards is fine, but the LED does not really work.

On another STM32H7 board https://aliexpress.com/item/1005005872938104.html
everything is fine being flashed through DFU and the LED is working fine!
User avatar
fpiSTM
Posts: 1754
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by fpiSTM »

Try to debug using Arduino IDE 2.2.1.
The latest version 2.3.x changes the debug configuration way. I will fix this within next release.

Simply enable the optimize for debugging option and you should be able to debug and see where it stucks.
Fziegler_076
Posts: 21
Joined: Fri Apr 19, 2024 1:04 am

Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz

Post by Fziegler_076 »

Try to debug using Arduino IDE 2.2.1.
The latest version 2.3.x changes the debug configuration way. I will fix this within next release.

Simply enable the optimize for debugging option and you should be able to debug and see where it stucks.
Thanks!
I'll try it tomorrow.
Post Reply

Return to “General discussion”