Search found 2 matches

by crthorne
Mon Mar 27, 2017 9:40 pm
Forum: Bug Reports
Topic: gptStartOneShot 'fails' with interval of 1
Replies: 5
Views: 29413

gptStartOneShot 'fails' with interval of 1

On Chibios 16.1.5, HAL for STM32. If I call gptStatOneShot with an interval value of 1 I 'never' get the timeout event.
Using GPT5 on STM32F4xx.

Tracking down the calls, I get to this function in os/hal/ports/STM32/LLD/TIMv1/gpt_lld.c:

void gpt_lld_start_timer(GPTDriver *gptp, gptcnt_t interval ...
by crthorne
Fri Oct 07, 2016 5:52 pm
Forum: ChibiOS/HAL
Topic: Possible bug in i2c_lld_master_transmit_timeout
Replies: 0
Views: 2340

Possible bug in i2c_lld_master_transmit_timeout

I'm running on STM32F405xx.
ChibiOS 16.1.5 download.
I believe there may be a bug in the function i2c_lld_master_transmit_timeout.
When there are no I2C devices connected - perhaps they are powered down, or have failed, then there is an infinite timeout:

Line 823 in os/hal/ports/STM32/LLD/I2Cv1/I2c ...