Page 1 of 1

STM32F407 Issues

Posted: Fri Aug 28, 2020 8:31 pm
by alexblack
Hi.
I decided to port my project on STM32F407 to new ChibiOS in trunk but have compiling errors:

Code: Select all

..\lib\ChibiOS\os\hal\ports\STM32\LLD\TIMv1\hal_gpt_lld.c(401): error:  #35: #error directive: "TIM14 ISR not defined by platform"
  #error "TIM14 ISR not defined by platform"
..\lib\ChibiOS\os\hal\ports\STM32\LLD\TIMv1\hal_gpt_lld.c: 0 warnings, 1 error
..\lib\ChibiOS\os\hal\ports\STM32\LLD\TIMv1\hal_pwm_lld.c(367): error:  #35: #error directive: "TIM9 ISR not defined by platform"
  #error "TIM9 ISR not defined by platform"
..\lib\ChibiOS\os\hal\ports\STM32\LLD\TIMv1\hal_pwm_lld.c: 0 warnings, 1 error

What does it mean? On ChibiOS 18.2 it works.

Re: STM32F407 Issues

Posted: Fri Aug 28, 2020 8:52 pm
by Giovanni
Hi,

Those timers are not yet supported on F4, the whole timers thing has been reworked but not for all platforms.

That macros means that stm32_isr.c/.h do not define an ISR for that timer, look at more recent devices for examples, you may define the ISR yourself.

Giovanni

Re: STM32F407 Issues

Posted: Fri Aug 28, 2020 10:13 pm
by alexblack
Thank You. I'll try.

Re: STM32F407 Issues

Posted: Sat Aug 29, 2020 12:07 am
by alexblack
I figured it out. I took a files for F7XX, removed unnecessary, it seems to work.

Re: STM32F407 Issues

Posted: Sat Aug 29, 2020 6:04 am
by Giovanni
I will update F4 too with the new system.

Giovanni

Re: STM32F407 Issues

Posted: Mon Sep 07, 2020 6:48 pm
by Giovanni
Hi.

I updated F4 with support for all timers, to be tested, please feedback if possible.

Giovanni

Re: STM32F407 Issues

Posted: Sun Sep 27, 2020 9:40 pm
by alexblack
Hi.
I used following timers and it works:

Code: Select all

TIM1  16 bit  PWM Mode
TIM2  32 bit  ICU mode
TIM3  16 bit  GPT mode
TIM4  16 bit  ST Driver
TIM5  32 bit  ICU mode
TIM6  16 bit  GPT mode
TIM7  16 bit  GPT mode
TIM8  16 bit  GPT mode
TIM9  16 bit  PWM mode
TIM10 16 bit  not tested
TIM11 16 bit  not tested
TIM12 16 bit  not tested
TIM13 16 bit  not tested
TIM14 16 bit  GPT mode