I doubt that this is ChibiOS-related, perhaps you could try a different crystal brand.
Giovanni
This issue seems to be resolved; it should be a pure hardware problem. I tried reducing the matching capacitance of the crystal (from 22PF to 18PF) to speed up the oscillation, and surprisingly, it ...
Search found 24 matches
- Sat May 10, 2025 8:36 am
- Forum: ChibiOS/HAL
- Topic: DFU mode HSE is not oscillating
- Replies: 6
- Views: 20441
- Sat May 10, 2025 8:01 am
- Forum: ChibiOS/HAL
- Topic: DFU mode HSE is not oscillating
- Replies: 6
- Views: 20441
Re: DFU mode HSE is not oscillating
FYI #define BOARD_OTG_NOVBUSSENS has no effect on the internal STM32 boot loader (only on the ChibiOS driver).
AN2606 provides details on the internal STM32 boot loader.
See m
I expect from a quick look at AN2606 that you will need to have the VBUS pin connected for the STM32 boot loader to detect ...
AN2606 provides details on the internal STM32 boot loader.
See m
I expect from a quick look at AN2606 that you will need to have the VBUS pin connected for the STM32 boot loader to detect ...
- Fri May 09, 2025 9:23 pm
- Forum: ChibiOS/HAL
- Topic: DFU mode HSE is not oscillating
- Replies: 6
- Views: 20441
Re: DFU mode HSE is not oscillating
Giovanni wrote:Hi,
You need to provide context, which device are you using?
Giovanni
I am using the STM32F405. I google a lot of articles and suspect that the slow startup of the HSE causes me to enter DFU mode without detecting the external crystal, which leads to USB enumeration failure.
- Fri May 09, 2025 5:31 pm
- Forum: ChibiOS/HAL
- Topic: DFU mode HSE is not oscillating
- Replies: 6
- Views: 20441
DFU mode HSE is not oscillating
I am debugging the DFU function, and when I pull BOOT0 high and BOOT1 low, the PC prompts an unknown USB device (device descriptor request failed). Currently, I have identified that the HSE is not oscillating, but it works normally during regular startup. I am not sure if this is related to the ...
- Sun May 04, 2025 12:04 pm
- Forum: ChibiOS/HAL
- Topic: How to use the EXTI driver
- Replies: 5
- Views: 13047
Re: How to use the EXTI driver
On STM32 there are constraints on EXTI mapping on GPIOs, each bit in a port can only be mapped to a single GPIO. For example, you cannot use GPIOA[4] and GPIOB[4] together.
Please read the STM32 RM if you plan to use EXTI, it is a tricky limitation.
Giovanni
So can I use PAL events instead? As ...
Please read the STM32 RM if you plan to use EXTI, it is a tricky limitation.
Giovanni
So can I use PAL events instead? As ...
- Sat May 03, 2025 3:11 pm
- Forum: ChibiOS/HAL
- Topic: How to use the EXTI driver
- Replies: 5
- Views: 13047
Re: How to use the EXTI driver
/* init */
palEnableLineEvent(PAL_LINE(GPIOC, GPIOC_PUSH), PAL_EVENT_MODE_BOTH_EDGES);
palSetLineCallback(PAL_LINE(GPIOC, GPIOC_PUSH), handle_button_ext, NULL);
palEnableLineEvent(PAL_LINE(GPIOA, GPIOA_CTP_IRQ), PAL_EVENT_MODE_FALLING_EDGE);
palSetLineCallback(PAL_LINE(GPIOA, GPIOA_CTP_IRQ ...
palEnableLineEvent(PAL_LINE(GPIOC, GPIOC_PUSH), PAL_EVENT_MODE_BOTH_EDGES);
palSetLineCallback(PAL_LINE(GPIOC, GPIOC_PUSH), handle_button_ext, NULL);
palEnableLineEvent(PAL_LINE(GPIOA, GPIOA_CTP_IRQ), PAL_EVENT_MODE_FALLING_EDGE);
palSetLineCallback(PAL_LINE(GPIOA, GPIOA_CTP_IRQ ...
- Sat May 03, 2025 10:55 am
- Forum: ChibiOS/HAL
- Topic: How to use the EXTI driver
- Replies: 5
- Views: 13047
Re: How to use the EXTI driver
oh,i see,i found palEnableLineEvent & palSetLineCallback.
palSetLineCallbackSet the parameters of the callback,
What can this parameter contain? I guess this parameter can be used to distinguish between PC1 and PE1?
palSetLineCallbackSet the parameters of the callback,
What can this parameter contain? I guess this parameter can be used to distinguish between PC1 and PE1?
- Sat May 03, 2025 9:39 am
- Forum: ChibiOS/HAL
- Topic: How to use the EXTI driver
- Replies: 5
- Views: 13047
How to use the EXTI driver
OS : ChibiOS-21.11.3
MCU : STM32F405VGT6
I noticed that this article(https://forum.chibios.org/viewtopic.php?f=36&t=3355) has a discussion about EXTI, see you mentioned the palLineEnableEvent function, but I didn't find this function in the ChibiOS-21.11.3 version,
I found the extiEnableGroup1 ...
MCU : STM32F405VGT6
I noticed that this article(https://forum.chibios.org/viewtopic.php?f=36&t=3355) has a discussion about EXTI, see you mentioned the palLineEnableEvent function, but I didn't find this function in the ChibiOS-21.11.3 version,
I found the extiEnableGroup1 ...
- Fri May 02, 2025 12:18 pm
- Forum: ChibiOS/HAL
- Topic: I2S can only enter the interrupt once
- Replies: 4
- Views: 12940
Re: I2S can only enter the interrupt once
Hi,
An I2S driver is already included, is it lacking somehow?
Not sure about your problem but you should not specify STM32_DMA_CR_EN to the dmaStreamSetMode(), dmaStreamEnable() does that.
Giovanni
At present, I still use ChibiOS-21.11.3, and I am currently doing math on I2S, but I have the ...
An I2S driver is already included, is it lacking somehow?
Not sure about your problem but you should not specify STM32_DMA_CR_EN to the dmaStreamSetMode(), dmaStreamEnable() does that.
Giovanni
At present, I still use ChibiOS-21.11.3, and I am currently doing math on I2S, but I have the ...
- Tue Apr 22, 2025 6:58 pm
- Forum: ChibiOS/HAL
- Topic: Differences between the old and new versions of Chibios
- Replies: 10
- Views: 24052
Re: Differences between the old and new versions of Chibios
Giovanni wrote:Hi,
It never had such a function, you are probably using some customized driver.
Giovanni
Maybe yes, I'm talking about the old version, downloaded from an unofficial link on github, I know that sdStart is initialized, I want to change the baud rate now, should I reinitialize with sdStart as well