Search found 1951 matches

by fpiSTM
Tue Jun 10, 2025 8:59 am
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: mini STM32F103C8T6 CH340 Serial pins
Replies: 9
Views: 1702

Re: mini STM32F103C8T6 CH340 Serial pins

If you select the generic target, the default Serial pins are not PA9/PA10 but PA2/PA3:
https://github.com/stm32duino/Arduino_Core_STM32/blob/5a40f2d257379c4a6e1184b564c4f7d4fc43e7c6/variants/STM32F1xx/F103C8T_F103CB(T-U)/variant_generic.h#L140-L145

You can change it at sketch level using the setRx ...
by fpiSTM
Thu Jun 05, 2025 2:59 pm
Forum: General discussion
Topic: Warning: The core is locked up U575
Replies: 5
Views: 1304

Re: Warning: The core is locked up U575


FIXED IT!!!
Ok managed to get building and working on my IDE, the main issue is step 5 of the make a varient...
/* Memories definition */
MEMORY
{
- RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 144K
- FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K
+ RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD ...
by fpiSTM
Thu Jun 05, 2025 2:46 pm
Forum: General discussion
Topic: USART3/Serial3 outputting garbage... U575
Replies: 6
Views: 1283

Re: USART3/Serial3 outputting garbage... U575

If you used the generic and not a dedicated variant then you can use the build_opt.h or the hal_conf_extra.h

https://github.com/stm32duino/Arduino_Core_STM32/wiki/Customize-build-options-using-build_opt.h
https://github.com/stm32duino/Arduino_Core_STM32/wiki/HAL-configuration#customize-hal-or ...
by fpiSTM
Thu Jun 05, 2025 2:20 pm
Forum: General discussion
Topic: USART3/Serial3 outputting garbage... U575
Replies: 6
Views: 1283

Re: USART3/Serial3 outputting garbage... U575

Simply redefine it in your variant*.h file
Example for NUCLEO_F722ZE:
https://github.com/stm32duino/Arduino_C ... 2ZE.h#L224
by fpiSTM
Thu Jun 05, 2025 1:39 pm
Forum: General discussion
Topic: USART3/Serial3 outputting garbage... U575
Replies: 6
Views: 1283

Re: USART3/Serial3 outputting garbage... U575


Hi again new issue so new thread. we have USART3 on PC10/PC11 for debug output. But for some reason its outputting garbage.

I created a hello world in cubeIDE and it works fine there.
I am using the same clock config as cubeIDE so I know its not some strange clock sync issue.


Is it using HSE ...
by fpiSTM
Thu May 29, 2025 7:33 am
Forum: Projects
Topic: USB↔BLUE.PILL→DMA→SPI→WS2812B
Replies: 8
Views: 2213

Re: USB↔BLUE.PILL→DMA→SPI→WS2812B

Great. Could you share your code?
Here an example how to convert a cube example:
viewtopic.php?t=110
by fpiSTM
Fri May 02, 2025 1:45 pm
Forum: General discussion
Topic: STM32F107
Replies: 7
Views: 2338

Re: STM32F107

By default HSE_VALUE is 8MHz.
https://github.com/stm32duino/Arduino_C ... ault.h#L86

You have to define it to 25MHz.

About pin issue you probably made a mistake in your changes.
by fpiSTM
Thu May 01, 2025 2:57 pm
Forum: General discussion
Topic: STM32F107
Replies: 7
Views: 2338

Re: STM32F107

And use pin number PE14, PD13 and PD3 (no _) instead of pin name PE_14, PD_13 and PD_3.
by fpiSTM
Tue Apr 29, 2025 8:58 pm
Forum: General discussion
Topic: PWM on PB5 pin
Replies: 3
Views: 1244

Re: PWM on PB5 pin

PB5 has a timer:
https://github.com/stm32duino/Arduino_Core_STM32/blob/9154e6e0d3b9cbe8692692380517616fda6c5320/variants/STM32L0xx/L051T(6-8)Y/PeripheralPins.c#L89
But PB14 and PB2 do not have one.
So doing analogWrite(PB2, 255) is the same than doing digitalWrite(PB2, HIGH).
Try digitalWrite(PB5 ...
by fpiSTM
Wed Apr 09, 2025 2:12 pm
Forum: General discussion
Topic: STM32F103CT change the length of RXBUFFER of Seiral1
Replies: 2
Views: 1061

Re: STM32F103CT change the length of RXBUFFER of Seiral1

If you change in the sketch it is not in the scope of the Serial header to redefine it. Sketch is a cpp file.
Use the build_opt.h way as described here:
https://github.com/stm32duino/Arduino_C ... le-content

Go to advanced search