STM32F407 Issues

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

Moderators: barthess, RoccoMarco

alexblack
Posts: 246
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 27 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: 13008
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 742 times
Been thanked: 620 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: 246
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 27 times
Contact:

Re: STM32F407 Issues

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

Thank You. I'll try.

alexblack
Posts: 246
Joined: Mon Sep 24, 2012 3:52 pm
Location: Donetsk
Been thanked: 27 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: 13008
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 742 times
Been thanked: 620 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: 13008
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 742 times
Been thanked: 620 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


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 7 guests