-
Notifications
You must be signed in to change notification settings - Fork 1k
STM32F411CE doesn't seem to work #876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @TzOk83
|
I have a WeAct 1.3 411CE and I can upload in Arduino IDE and PlatformIO via DFU (STM32Cube prog) and Serial(USB to TTL dongle). PlatformIO: edited 'BlackPill 401CC (ST)' to a 'BlackPill 411CE (ST)'. As I said DFU and Serial are working, then there is a working Serial Port available (STM Serial) while uploaded sketch is running. I updated the core and the new 'Generic F411CC' showed up in board manager for a short while but now it's gone, so I can't select it to see if it's a problem vs the 'Blackpill F401CC'. All good with this board untill now, maybe a STM32DUINO Bootloader would be nice so BOOT0 isn't required at every upload. I also soldered a Winbond 25q32jv and the SMD cap but never got to test that SPI memory. Edited: More edits: Last edit, I promise: upload_protocol = dfu build_flags = |
@flatpedals |
By looking at the pictures of the F411C "Black Pill" board on this Aliexpress listing It appears to me that the external crystal is running at 25 MHz. The generic pinouts expect an 8 MHz crystal/clock. You can try to change the value of this line to 25 (actual input clock frequency in MHz) and see if it makes a difference. Oh, you'll have to do a manual install since 1.9.0 isn't out yet. |
@MCUdude So it is misaligned when HSE is not bypass. |
But it would have worked if he used an extern 8 MHz crystal instead, and not touching the code? |
Yes but in this case this is not a bypass, I guess. |
The board uses a crystal oscillator (that needs to be driven), not a clock (that drives itself). I will assume that since the MCU detects a crystal it will not enable bypass mode, and thus nothing will work since the expected clock frequency is 8 MHz and not 25. What I do want to know is that if there's something that can be done to the pinout's clock config that somehow can detect what frequency is being applied, and adjust its setting based on this. Can this be done? Can the clock config functions on the generic pinouts be further improved to automatically support a wider range of external clocks/crystals without user interaction? |
There is a dicussion about clock detection on 401: https://www.stm32duino.com/viewtopic.php?f=14&t=9&start=70 |
Haven't tried uploading yet, but I believe this should work:
|
In fact you want a "Clock framework". 😉 As I explain in an other issue, several variants could now point to the generic one with some customization under board switch. |
With the attached BlackPill 411CE profile it uploads ok, and BLINK example works, but I can't make USB serial to work. |
@TzOk83 |
Have no idea how to check this. The crystal is 25 MHz, and MCU in this version is supposed to run at 100 MHz, yet I took most of the files from PILL_401XX which runs at 84 MHz. |
The simpliest way is to use cube MX to generate a proper config. |
If someone is knows how to use, then probably it is... so if you have Cube MX and can use it, could you be so nice and do this? |
@TzOk83 |
I have checked it. When it is checked I have a problem with entering BOOT0 bootloader (CDC), usually I get USB device fault (but in normal mode virtual serial port is visible in the system). Previously I was using old "BluePill", so more or less I know how to set the options in Arduino. Could you upload here your modified 411CE profile / boards.ini? https://github.com/jvitkauskas/weact/tree/master/STM32F411CEU6%20black%20board |
In Arduino IDE I didn't edit anything, I am just using the 'Black pill 401CE' profile. See my first comment here, I posted the edited JSON and .ini only for PlatformIO. |
With this core, no specific driver are needed as we use the STMicroelectronics PID. |
I have roughly checked it and it seems to work now. %LOCALAPPDATA%\Arduino15\packages\STM32\hardware\stm32\1.8.0: boards.txt:
I have done some further testing and Serial over USB works fine, I2C also, and I can define and use 100 kB array of data. |
I'm wrong, the default is 25MHz as @MCUdude note in the Arduino_Core_STM32/system/STM32F4xx/system_stm32f4xx.c Lines 67 to 69 in 4e1c225
|
The clock config issue from the Generic F411Cx has been solved in #905. |
Hello. Do you know when will have available a new version from this lib? I need to use Generic F411CE. I've tried all tips here, but the upload to this board is not working yet. |
I'm currently doing a full validation. |
Serial steel doesn't work. If I try to open Arduino Monitor and it show message that 'Board COM3 is unavailable'. However, blink example works fine and my custom projects works well. But Encoder with custom library work ugly, something wrong, perhaps with Clock frequency, but I can't even debug this with Serial monitor, because it can't open properly. |
Hi @Onefabis |
Hi, @fpistm, what did you mean about the core? Just got WeAct STM32F411CEU6 board. Didn't change anything, so I assume that it use 25MHz as a default clock speed. Here are settings in Arduino IDE (Stm32 Boards is v1.9.0) |
Well, for this boards clock is 25MHz. For this kind of support please use the forum: https://www.stm32duino.com |
|
This worked for me (Serial trough USB port and blinking LED). It looks like only PIO_FRAMEWORK_ARDUINO_ENABLE_CDC and USBCON are needed. Using weAct 3.0 Black pill STM32F411CE with this PIO config: [env:genericSTM32F411CE] |
Hi Guys,
simply use(d) initial code from Examples / SD / readwrite and added baudrate 9600 in brackets and I also installed |
Hi, I just received a brand new BlackPill STM32F411CUE6 and I'm having a related problem. I trying to upload the blink example with Arduino IDE. I'm uploading through USB and using DFU mode. I'm able to upload only in case I set to I also have a BlackPill STM32F401C and it works fine. |
Hi @miguelwon, Upload method and USB support menu has no link.
The error |
Thanks. I know the steps. I use them when uploading to the BlackPill STM32F401C, as well as to the BlackPill STM32F411C when |
You should check the option bytes setting. Maybe the boot0 pin is not properly configured. |
I've tried to upload BLINK example (I've changed LED_BUILTIN to PC13) using "Generic F411CE" Board profile to the "Black Pill" WeAct V2.0 board (STM32F411CEU6), and it doesn't seem to work. I've also tried turning the USB support as CDC Generic Serial, but there was no serial port after uploading this firmware. I've tried uploading either by SWD (ST-Link v2) or by USB-DFU. Both times the upload was successful, but program didn't seem to start (of course I have tried to reset and power cycle the MPU).
The text was updated successfully, but these errors were encountered: