diff --git a/boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c b/boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c index a5d0662dee..b3af2a5a11 100644 --- a/boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c +++ b/boards/arm/stm32/nucleo-f334r8/src/stm32_spwm.c @@ -24,6 +24,7 @@ #include +#include #include #include #include @@ -453,8 +454,8 @@ static int slaves_configure(FAR struct spwm_s *spwm) per = fclk / CONFIG_NUCLEOF334R8_SPWM_PWM_FREQ; if (per > HRTIM_PER_MAX) { - printf("ERROR: can not achieve pwm freq=%llu if fclk=%llu\n", - CONFIG_NUCLEOF334R8_SPWM_PWM_FREQ, fclk); + printf("ERROR: can not achieve pwm freq=%ju if fclk=%llu\n", + (uintmax_t)CONFIG_NUCLEOF334R8_SPWM_PWM_FREQ, fclk); ret = -EINVAL; goto errout; }