[STM32F746 RTOS 개발] Timerbase 문제 해결

in #stm327 years ago

STM32CubeMx를 이용하여 프로젝트를 생성하는 과정에서 경고문을 볼 수 있다.

HAL timer.png

WARNING:

  • When FreeRTOS isused, it is strongly recommended to use a HAL timebase source other than the Systick.
    The HAL timebase source can be changed from the Pinout tab under SYS

Do you still want to generate code ?

해결방법

Pinout tab의 Peripherals > SYS > Timebase Source의 SysTick을 TIMx로 변경한다.
STM32F746G-Disco를 사용하면 TIM6가 사용가능하다.

HAL timer2.png

원인

RTOS에서 사용하기 때문에 system timer가 필요함.
RTOS에서 delay함수, task 전환, performance timer 등으로 사용됨.