Hi.
I am using the current stable 21.11.4 branch. In the ADCv3 driver file hal_adc_lld.c, there seems to be a copy-paste error regarding the clock mask (clkmask) for ADC5.
It appears that the bit shift corresponds to the ADC index (ADC3=bit2, ADC4=bit3, ADC5=bit4), but for ADC5, the code sets and ...
Search found 277 matches
- Tue Feb 24, 2026 12:03 am
- Forum: Bug Reports
- Topic: [ADCv3] Possible copy-paste error in hal_adc_lld.c for ADC5 clock mask
- Replies: 1
- Views: 7447
- Tue Jun 14, 2022 12:52 pm
- Forum: Bug Reports
- Topic: I2C v.1.0 discrepancy RM
- Replies: 3
- Views: 6785
I2C v.1.0 discrepancy RM
Hi.
In current stable branch (21.11.2) there is I2C v.1 driver and it has discrepancy with Reference Manual:
"ChibiOS\os\hal\ports\STM32\LLD\I2Cv1\hal_i2c_lld.c"
...
252 static void i2c_lld_serve_event_interrupt(I2CDriver *i2cp) {
253 I2C_TypeDef *dp = i2cp->i2c;
254 uint32_t regSR2 ...
In current stable branch (21.11.2) there is I2C v.1 driver and it has discrepancy with Reference Manual:
"ChibiOS\os\hal\ports\STM32\LLD\I2Cv1\hal_i2c_lld.c"
...
252 static void i2c_lld_serve_event_interrupt(I2CDriver *i2cp) {
253 I2C_TypeDef *dp = i2cp->i2c;
254 uint32_t regSR2 ...
- Wed Feb 23, 2022 2:11 pm
- Forum: Bug Reports
- Topic: STM32G031 TIM16/TIM17 CLOCK CALUCLATING ERROR
- Replies: 2
- Views: 4434
STM32G031 TIM16/TIM17 CLOCK CALUCLATING ERROR
Hi.
For the STM32G031 and STM32G030 (maybe other G0 mcu too) there is an errata:
2.5.5 TIM16 and TIM17 are unduly clocked by SYSCLK
Description
The timers TIM16 and TIM17 are unduly clocked by SYSCLK instead of being clocked by the timer clock
TIMPCLK. As a consequence, they do not ...
For the STM32G031 and STM32G030 (maybe other G0 mcu too) there is an errata:
2.5.5 TIM16 and TIM17 are unduly clocked by SYSCLK
Description
The timers TIM16 and TIM17 are unduly clocked by SYSCLK instead of being clocked by the timer clock
TIMPCLK. As a consequence, they do not ...
- Mon Jan 31, 2022 12:53 am
- Forum: Bug Reports
- Topic: STM32 USART v.2 Serial Driver Reinit error
- Replies: 2
- Views: 3469
STM32 USART v.2 Serial Driver Reinit error
Hi.
In stable branch 21.11.x and 21.6.x (and maybe in earler) reconfiguration the baudrate scenario is broken because in function serial_lld_start is called the function usart_init with variable clock which is not setted when serial driver already is in READY state:
\stable_21.11.x\os\hal ...
In stable branch 21.11.x and 21.6.x (and maybe in earler) reconfiguration the baudrate scenario is broken because in function serial_lld_start is called the function usart_init with variable clock which is not setted when serial driver already is in READY state:
\stable_21.11.x\os\hal ...
- Tue Dec 07, 2021 1:58 pm
- Forum: Bug Reports
- Topic: Stable 21.11.x SPI bug
- Replies: 2
- Views: 3705
Re: Stable 21.11.x SPI bug
Sorry.
I was found the problem: I ported the old project and was include the file hap_spi_lld.c instead of the new hal_spi_v2_lld.c.
I do not understand why there are two files on LLD folder and how I must proper select the one. I do not use ChibiStudio and make files (KEIL compiller).
I was found the problem: I ported the old project and was include the file hap_spi_lld.c instead of the new hal_spi_v2_lld.c.
I do not understand why there are two files on LLD folder and how I must proper select the one. I do not use ChibiStudio and make files (KEIL compiller).
- Tue Dec 07, 2021 1:40 pm
- Forum: Bug Reports
- Topic: Stable 21.11.x SPI bug
- Replies: 2
- Views: 3705
Stable 21.11.x SPI bug
Hello.
In current stable version there are an errors in spi_lld V2 driver:
compiling hal_spi_lld.c...
..\..\!ufg_pp_new_2021\lib\ChibiOS\os\hal\ports\STM32\LLD\SPIv2\hal_spi_lld.c(146): warning: #223-D: function "_spi_isr_half_code" declared ...
In current stable version there are an errors in spi_lld V2 driver:
compiling hal_spi_lld.c...
..\..\!ufg_pp_new_2021\lib\ChibiOS\os\hal\ports\STM32\LLD\SPIv2\hal_spi_lld.c(146): warning: #223-D: function "_spi_isr_half_code" declared ...
- Thu Sep 30, 2021 11:45 pm
- Forum: STM32 Support
- Topic: STM32G030 support.
- Replies: 16
- Views: 16809
Re: STM32G030 support.
Sorry.
I found the problem. It is wrong settings in configuaration of the ADC:
I found the problem. It is wrong settings in configuaration of the ADC:
Code: Select all
//cfgr1
0
| ADC_CFGR1_CONT <<<---- THIS BIT IS WRONG SET!!!! IT DOES NOT NEED FOR THIS MODE
| ADC_CFGR1_RES_12BIT
| ADC_CFGR1_EXTEN_RISING
| ADC_CFGR1_EXTSEL_SRC(3),
- Thu Sep 30, 2021 10:36 pm
- Forum: STM32 Support
- Topic: STM32G030 support.
- Replies: 16
- Views: 16809
Re: STM32G030 support.
Hi.
I looked the ERRATA sheet ( https://www.st.com/resource/en/errata_sheet/es0486-stm32g030x6x8-device-errata-stmicroelectronics.pdf ) for the STM32G030 and was find this:
2.2.4 DMAMUX cannot be synchronized or triggered by EXTI
Description
The EXTI-related DMAMUX ...
I looked the ERRATA sheet ( https://www.st.com/resource/en/errata_sheet/es0486-stm32g030x6x8-device-errata-stmicroelectronics.pdf ) for the STM32G030 and was find this:
2.2.4 DMAMUX cannot be synchronized or triggered by EXTI
Description
The EXTI-related DMAMUX ...
- Tue Sep 21, 2021 8:45 am
- Forum: STM32 Support
- Topic: STM32G030 support.
- Replies: 16
- Views: 16809
Re: STM32G030 support.
G030 is a "lite" version of the G070 which is looks like supported by code already but really it is not. There are some mistakes in definitions (the project do not compiling from the box) - I used the G070 code as a starting point for G030. May be you can finish support for G070 near time? This will ...
- Tue Sep 21, 2021 7:51 am
- Forum: STM32 Support
- Topic: STM32G030 support.
- Replies: 16
- Views: 16809
Re: STM32G030 support.
Hi.
I have some trouble with ADC in STM32G030 mcu. I wanted to get ADC data at regular intervals and used the timer 3 for that. I used this methode to produce ADC data in another MCUs many times and all works well, but in this MCU the program continously loop in DMA IRQ handler. It seems that the ...
I have some trouble with ADC in STM32G030 mcu. I wanted to get ADC data at regular intervals and used the timer 3 for that. I used this methode to produce ADC data in another MCUs many times and all works well, but in this MCU the program continously loop in DMA IRQ handler. It seems that the ...