Search found 38 matches

by razvitm
Wed Mar 16, 2022 2:09 pm
Forum: General discussion
Topic: Help me port a STM32CubeIDE project to Arduino with STM32duino core
Replies: 5
Views: 1766

Re: Help me port a STM32CubeIDE project to Arduino with STM32duino core

Yes, the core's hardware_timer doesn't support encoder mode.
by razvitm
Wed Mar 16, 2022 12:25 pm
Forum: General discussion
Topic: [Solved] Set alternate function for quadrature encoder pins.
Replies: 9
Views: 7676

Re: Set alternate function.

Hi, Yes, that's what I needed :) I combined your two answers and some research into arduino->stm pins into a function to switch a pin to an Alternate function. It works as a charm now, thanks again. Joep //----------------------------------------------------------------------------- // pinModeAF - ...
by razvitm
Wed Mar 16, 2022 11:50 am
Forum: Code snippets
Topic: HardwareTimer + direct register access = 10MHz frequencymeter
Replies: 2
Views: 7956

Re: HardwareTimer + direct register access = 10MHz frequencymeter

Does not compile on latest core: src\main.cpp: In function 'void pinModeAF(int, uint32_t)': src\main.cpp:48:7: error: 'LL_GPIO_SetAFPin_0_7' was not declared in this scope; did you mean 'LL_GPIO_SetPinPull'? 48 | LL_GPIO_SetAFPin_0_7( get_GPIO_Port(STM_PORT(pn)), STM_LL_GPIO_PIN(pn), Alternate); | ^...
by razvitm
Wed Mar 16, 2022 11:09 am
Forum: General discussion
Topic: Help me port a STM32CubeIDE project to Arduino with STM32duino core
Replies: 5
Views: 1766

Re: Help me port a STM32CubeIDE project to Arduino with STM32duino core

From what I understand by reading the source code from this project, it declares functions to use the serial port and IO pins and Hardware Timer, but STM32duino already has these functions in the core. Basically I need to set up one of the hardware timers in encoder mode and serial print the "d...
by razvitm
Mon Mar 14, 2022 12:27 pm
Forum: General discussion
Topic: Help me port a STM32CubeIDE project to Arduino with STM32duino core
Replies: 5
Views: 1766

Help me port a STM32CubeIDE project to Arduino with STM32duino core

Hi, I am still stuck with Arduino, haven't learned other IDEs, and the libraries I use are for Arduino, and I found a project that I want to run on a Black Pill, STM32F103C8T6 board, that I will modify to work with other hardware modules. I installed STM32CubeIDE and run the project, it compiles wit...
by razvitm
Thu Oct 08, 2020 2:19 pm
Forum: STM32L0 based boards
Topic: Thunderpack STM32L072xx
Replies: 15
Views: 17449

Re: Thunderpack STM32L072xx

But if I modify the PeripheralPins.C to include all the ports, possibly copy this from the discovery board, don't I have to set peripheral clocks for the other serial ports in order for them to work?
by razvitm
Thu Oct 08, 2020 12:06 pm
Forum: STM32L0 based boards
Topic: Thunderpack STM32L072xx
Replies: 15
Views: 17449

Re: Thunderpack STM32L072xx

Why can I use all the serial ports with the Discovery L072 board but I can't get all the 5 serial ports to work on the PX-HER0 or the THUNDERPACK boards? What am I missing? Are they not enabled in some files in their respective Variants folder? The reason I'm asking is because all 5 serial ports and...
by razvitm
Tue Sep 22, 2020 12:07 pm
Forum: STM32L0 based boards
Topic: Thunderpack STM32L072xx
Replies: 15
Views: 17449

Re: Thunderpack STM32L072xx

I'm happy to report that all 5 serial ports are working in Arduino on a STM32L072 on a breakout PCB without external oscillator or quarts using the Discovery LRWAN1 board with a small modification of one of the core's file. The question is if it can be done from the sketch rather than modifying one ...
by razvitm
Tue Sep 22, 2020 10:36 am
Forum: STM32L0 based boards
Topic: Thunderpack STM32L072xx
Replies: 15
Views: 17449

Re: Thunderpack STM32L072xx

I just found out that the Discovery L072CZ LRWAN1 uses the same MCU, and I tried selecting this board in Arduino and now I have 3 serial ports working. USART1 USART4 and LPUART1.
by razvitm
Tue Sep 22, 2020 9:29 am
Forum: STM32L0 based boards
Topic: Thunderpack STM32L072xx
Replies: 15
Views: 17449

Re: Thunderpack STM32L072xx

Update: With the core untouched, using the PX-HER0 board selected in Arduino, I got Serial1 and Serial4 to work, I had to instantiate Serial4, I can print on both Serial1 and Serial4 but if I enable Serial2, it doesn't work, and in the PX-HER0 board user manual there is a Serial2 on PA2 and PA3 but ...

Go to advanced search