Broken Olimex P407 board files

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

Moderator: RoccoMarco

Post Reply
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Broken Olimex P407 board files

Post by Tectu »

Can somebody confirm that the Olimex P407 board files are broken? Compiling the F4 Discovery demo with the P407 board files gives:

Code: Select all

[tectu@techome blinky]$ make
Compiling test.c
In file included from /home/tectu/projects/resources/chibios/os/hal/include/hal.h:36:0,
                 from /home/tectu/projects/resources/chibios/test/test.c:30:
/home/tectu/projects/resources/chibios/os/hal/platforms/STM32F4xx/hal_lld.h:1113:2: error: #error "STM32_PLLCLKIN outside acceptable range (STM32_PLLIN_MIN...STM32_PLLIN_MAX)"
/home/tectu/projects/resources/chibios/os/hal/platforms/STM32F4xx/hal_lld.h:1176:2: error: #error "STM32_PLLVCO outside acceptable range (STM32_PLLVCO_MIN...STM32_PLLVCO_MAX)"
/home/tectu/projects/resources/chibios/os/hal/platforms/STM32F4xx/hal_lld.h:1188:2: error: #error "STM32_PLLCLKOUT outside acceptable range (STM32_PLLOUT_MIN...STM32_PLLOUT_MAX)"
/home/tectu/projects/resources/chibios/os/hal/platforms/STM32F4xx/hal_lld.h:1208:2: error: #error "STM32_SYSCLK above maximum rated frequency (STM32_SYSCLK_MAX)"
/home/tectu/projects/resources/chibios/os/hal/platforms/STM32F4xx/hal_lld.h:1240:2: error: #error "STM32_HCLK exceeding maximum frequency (STM32_SYSCLK_MAX)"
/home/tectu/projects/resources/chibios/os/hal/platforms/STM32F4xx/hal_lld.h:1264:2: error: #error "STM32_PCLK1 exceeding maximum frequency (STM32_PCLK1_MAX)"
/home/tectu/projects/resources/chibios/os/hal/platforms/STM32F4xx/hal_lld.h:1288:2: error: #error "STM32_PCLK2 exceeding maximum frequency (STM32_PCLK2_MAX)"
/home/tectu/projects/resources/chibios/os/hal/platforms/STM32F4xx/hal_lld.h:1333:2: error: #error "STM32_PLLI2SVCO outside acceptable range (STM32_PLLVCO_MIN...STM32_PLLVCO_MAX)"
In file included from /home/tectu/projects/resources/chibios/os/hal/include/adc.h:87:0,
                 from /home/tectu/projects/resources/chibios/os/hal/include/hal.h:48,
                 from /home/tectu/projects/resources/chibios/test/test.c:30:
/home/tectu/projects/resources/chibios/os/hal/platforms/STM32F4xx/adc_lld.h:285:2: error: #error "STM32_ADCCLK outside acceptable range (STM32_ADCCLK_MIN...STM32_ADCCLK_MAX)"
make: *** [build/obj/test.o] Error 1

I checked the the board files and the setting seems to be right so far (25MHz crystal etc). Did these ever work?

~ Tectu
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Broken Olimex P407 board files

Post by Giovanni »

The two boards have different HSE frequencies, you have to copy the PLL settings in mcuconf.h too.

Giovanni
User avatar
Tectu
Posts: 1225
Joined: Thu May 10, 2012 9:50 am

Re: Broken Olimex P407 board files

Post by Tectu »

This was a very stupid error. Sorry.


~ Tectu
Post Reply