Search found 21 matches

by Dzarda
Thu Apr 13, 2023 11:26 am
Forum: STM32 Support
Topic: STM32L0 ADC circular mode
Replies: 2
Views: 1281

Re: STM32L0 ADC circular mode

I finally discovered the doc comment. I understand that the user is supposed to set the appropriate bit in group config. Please consider this solved :) ... NOTE: The bits @p ADC_CFGR1_CONT or @p ADC_CFGR1_DISCEN must be specified in continuous more or if the buffer depth is greater than one.*/
by Dzarda
Thu Apr 13, 2023 10:23 am
Forum: STM32 Support
Topic: STM32L0 ADC circular mode
Replies: 2
Views: 1281

STM32L0 ADC circular mode

Hello all, I think the ADC driver for L0 (ADCv1) could use a slight improvement for circular mode. This change causes the sample sequence to be automatically restarted at the end, therefore enabling the circular mode: @@ -297,7 +297,7 @@ void adc_lld_start_conversion(ADCDriver *adcp) { mode = adcp->...
by Dzarda
Fri Jul 02, 2021 4:01 pm
Forum: Bug Reports
Topic: STM32L0 TIM21/22 ST Topic is solved
Replies: 1
Views: 1485

STM32L0 TIM21/22 ST Topic is solved

Hi, the Debug Freeze configuration when TIM21 or TIM22 are used as ST seems invalid: https://github.com/ChibiOS/ChibiOS/blob/c03d38f78f072e59c9970bbb682c3bbf9ca5737f/os/hal/ports/STM32/LLD/SYSTICKv1/hal_st_lld.c#L388..L404 Manual says that these FZ bits are contained in the APB2 register, not APB1: ...
by Dzarda
Thu Jul 01, 2021 8:26 pm
Forum: Development and Feedback
Topic: [RFC] PlatformIO packaging
Replies: 5
Views: 3253

Re: [RFC] PlatformIO packaging

Wow you're quick, I only just managed to figure it out while you've already fixed it :D
by Dzarda
Thu Jul 01, 2021 8:16 pm
Forum: Development and Feedback
Topic: [RFC] PlatformIO packaging
Replies: 5
Views: 3253

Re: [RFC] PlatformIO packaging

In v21.6.1 I'm not able to get chrfcu.c to be compiled without `USE_SMART_BUILD = yes` - which I don't want as I want to include all sources regardless of configuration. Can't figure out what's the deal with that...
by Dzarda
Wed Jun 30, 2021 5:00 pm
Forum: Bug Reports
Topic: STM32G071 ADC calibration issue? Topic is solved
Replies: 19
Views: 20373

Re: STM32G071 ADC calibration issue? Topic is solved

Previous problem with ADCEN not turning on and CAL forever loop is not reproducible.

But had to switch clock from STM32_ADC_CKMODE_PCLK_DIV4 to STM32_ADC_CKMODE_ADCCLK in order to get samples.
by Dzarda
Mon Jun 28, 2021 3:14 pm
Forum: Bug Reports
Topic: STM32G071 ADC calibration issue? Topic is solved
Replies: 19
Views: 20373

Re: STM32G071 ADC calibration issue? Topic is solved

I feel like a fool, it ADCEN is now set and calibration succeeds... No idea what fixed it. Now trying to backtrack.
by Dzarda
Mon Jun 28, 2021 2:20 pm
Forum: Bug Reports
Topic: STM32G071 ADC calibration issue? Topic is solved
Replies: 19
Views: 20373

Re: STM32G071 ADC calibration issue? Topic is solved

Thank you for the effort Giovanni,
Using GCC 9.3.1

I'm having trouble comprehending the behaviour. ADC clock is enabled but the ENR stays at zero...

adc2.png
by Dzarda
Sun Jun 27, 2021 9:37 pm
Forum: Bug Reports
Topic: STM32G071 ADC calibration issue? Topic is solved
Replies: 19
Views: 20373

Re: STM32G071 ADC calibration issue? Topic is solved

Hi, I'm having probably the same issue on the L072 . Happens in v20.3.3 and v21.6.1. ADCv1/hal_adc_lld.c: ... /* Regulator enabled and stabilized before calibration.*/ adc_lld_vreg_on(ADC1); ADC1->CR |= ADC_CR_ADCAL; while (ADC1->CR & ADC_CR_ADCAL) ///// Forever young ; ADC1->CR = 0; rccDisableA...
by Dzarda
Tue Mar 09, 2021 1:03 pm
Forum: Development and Feedback
Topic: [RFC] PlatformIO packaging
Replies: 5
Views: 3253

Re: [RFC] PlatformIO packaging

Please keep in mind the experimental nature. In the current state it can help with lowering the bar in third party build integration. IMO even in this raw state it can help significantly. Things like --defsym=__main_stack_size__=0x200 must be handled manually now. Automation of .ld, FPU and -mcpu= f...

Go to advanced search