Search found 21 matches

by Fabaum
Wed Apr 01, 2020 7:05 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 5
Views: 112

Re: Transfer of values ​​to ArduinoUNO original ports.

Hi, stas2z, if your output ports are not on the same port sure you need to write it one by one but much better ti use array, loop and simple bitmath to not write A4 page of almost same copycat parts uint32_t pins[8] = {PA3, PA2, PA10, PB3, PB5, PB4, PB10, PA8}; void setPinsMode(void) { for (uint8_t ...
by Fabaum
Wed Apr 01, 2020 1:16 pm
Forum: STM32L4 based boards
Topic: Timer starts and then freezes.
Replies: 5
Views: 53

Re: Timer starts and then freezes.

Hi ABOSTM, I am viewing the potentiometer values on an LCD display. Even with the potentiometer at its minimum value, the board's analog input reads 10 bytes, certainly due to some residual resistance. So, stating 10 as the minimum value, I establish that this is my zero point. The fact that I am re...
by Fabaum
Wed Apr 01, 2020 12:09 am
Forum: STM32L4 based boards
Topic: Timer starts and then freezes.
Replies: 5
Views: 53

Timer starts and then freezes.

Hello friends, I am modifying an example program for testing the TIM2 general purpose timer of the STM32L476RG board. Just to check operation, LED1 is activated periodically by the timer. At the same time, I use an oscilloscope connected to pin PA5, which corresponds to LED1. With the fixed timing v...
by Fabaum
Mon Mar 30, 2020 7:42 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 5
Views: 112

Re: Transfer of values ​​to ArduinoUNO original ports.

Excelent, stas2z, thank you again!
by Fabaum
Mon Mar 30, 2020 4:42 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 5
Views: 112

Re: Transfer of values ​​to ArduinoUNO original ports.

Hi stas2z, Thanks for the answer. first i need to dissapoint you saying that PORTx are atmega only, it wil not work with STM32 You're absolutely right! In fact, due to the silence on this subject in the last days, I realized that I was wrong, relating things that are different (declaration of ports ...
by Fabaum
Sat Mar 28, 2020 3:10 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 5
Views: 112

Transfer of values ​​to ArduinoUNO original ports.

Hello friends, I would like to use a shield that I developed for ArduinoUNO on the STM32L476RG board. In the original program, I transferred integer values ​​to the ports instead of triggering them pin by pin. As for the ArduinoUNO PORTB, only the first six pins are available (corresponding to digit...
by Fabaum
Fri Mar 27, 2020 1:52 pm
Forum: STM32L4 based boards
Topic: Problem with Hardware Timer example on STM32L476RG.
Replies: 3
Views: 56

Re: Problem with Hardware Timer example on STM32L476RG.

Hello friends, Thanks for the answers. I'm using the STM32L476RG board. The sample file I used initially is here: https://github.com/stm32duino/STM32Examples/blob/master/examples/Peripherals/HardwareTimer/Timebase_callback/Timebase_callback.ino Then, I found the site https://www.arduinolibraries.inf...
by Fabaum
Thu Mar 26, 2020 6:27 pm
Forum: STM32L4 based boards
Topic: Problem with Hardware Timer example on STM32L476RG.
Replies: 3
Views: 56

Problem with Hardware Timer example on STM32L476RG.

Hello friends, I am trying unsuccessfully to test the Timebase_callback.ino example found at https://github.com/stm32duino/wiki/wiki/HardwareTimer-library. I just changed output D2 to PA5, which is Led1 on the board. Unfortunately it didn't work, the led just doesn't flash ... I found the topic http...
by Fabaum
Tue Mar 24, 2020 6:25 pm
Forum: STM32L4 based boards
Topic: LCD i2c for STM32 with ArduinoIDE.
Replies: 8
Views: 126

Re: LCD i2c for STM32 with ArduinoIDE.

Thanks for the clarification !!!
by Fabaum
Tue Mar 24, 2020 3:58 pm
Forum: STM32L4 based boards
Topic: LCD i2c for STM32 with ArduinoIDE.
Replies: 8
Views: 126

Re: LCD i2c for STM32 with ArduinoIDE.

The "hello world" example from https://github.com/johnrickman/LiquidCrystal_I2C compiles without error for the STM32L476RG board. Sketch uses 14116 bytes (1%) of program storage space. Maximum is 1048576 bytes. Global variables use 824 bytes (0%) of dynamic memory, leaving 97480 bytes for local var...

Go to advanced search