Search found 31 matches

by Engemil
Sat Sep 13, 2025 11:34 pm
Forum: STM32 Support
Topic: [SOLVED] STM32C071RB DMA callback not working? Topic is solved
Replies: 1
Views: 15

Re: STM32C071RB DMA callback not working? Topic is solved

SOLUTION!

I accidentally came over how to fix it, after trying to add more functions :lol:

Solution is after calling dmaStreamDisable(), you must always setup the mode again with dmaStreamSetMode().
by Engemil
Sat Sep 13, 2025 10:55 pm
Forum: STM32 Support
Topic: [SOLVED] STM32C071RB DMA callback not working? Topic is solved
Replies: 1
Views: 15

[SOLVED] STM32C071RB DMA callback not working? Topic is solved

Hi! I've been trying to setup a simple example on controlling a LED (WS2812) on the STM32C071RB chip with PWM + DMA. Most things work! However, it seems that the callback dma_callback is never called. Any tips on what to look for to make it work? Here is the main.c file for the example code: #includ...
by Engemil
Sat Aug 30, 2025 8:55 pm
Forum: ChibiOS/HAL
Topic: PWM on STM32C0xx and STM32F40xx not reaching potential period time
Replies: 3
Views: 1110

Re: PWM on STM32C0xx and STM32F40xx not reaching potential period time

Alright, I just double checked the numbers, and it seems to be alright. But, I just discovered something I didn't think would have affected the example code. If I commented out the following lines pwmEnablePeriodicNotification(APP_PWM_DRIVER); pwmEnableChannelNotification(APP_PWM_DRIVER, APP_PWM_LIN...
by Engemil
Fri Aug 29, 2025 11:01 pm
Forum: ChibiOS/HAL
Topic: PWM on STM32C0xx and STM32F40xx not reaching potential period time
Replies: 3
Views: 1110

PWM on STM32C0xx and STM32F40xx not reaching potential period time

Hi! I've been experimenting this week with the PWM driver for both a Nucleo-C071RB board and a Nucleo-F401RE board. I seem not to be able to reach periods of 1.25us (trying to build a simple ws2812 example). ChibiOS: stable_21.11.x branch Boards: NUCLEO-C071RB (48MHz clock) and NUCLEO-F401RE (84MHz ...
by Engemil
Tue Aug 26, 2025 3:42 pm
Forum: Development and Feedback
Topic: Possible reorganization regarding HAL
Replies: 1
Views: 2415

Re: Possible reorganization regarding HAL

Sounds like a good idea, it could increase development activity by open source developers and generate a bigger community for ChibiOS.
by Engemil
Sun Aug 24, 2025 3:06 pm
Forum: Small Change Requests
Topic: Added missing USB (and CRC) related code for STM32C0xx port
Replies: 10
Views: 4833

Re: Added missing USB (and CRC) related code for STM32C0xx port

Hmm, alright! I'm gonna have to get some progress working on my project. However, I will mark this as something I can investigate in September. To be noted, I compared quickly TIM2 for the STM32C0xx and STM32G0x1 reference manuals, and saw that in os/common/ext/ST/STM32C0xx/stm32c071xx.h, these thin...
by Engemil
Sun Aug 24, 2025 2:57 pm
Forum: Bug Reports
Topic: Missing (partly) USB and CRC code for STM32C0xx port Topic is solved
Replies: 1
Views: 2442

Missing (partly) USB and CRC code for STM32C0xx port Topic is solved

Hi! Posting this as noted from post https://forum.chibios.org/viewtopic.php?f=16&p=43440#p43440 Update of STM32C0xx port files, implementing missing code for USB (and CRC) related code, as well a change in the mcuconf.h file of the RT-STM32C071RB-NUCLEO64 demo (STM32_USB_USB1_LP_IRQ_PRIORITY). T...
by Engemil
Sat Aug 23, 2025 9:21 pm
Forum: STM32 Support
Topic: NUCLEO-C071RB not working with chThdSleepMilliseconds() Topic is solved
Replies: 12
Views: 7112

Re: NUCLEO-C071RB not working with chThdSleepMilliseconds() Topic is solved

Pointing this discussion to viewtopic.php?f=38&t=6587 (TLDR; Change system timer with config files)
by Engemil
Sat Aug 23, 2025 9:15 pm
Forum: STM32 Support
Topic: STM32C071RB missing STM32_USB1_HP_NUMBER and _LP_NUMBER ? Topic is solved
Replies: 7
Views: 5119

Re: STM32C071RB missing STM32_USB1_HP_NUMBER and _LP_NUMBER ? Topic is solved

I got it fixed by adding: os/hal/ports/STM32/STM32C0xx/stm32_isr.h /* * USB units. */ #define STM32_USB1_HP_HANDLER Vector60 #define STM32_USB1_LP_HANDLER Vector60 #define STM32_USB1_HP_NUMBER 8 #define STM32_USB1_LP_NUMBER 8 os/hal/ports/STM32/STM32C0xx/stm32_rcc.h /** * @name USB peripheral specif...

Go to advanced search