Re: WeAct Studio STM32F411CEU6 BlackPill v3.1 crystal is 8 MHz
Posted: Sun Apr 21, 2024 12:14 am
Friends, thanks for the tips!
So, I bought 10 8 MHz HSE boards.
All the boards are stitched by the manufacturer with a demo program with a flashing LED, and they all flash the LED when connected, which means that all the boards are working!
1. All boards with a frequency of 8 MHz - I took a photo and will attach it soon.
2. The boards switch to DFU mode by pressing the buttons, as you wrote
3. I select "USB CDC Serial", but after flashing the program into the microcontroller, the COM port is not displayed on PC devices (I checked in Windows Device Manager)- so the microcontroller does not start!
4. I have corrected the file C:\Users\Admin\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\variants\STM32F4xx\F411C(C-E)(U-Y)\variant_BLACKPILL_F411CE.cpp
So, I bought 10 8 MHz HSE boards.
All the boards are stitched by the manufacturer with a demo program with a flashing LED, and they all flash the LED when connected, which means that all the boards are working!
1. All boards with a frequency of 8 MHz - I took a photo and will attach it soon.
2. The boards switch to DFU mode by pressing the buttons, as you wrote
Code: Select all
STM32CubeProgrammer v2.16.0
-------------------------------------------------------------------
USB speed : Full Speed (12MBit/s)
Manuf. ID : STMicroelectronics
Product ID : STM32 BOOTLOADER
SN : 389E33553233
DFU protocol: 1.1
Board : --
Device ID : 0x0431
Device name : STM32F411xC/E
Flash size : 512 KBytes (default)
Device type : MCU
Revision ID : --
Device CPU : Cortex-M4
Memory Programming ...
Opening and parsing file: Blink.ino.bin
File : Blink.ino.bin
Size : 23.57 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 1]
sector 0000 does not exist
sector 0001 does not exist
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.493
RUNNING Program ...
Address: : 0x8000000
Start operation achieved successfully
4. I have corrected the file C:\Users\Admin\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.4.0\variants\STM32F4xx\F411C(C-E)(U-Y)\variant_BLACKPILL_F411CE.cpp
Code: Select all
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
RCC_OscInitStruct.PLL.PLLM = 8;
RCC_OscInitStruct.PLL.PLLN = 48;
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV4;
RCC_OscInitStruct.PLL.PLLQ = 8;