Search found 19 matches

by trimarco232
Thu May 16, 2024 10:24 pm
Forum: PR's bugs and enhancements
Topic: STM32G431CBU6 (and others) : how to make LPTIM1 to work ?
Replies: 0
Views: 69

STM32G431CBU6 (and others) : how to make LPTIM1 to work ?

this code works : HardwareSerial Serial3(PB11, PB10); /// USART3 works uint64_t millis_duration = 100, millis_begin; void setup() { Serial.begin(115200); // USB Serial3.begin(19200); } void loop() { if (millis() - millis_begin >= millis_duration) { // debug uart millis_begin += millis_duration; Seri...
by trimarco232
Thu May 16, 2024 9:36 pm
Forum: General discussion
Topic: STM32C011 (WeAct) - first steps
Replies: 13
Views: 1117

Re: STM32C011 (WeAct) - first steps

- you rather use a terminal emulator in order to see your outputs , so you do no more need to plug/unplug
- DAPLink is for MBed , and will work for other IDEs , but for Arduino , I really fear it won't work , so far
by trimarco232
Wed May 15, 2024 8:16 pm
Forum: General discussion
Topic: STM32C011 (WeAct) - first steps
Replies: 13
Views: 1117

Re: STM32C011 (WeAct) - first steps

If I send information by Serial.print(), I can't see it over STLink-connection? I still need a USB to Serial-adapter? STLink can't handle serial (UART like) signals , so : - yes , use a USB to Serial-adapter - or a DAPLink (if it works with arduino ?) - or , if your informations are for debug , use...
by trimarco232
Sat May 11, 2024 2:41 pm
Forum: General discussion
Topic: STM32C011 (WeAct) - first steps
Replies: 13
Views: 1117

Re: STM32C011 (WeAct) - first step

Hi Jürgen , imho. : - (STM32G030F6P6 had been a better choice) - you rather continue to use your programmer for devices without USB , so you don't worry about BOOT0 - PA9 & PA10 can't be used out of the box for bootloader , because they are not connected to the pins by default ; may be you can u...
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: 1979

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: 17260

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: 17260

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: 17260

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: 17260

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"...

Go to advanced search