Search found 38 matches

by razvitm
Tue Sep 15, 2020 10:54 am
Forum: STM32L0 based boards
Topic: Thunderpack STM32L072xx
Replies: 15
Views: 18010

Re: Thunderpack STM32L072xx

After HardwareSerial(USART2, HALF_DUPLEX_ENABLED);
The TX pin is pulled HIGH (measured with oscilloscope) but it just stays HIGH, although in loop there is a println.
No data is coming out through the port.
by razvitm
Tue Sep 15, 2020 8:59 am
Forum: STM32L0 based boards
Topic: Thunderpack STM32L072xx
Replies: 15
Views: 18010

Re: Thunderpack STM32L072xx

So I went ahead and soldered a STM32L072 on a breakout PCB. I can run blinky on any digital pin I choose. I cannot use all the serial ports. Serial.begin works and I can Serial.println on the serial port I use to program the uC, but all the other 4 ports don't work, even after HardwareSerial Serial2...
by razvitm
Wed Jun 17, 2020 11:10 am
Forum: STM32L0 based boards
Topic: Thunderpack STM32L072xx
Replies: 15
Views: 18010

Thunderpack STM32L072xx

Hello everyone, I saw that there is a small development board that uses the MCU mentioned in the title, it can be found at the following link: https://hackaday.io/project/161054-thunder-pack Now on the webpage it says that it is supported by the STM32duino core. Could that mean that I could use a ST...
by razvitm
Thu May 21, 2020 12:29 pm
Forum: General discussion
Topic: Hardware flow control for USART2 port on STM32F103RC
Replies: 5
Views: 5426

Re: Hardware flow control for USART2 port on STM32F103RC

Currently not. I guess the best way would be to add or extend API to be enable the hw flow control Well, can't someone modify the Serial.begin() function of the official STM32 arduino core to accept more input parameters that set HW flow control on or off? And also make it backwards compatible by a...
by razvitm
Thu May 21, 2020 12:06 pm
Forum: General discussion
Topic: Hardware flow control for USART2 port on STM32F103RC
Replies: 5
Views: 5426

Re: Hardware flow control for USART2 port on STM32F103RC

Is there a more elegant way of enabling hardware flow control than editing a file in the core?
Like the way we can modify clock speed by copying some lines from what cubemx generates into the arduino sketch?
by razvitm
Thu May 21, 2020 11:54 am
Forum: General discussion
Topic: Hardware flow control for USART2 port on STM32F103RC
Replies: 5
Views: 5426

Re: Hardware flow control for USART2 port on STM32F103RC

I just edited the file: c:\Users\Razvan\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.8.0\libraries\SrcWrapper\src\stm32\uart.c i modified line 308 as: huart->Init.HwFlowCtl = UART_HWCONTROL_RTS_CTS; Made a simple arduino sketch with some text printing on Serial2 in loop and hardware flow ...
by razvitm
Thu May 21, 2020 10:45 am
Forum: General discussion
Topic: Hardware flow control for USART2 port on STM32F103RC
Replies: 5
Views: 5426

Hardware flow control for USART2 port on STM32F103RC

How can I enable hardware flow control RTS CTS in Arduino using the official ST core? If I configure STM32CubeMx for hardware flow control, in the generated files \src\stm32f1xx_hal_msp.c file, I see that it initializes the RTS CTS pins as output and input together with the RX and TX pins, I'll copy...
by razvitm
Wed May 06, 2020 2:09 pm
Forum: Ideas & suggestions
Topic: Options for a lot of cpu clock frequencies.
Replies: 10
Views: 15106

Re: Options for a lot of cpu clock frequencies.

Works like a charm. Thank you a thousand!
by razvitm
Mon May 04, 2020 9:21 am
Forum: Ideas & suggestions
Topic: Options for a lot of cpu clock frequencies.
Replies: 10
Views: 15106

Re: Options for a lot of cpu clock frequencies.

So I managed to run the MCU at 4MHz by looking into the cubemx generated files and copy-pasting the prescaler values in the stm32duino file: c:\Users\Razvan\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.8.0\variants\PILL_F103XX\variant.cpp I did this beause I couldn't figure out how to inc...
by razvitm
Sun May 03, 2020 12:31 pm
Forum: General discussion
Topic: Latest version 1.8.0 not working with example files.
Replies: 8
Views: 6339

Re: Latest version not working with example files.

stas2z wrote: Sun May 03, 2020 12:11 pm https://github.com/stm32duino/STM32Exam ... llback.ino
For 1.8.0 core
This example compiles OK on the 1.8.0 core.
Thank you!

Go to advanced search