Search found 60 matches

by ABOSTM
Fri Feb 11, 2022 9:41 am
Forum: General discussion
Topic: How to dynamically change duty cycle with HardwareTimer library?
Replies: 24
Views: 8044

Re: How to dynamically change duty cycle with HardwareTimer library?

When using the example code as is, it works to send a static duty cycle, but I do not know how to adjust the duty cycle while the code is running. Say I had a potentiometer and wanted to change the cycle from 25% to 50%. Is this possible? As it works with the example code (I mean PWM is output on t...
by ABOSTM
Thu Feb 10, 2022 1:42 pm
Forum: General discussion
Topic: STM32L082 dual bank - example code
Replies: 7
Views: 9731

Re: STM32L082 dual bank - example code

Do I understand correct that when the first value of bank2 is an SRAM address it is considered valid? Right. In Cortex M architecture, a binary always starts by Stack Pointer address, which should be in RAM. Thus 1st U32 value of your bank2 should correspond to Stack Pointer, and is considered vali...
by ABOSTM
Thu Feb 10, 2022 9:33 am
Forum: General discussion
Topic: STM32L082 dual bank - example code
Replies: 7
Views: 9731

Re: STM32L082 dual bank - example code

Hi @Beuzekom, Explanations of Bank2 mechanism is detailed in Reference Manual RM0376 paragraphe § 3.3.2 Dual-bank boot capability So you need to take car of BOOT0 pin. There is also an application note corresponding to your needs: https://www.st.com/resource/en/application_note/an4767-onthefly-firmw...
by ABOSTM
Mon Jan 17, 2022 9:41 am
Forum: USB to Serial adaptors
Topic: Serial1 seem to work but no output
Replies: 2
Views: 4881

Re: Serial1 seem to work but no output

Hello @capotti, I tested on my nucleo_G071 which is close to STM32G030K6T6 (no differences regarding UASRT) And your sketch is well working, output is displayed on Arduino serial monitor (through an external st-link connected to PA9/PA10). Just to be sure, can you confirm the following: * your USB t...
by ABOSTM
Thu Jan 13, 2022 1:48 pm
Forum: General discussion
Topic: TIM2 configuration issues - frozen at 0
Replies: 1
Views: 1312

Re: TIM2 configuration issues - frozen at 0

Hi @mkals, Yes, it is normal: CubeMX generates static initialisation code, but you miss the dinamic part of code to start the timer. Something like: HAL_TIM_Base_Start(&htim2); That being said, there is an alternative of using STM32 HAL to get a timer running: Have a look at New HardwareTimer st...
by ABOSTM
Wed Dec 08, 2021 8:37 am
Forum: General discussion
Topic: error: 'stimer_t' does not name a type; did you mean 'timer_t'?
Replies: 4
Views: 2772

Re: error: 'stimer_t' does not name a type; did you mean 'timer_t'?

Hi divner , Yes, things have changed around timer since version 1.8.0 We now have a more complete HardwareTimer driver available. Have a look to wiki: https://github.com/stm32duino/wiki/wiki/HardwareTimer-library and especially the example section https://github.com/stm32duino/wiki/wiki/HardwareTime...
by ABOSTM
Mon Aug 09, 2021 7:42 am
Forum: General discussion
Topic: cant get blink to work with variant
Replies: 3
Views: 2057

Re: cant get blink to work with variant

Hi @RCP1990, As you defined NUM_DIGITAL_PINS in variant.h, I can guess that: * either your variant.h is not included at all (maybe another variant.h file is included, not yours) * or you didn't defined ARDUINO_CANFILTER_STM32 (which prevent definition ofNUM_DIGITAL_PINS ) this is the name of board i...
by ABOSTM
Tue Aug 03, 2021 2:54 pm
Forum: General discussion
Topic: how to PWM Frequency stm32duino and resolution
Replies: 19
Views: 30755

Re: how to PWM Frequency stm32duino and resolution

@geekfun ,
thanks for your feedback, and for sharing your code/schematics.
For information there is a dedicated section to share code: Code snippets
viewforum.php?f=41
by ABOSTM
Mon Aug 02, 2021 9:33 am
Forum: General discussion
Topic: How to use SPI2
Replies: 17
Views: 32689

Re: How to use SPI2

Hello @ridvanmelihh, Welcome to his forum. We miss a bit of information to be able to help you: * Which board are you using? which MCU? * Which core are you using? Arduino_Core_STM32 : https://github.com/stm32duino/Arduino_Core_STM32 or Roger's core : https://github.com/rogerclarkmelbourne/Arduino_S...

Go to advanced search