sergei94 0 6 февраля, 2021 Опубликовано 6 февраля, 2021 (изменено) · Жалоба Hello, I am using CUBEMX to define the clock of the periphery but when i used the HAL delay function i got the HAL_ delay be 100 times smaller. In the manual 1000 input is 1 second in HAL delay. How do i see the effect of the diagram bellow on the HAL DELAY function? I read about systick maybe affecting it.i am having trouble to link the CUBEMX diagram bellow and systic and delay of HAL_delay. Can i have a logical link between those elements? Thanks. Изменено 6 февраля, 2021 пользователем sergei94 Цитата Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты Поделиться
Tarbal 4 2 мая, 2021 Опубликовано 2 мая, 2021 · Жалоба On 2/6/2021 at 7:05 AM, sergei94 said: Hello, I am using CUBEMX to define the clock of the periphery but when i used the HAL delay function i got the HAL_ delay be 100 times smaller. In the manual 1000 input is 1 second in HAL delay. How do i see the effect of the diagram bellow on the HAL DELAY function? I read about systick maybe affecting it.i am having trouble to link the CUBEMX diagram bellow and systic and delay of HAL_delay. Can i have a logical link between those elements? Thanks. You should figure out which clock is used for the delay counting. Modifying the clock value in the Cube configuration you may adjust the delay. By the way using delays in a real-time application is a bad practice. Цитата Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты Поделиться