Hello friends!
I bought a new version of the Black Pill v3.1 board (WeAct Studio) with HSE 8 MHz.
The standard version of the board is available with HSE 25 MHz, and this board (easier to enter dfu mode by usb)
was made with HSE 8 MHz and it does not work.
Please tell me in detail what and where to fix so that the board works in Arduino.
I am a novice specialist and I really need to launch this board.
I will be very grateful for your help.
WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz
-
- Posts: 3
- Joined: Fri Apr 19, 2024 1:04 am
Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz
Simply redefine HSE_VALUE using hal_conf_extra.h.
See the wiki.
See the wiki.
-
- Posts: 3
- Joined: Fri Apr 19, 2024 1:04 am
Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz
Hi fpiSTM !
There is no such file. I need to create it myself in the catalog C:\Users\Admin\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.7.1\variants\STM32F4xx\F411C(C-E)(U-Y)?
Or does it need to be created in another directory? I looked at the Wiki, but did not understand what needs to be entered there.
Only one line #define HSE_VALUE 800000000U or something else needs to be added to this file?
Could you help me write the contents of this file?
Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz
https://github.com/stm32duino/Arduino_C ... adaptation
https://github.com/stm32duino/Arduino_C ... efinitions
So simply create the file with at sketch level :
#define HSE_VALUE 800000000U
https://github.com/stm32duino/Arduino_C ... efinitions
So simply create the file with at sketch level :
#define HSE_VALUE 800000000U
-
- Posts: 3
- Joined: Fri Apr 19, 2024 1:04 am
Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz
I created the hal_conf_extra file.h with a single line #define HSE_VALUE 800000000U and put it in the folder with the sketch, next to the blink.ino files.
The program is loaded into the microcontroller, but the LED does not blink.
I use the standard Blink program from the examples
Why doesn't it work?
What could be the problem?
I checked on 3 boards.
The program is loaded into the microcontroller, but the LED does not blink.
I use the standard Blink program from the examples
Code: Select all
// the setup function runs once when you press reset or power the board
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
What could be the problem?
I checked on 3 boards.