Search found 19 matches
- Wed Nov 06, 2019 11:36 pm
- Forum: ChibiOS/RT
- Topic: Cortex-M0 bugs: 88167, 88656
- Replies: 11
- Views: 32355
- Wed Nov 06, 2019 11:34 pm
- Forum: Bug Reports
- Topic: ADCv1 and stm32L031 (hal_adc_lld.h)
- Replies: 4
- Views: 33635
Re: ADCv1 and stm32L031 (hal_adc_lld.h)
Maybe best solution will be perform a ADCv1L0XX ?
- Wed Nov 06, 2019 8:49 pm
- Forum: ChibiOS/RT
- Topic: Cortex-M0 bugs: 88167, 88656
- Replies: 11
- Views: 32355
Cortex-M0 bugs: 88167, 88656
os/common/ports/ARMCMx/chcore_v6m.h
have check for GCC version
/* Handling a GCC problem impacting ARMv6-M.*/
#if defined(__GNUC__) && !defined(PORT_IGNORE_GCC_VERSION_CHECK)
#if __GNUC__ > 5
#warning "This compiler has a know problem with Cortex-M0, see bugs: 88167, 88656."
#warning "*** Use ...
have check for GCC version
/* Handling a GCC problem impacting ARMv6-M.*/
#if defined(__GNUC__) && !defined(PORT_IGNORE_GCC_VERSION_CHECK)
#if __GNUC__ > 5
#warning "This compiler has a know problem with Cortex-M0, see bugs: 88167, 88656."
#warning "*** Use ...
- Sun Nov 03, 2019 1:29 pm
- Forum: Bug Reports
- Topic: ADCv1 and adcerrorcallback (Analog watchdog problem)
- Replies: 9
- Views: 36079
Re: ADCv1 and adcerrorcallback (Analog watchdog problem)
Can you post here when you make a final decision what solution apply
- Sun Nov 03, 2019 12:47 pm
- Forum: Bug Reports
- Topic: ADCv1 and adcerrorcallback (Analog watchdog problem)
- Replies: 9
- Views: 36079
Re: ADCv1 and adcerrorcallback (Analog watchdog problem)
What the best solutions for this situation? use this fix or try to define a ADC ISR ?
- Sun Nov 03, 2019 12:46 pm
- Forum: Bug Reports
- Topic: ADCv1 and adcerrorcallback (Analog watchdog problem)
- Replies: 9
- Views: 36079
Re: ADCv1 and adcerrorcallback (Analog watchdog problem)
Giovanni wrote:STM32_ADC1_IRQ_SHARED_WITH_EXTI
Try putting it to FALSE in registry, it disables the ISR.
Giovanni
Helped!!!
Now i can catch adcerrorcallback
- Sun Nov 03, 2019 12:39 pm
- Forum: Bug Reports
- Topic: ADCv1 and adcerrorcallback (Analog watchdog problem)
- Replies: 9
- Views: 36079
Re: ADCv1 and adcerrorcallback (Analog watchdog problem)
Giovanni wrote:STM32_ADC1_IRQ_SHARED_WITH_EXTI
Try putting it to FALSE in registry, it disables the ISR.
Giovanni
Thanks, i'll try.
- Sun Nov 03, 2019 12:08 pm
- Forum: Bug Reports
- Topic: ADCv1 and adcerrorcallback (Analog watchdog problem)
- Replies: 9
- Views: 36079
Re: ADCv1 and adcerrorcallback (Analog watchdog problem)
It is a known error, the ADC ISR is not defined for the L0, moving in bug reports.
You may re-enable the ISR and it should work.
you mean
// re-set IER
adcp->adc->ISR = adcp->adc->ISR;
adcp->adc->IER = ADC_IER_OVRIE | ADC_IER_AWDIE;
and re-enable
adcp->adc->CR = ADC_CR_ADEN;
while ...
You may re-enable the ISR and it should work.
you mean
// re-set IER
adcp->adc->ISR = adcp->adc->ISR;
adcp->adc->IER = ADC_IER_OVRIE | ADC_IER_AWDIE;
and re-enable
adcp->adc->CR = ADC_CR_ADEN;
while ...
- Sun Nov 03, 2019 10:28 am
- Forum: Bug Reports
- Topic: ADCv1 and stm32L031 (hal_adc_lld.h)
- Replies: 4
- Views: 33635
Re: ADCv1 and stm32L031 (hal_adc_lld.h)
Seems bug
- Sun Nov 03, 2019 10:25 am
- Forum: Bug Reports
- Topic: ADCv1 and adcerrorcallback (Analog watchdog problem)
- Replies: 9
- Views: 36079
ADCv1 and adcerrorcallback (Analog watchdog problem)
Brief description
- chibios_trunk (latest build from github)
- stm32L031F6
- Enabled Oversampling ADC (16X)
- Enabled Analog WatchDog
- Used ADC 4pcs Channel (0,1,2,4)
ADC struct defines:
#define ADC_GRP2_NUM_CHANNELS 4
#define ADC_GRP2_BUF_DEPTH 2
/* Variable containing ADC conversions ...
- chibios_trunk (latest build from github)
- stm32L031F6
- Enabled Oversampling ADC (16X)
- Enabled Analog WatchDog
- Used ADC 4pcs Channel (0,1,2,4)
ADC struct defines:
#define ADC_GRP2_NUM_CHANNELS 4
#define ADC_GRP2_BUF_DEPTH 2
/* Variable containing ADC conversions ...