Clock arrangemants for STM32-F407
Posted: Wed Jan 02, 2019 11:32 am
Hi,
I am trying to get an Olimex board (STM32_E407 Rev.F) going.
I have copied the demo files for the RT_STM32F407-DISCOVERY to RT_STM32F407-OLIMEX (in the same directory) and changed one Makefile entry to:
"include $(CHIBIOS)/os/hal/boards/OLIMEX_STM32_E407/board.mk".
Attempting to compile, the following is reported:
Compiling crt0_v7m.S
Compiling vectors.S
Compiling chcoreasm_v7m.S
Compiling crt1.c
Compiling hal.c
In file included from ../../../os/hal/include/hal.h:114,
from ../../../os/hal/src/hal.c:25:
../../../os/hal/ports/STM32/STM32F4xx/hal_lld.h:1374:2: error: #error "STM32_PLLVCO outside acceptable range (STM32_PLLVCO_MIN...STM32_PLLVCO_MAX)"
#error "STM32_PLLVCO outside acceptable range (STM32_PLLVCO_MIN...STM32_PLLVCO_MAX)"
^~~~~
and several more - all to do with PLL speed.
I am new to both Chibios and to ARM Cortex M4 processors (but quite experienced in C & Linux).
I suppose there is a config somewhere but trying to trace the 'defines backwards is quite hard.
I am running ChibiOS_18.2.1 on OpenSUSE Leap 15.0.
I would be grateful for a pointer or two as to where I should correct the clock problem.
Many thanks,
Bob von Knobloch
I am trying to get an Olimex board (STM32_E407 Rev.F) going.
I have copied the demo files for the RT_STM32F407-DISCOVERY to RT_STM32F407-OLIMEX (in the same directory) and changed one Makefile entry to:
"include $(CHIBIOS)/os/hal/boards/OLIMEX_STM32_E407/board.mk".
Attempting to compile, the following is reported:
Compiling crt0_v7m.S
Compiling vectors.S
Compiling chcoreasm_v7m.S
Compiling crt1.c
Compiling hal.c
In file included from ../../../os/hal/include/hal.h:114,
from ../../../os/hal/src/hal.c:25:
../../../os/hal/ports/STM32/STM32F4xx/hal_lld.h:1374:2: error: #error "STM32_PLLVCO outside acceptable range (STM32_PLLVCO_MIN...STM32_PLLVCO_MAX)"
#error "STM32_PLLVCO outside acceptable range (STM32_PLLVCO_MIN...STM32_PLLVCO_MAX)"
^~~~~
and several more - all to do with PLL speed.
I am new to both Chibios and to ARM Cortex M4 processors (but quite experienced in C & Linux).
I suppose there is a config somewhere but trying to trace the 'defines backwards is quite hard.
I am running ChibiOS_18.2.1 on OpenSUSE Leap 15.0.
I would be grateful for a pointer or two as to where I should correct the clock problem.
Many thanks,
Bob von Knobloch