Search found 33 matches

by Alex
Tue Apr 27, 2021 6:25 am
Forum: Bug Reports
Topic: STM32L052 ADC driver prescaler always > 1 Topic is solved
Replies: 5
Views: 3277

Re: STM32L052 ADC driver prescaler always > 1 Topic is solved

if STM32_ADC_PRESCALER_VALUE < 2
#error "Invalid value assigned to STM32_ADC_PRESCALER_VALUE"
by Alex
Tue Apr 27, 2021 5:04 am
Forum: Bug Reports
Topic: STM32L052 ADC driver prescaler always > 1 Topic is solved
Replies: 5
Views: 3277

STM32L052 ADC driver prescaler always > 1 Topic is solved

STM32L052 ChibiOS 20.3.3 The ADC driver does not allow setting the prescaler value to 1 (ADC_CCR_PRESC = 0). This is correct?
by Alex
Wed Mar 24, 2021 10:16 am
Forum: Bug Reports
Topic: STM32L052 DAC Driver Topic is solved
Replies: 2
Views: 2793

STM32L052 DAC Driver Topic is solved

STM32L052xx
STM32_HAS_DAC1_CH1 FALSE

This is correct?
by Alex
Thu Mar 26, 2020 7:58 am
Forum: STM32 Support
Topic: RT-STM32F401RE-NUCLEO64 demo project build errors
Replies: 3
Views: 1948

Re: RT-STM32F401RE-NUCLEO64 demo project build errors

Hi, There is no support for those timers in the F4 HAL yet. The platforms with support for all timers are so far: L0, L4, L4+, F7, H7, G0, G4. Giovanni Thank you for your help. But there is another problem in the same demo project. Calling the chHeapAlloc(0, int n) function generates a HardFault ex...
by Alex
Wed Mar 25, 2020 6:40 am
Forum: STM32 Support
Topic: RT-STM32F401RE-NUCLEO64 demo project build errors
Replies: 3
Views: 1948

RT-STM32F401RE-NUCLEO64 demo project build errors

Tried to use GPTD9 and GPTD11 in the RT-STM32F401RE-NUCLEO64 demo project from ChibiOs 20.3.0. Building the project gives errors "TIM9 ISR not defined by platform" and "TIM11 ISR not defined by platform"
by Alex
Wed Sep 20, 2017 9:24 am
Forum: ChibiOS/HAL
Topic: gptcallback_t as non-static method of class
Replies: 0
Views: 1729

gptcallback_t as non-static method of class

How to use spicallback_t and gptcallback_t as non-static method of class? private: gptcnt_t interval; void gpt_cb(GPTDriver *gptp); void spi_cb(SPIDriver *spip); SPIConfig spi_cfg = {spi_cb, 0, 4, SPI_CR1_BR_0 | SPI_CR1_BR_1 }; GPTConfig gpt_cfg = {1000000, gpt_cb, 0, 0}; in my case compiler say: TB...
by Alex
Tue Mar 15, 2016 12:52 pm
Forum: ChibiOS/NIL
Topic: using in main() chSemResetI and so on Topic is solved
Replies: 2
Views: 23213

using in main() chSemResetI and so on Topic is solved

Can i use functions chSemResetI(), chSemGetCounterI() and so on after chSysInit() ?
by Alex
Fri Mar 11, 2016 10:57 am
Forum: ChibiOS/HAL
Topic: ADC conversion + Analog Watch Dog
Replies: 2
Views: 2321

Re: ADC conversion + Analog Watch Dog

It is strange that you don't get the callback, are you sure about this? I will repeat my approaches too. some corrections: if field <adc_callback> == NULL getting <adcerr_wdg> is regular, but else getting <adcerr_wdg> is very rarely; i use this call conversion now adcStartConversionI(&ADCD1, &a...
by Alex
Fri Mar 11, 2016 6:16 am
Forum: ChibiOS/HAL
Topic: ADC conversion + Analog Watch Dog
Replies: 2
Views: 2321

ADC conversion + Analog Watch Dog

moved from the my previous topic Same problem, another way this conversion group: static const ADCConversionGroup adc_cfg_wdg2 = { FALSE, 2, NULL, adcerr_wdg, .u.adc = { ADC_CR1_AWDEN | ADC_CR1_AWDIE | ADC_CR1_AWDSGL | ADC_CR1_AWDCH_0 | ADC_CR1_AWDCH_3, ADC_CR2_SWSTART | ADC_CR2_CONT, NEGATIVE_VOLTA...

Go to advanced search