Search found 14 matches

by trimarco232
Thu Apr 04, 2024 2:41 pm
Forum: PR's bugs and enhancements
Topic: STM32G431CBU6 : TIMER17 : setting negative channel mashes positive one
Replies: 1
Views: 597

STM32G431CBU6 : TIMER17 : setting negative channel mashes positive one

Hi , here is the code : timer17.setMode(1, TIMER_OUTPUT_COMPARE_PWM1, PA7_ALT3); // AF1 = TIM17_CH1 timer17.setMode(1, TIMER_OUTPUT_COMPARE_PWM1, PB7_ALT2); // AF1 = TIM17_CH1N /// mashes PA7 = CH1 TIM17->CCR1 = 5; timer17.setPrescaleFactor(170 - 1); // G431 is 170MHz timer17.setPreloadEnable(true);...
by trimarco232
Sun Nov 05, 2023 10:32 pm
Forum: General discussion
Topic: new Blackpill STM32G431CBU6
Replies: 22
Views: 15656

Re: new Blackpill STM32G431CBU6

thanks !
maybe it works , but 10 time too slow ...
by trimarco232
Sat Nov 04, 2023 2:59 pm
Forum: General discussion
Topic: new Blackpill STM32G431CBU6
Replies: 22
Views: 15656

Re: new Blackpill STM32G431CBU6

dannyf wrote: Thu Nov 02, 2023 5:19 pm (...)
I don't have your chip but I do have a set of routines for G030. you can likely modify them for your chip, if not compiling directly.
oh yes , thanks , in addition G030F6P6 will probably be my next one
by trimarco232
Sat Nov 04, 2023 2:56 pm
Forum: General discussion
Topic: new Blackpill STM32G431CBU6
Replies: 22
Views: 15656

Re: new Blackpill STM32G431CBU6

ag123 wrote: Thu Nov 02, 2023 7:46 pm btw, I'm not sure if every one is seeing the same, but that currently STM32G431 'pill board'
https://www.aliexpress.com/item/1005005303669884.html
seemed to be priced at modestly low(er), as compared to some simpler boards or chips
(...)
probably because the chip itself is just $2 in China
by trimarco232
Thu Nov 02, 2023 4:12 pm
Forum: General discussion
Topic: new Blackpill STM32G431CBU6
Replies: 22
Views: 15656

Re: new Blackpill STM32G431CBU6

for the comparator , the solution is here : https://www.stm32duino.com/viewtopic.php?p=13269#p13269 for the HSE , I am trying umejopa's code , but it doesn't seam to work , I have : - defined : #define HSE_VALUE (8000000UL) /// for a 8Mhz 24Mhz cristal that the board have - put : extern "C"...
by trimarco232
Fri Oct 20, 2023 1:19 pm
Forum: Off topic
Topic: No one even mentioned the new Raspberry Pi Pico?
Replies: 79
Views: 1730918

Re: No one even mentioned the new Raspberry Pi Pico?

number of capture channels (with digital filter) : https://fr.aliexpress.com/item/1005005303669884.html?spm=a2g0o.productlist.main.53.66a65779egcFwZ&algo_pvid=bf21d72d-2a6a-44a6-8ee2-9c796eaa59ea&algo_exp_id=bf21d72d-2a6a-44a6-8ee2-9c796eaa59ea-26&pdp_npi=4%40dis%21EUR%214.76%213.14%21%2...
by trimarco232
Fri Oct 13, 2023 6:57 pm
Forum: PR's bugs and enhancements
Topic: STM32G431CBU6 : comparator setting library
Replies: 4
Views: 4516

Re: STM32G431CBU6 : comparator setting library

ok , thanks , working code : #include <Arduino.h> #include "hal_conf_extra.h" // adhoc creation COMP_HandleTypeDef hcomp1; void setup() { Serial.begin(115200); hcomp1.Instance = COMP1; // comes from cube IDE hcomp1.Init.InputPlus = COMP_INPUT_PLUS_IO1; hcomp1.Init.InputMinus = COMP_INPUT_M...
by trimarco232
Wed Oct 11, 2023 8:36 pm
Forum: PR's bugs and enhancements
Topic: STM32G431CBU6 : comparator setting library
Replies: 4
Views: 4516

Re: STM32G431CBU6 : comparator setting library

#include <Arduino.h> #define HAL_COMP_MODULE_ENABLED COMP_HandleTypeDef hcomp1; void setup() { // comes from cube IDE hcomp1.Instance = COMP1; // comes from cube IDE hcomp1.Init.InputPlus = COMP_INPUT_PLUS_IO1; hcomp1.Init.InputMinus = COMP_INPUT_MINUS_1_2VREFINT; hcomp1.Init.OutputPol = COMP_OUTPU...
by trimarco232
Thu Oct 05, 2023 8:03 am
Forum: General discussion
Topic: new Blackpill STM32G431CBU6
Replies: 22
Views: 15656

Re: new Blackpill STM32G431CBU6

thanks ag123 my problem isn't the RM or the code to generate , but the fact that the libraries I use then , are not allowed / known by stm32duino so , where can I find the "include files for the predefined registers" , and how can I import and declare them ? (it is a general problem of usi...
by trimarco232
Wed Oct 04, 2023 8:18 pm
Forum: General discussion
Topic: new Blackpill STM32G431CBU6
Replies: 22
Views: 15656

Re: new Blackpill STM32G431CBU6

oh there is something else I'd think I'd want to explore on this chip/board is the comparators (...) I have just a question on how to program the comparator : nor the HAL or the LL or the LL structure worked for me on stm32duino , and I don't want to do it bare metal , so , ag123 , can you please s...

Go to advanced search