Hi,
I am currently trying to make the Nucleo-F411RE board work.
However, I am struggling with the clock configuration in the board-specific .hpp file.
If I try to compile, it tells me that the PLL factors are out of range.
I don't know how to use the Clock-Module so I am struggling a bit. I tried getting some documentation on the usage, but I did not find any.
Do you have any hint to point me in the right direction?
Thanks!
Kai
What I have:
Under xpcc\src\xpcc\architecture\platform\board:
nucleo_f411re\
-board.cfg
-nucleo_f411re.hpp
The board.cfg:
[build]
device = stm32f411re
nucleo_f411re.hpp:
#ifndef XPCC_NUCLEO_F411RE_HPP
#define XPCC_NUCLEO_F411RE_HPP
#include <xpcc/architecture/platform.hpp>
#include <xpcc/driver/inertial/lis3dsh.hpp>
using namespace xpcc::stm32;
namespace Board
{
/// STM32F4 running at 168MHz (USB Clock qt 48MHz) generated from the
/// external on-board 8MHz crystal
using systemClock = SystemClock<Pll<ExternalCrystal<kHz32>, MHz84, MHz48> >;
using Button = GpioInputC13;
//using ClockOut = GpioOutputA8;
//using SystemClockOut = GpioOutputC9;
inline void
initialize()
{
systemClock::enable();
xpcc::cortex::SysTickTimer::initialize<systemClock>();
Button::setInput();
Button::setInputTrigger(Gpio::InputTrigger::RisingEdge);
Button::enableExternalInterrupt();
// Button::enableExternalInterruptVector(12);
}
}
#endif // XPCC_NUCLEO_F411RE_HPP