STM32F407 Issues

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

Moderators: barthess, RoccoMarco

alexblack
Posts: 251
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 29 times
Contact:

STM32F407 Issues

Postby alexblack » Fri Aug 28, 2020 8:31 pm

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: 13064
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 758 times
Been thanked: 636 times
Contact:

Re: STM32F407 Issues

Postby Giovanni » Fri Aug 28, 2020 8:52 pm

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: 251
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 29 times
Contact:

Re: STM32F407 Issues

Postby alexblack » Fri Aug 28, 2020 10:13 pm

Thank You. I'll try.

alexblack
Posts: 251
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 29 times
Contact:

Re: STM32F407 Issues

Postby alexblack » Sat Aug 29, 2020 12:07 am

I figured it out. I took a files for F7XX, removed unnecessary, it seems to work.

User avatar
Giovanni
Site Admin
Posts: 13064
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 758 times
Been thanked: 636 times
Contact:

Re: STM32F407 Issues

Postby Giovanni » Sat Aug 29, 2020 6:04 am

I will update F4 too with the new system.

Giovanni

User avatar
Giovanni
Site Admin
Posts: 13064
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 758 times
Been thanked: 636 times
Contact:

Re: STM32F407 Issues

Postby Giovanni » Mon Sep 07, 2020 6:48 pm

Hi.

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

Giovanni

alexblack
Posts: 251
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 29 times
Contact:

Re: STM32F407 Issues

Postby alexblack » Sun Sep 27, 2020 9:40 pm

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


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 10 guests