STM32F407 Issues

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

STM32F407 Issues

Post 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.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F407 Issues

Post 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
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: STM32F407 Issues

Post by alexblack »

Thank You. I'll try.
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: STM32F407 Issues

Post by alexblack »

I figured it out. I took a files for F7XX, removed unnecessary, it seems to work.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F407 Issues

Post by Giovanni »

I will update F4 too with the new system.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: STM32F407 Issues

Post by Giovanni »

Hi.

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

Giovanni
alexblack
Posts: 277
Joined: Mon Sep 24, 2012 3:52 pm
Been thanked: 33 times

Re: STM32F407 Issues

Post 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
Post Reply