AnsweredAssumed Answered

Transitioning from STM32 discovery to custom board (clock settings?)

Question asked by ostrovskiy.boris on Sep 10, 2014
Latest reply on Sep 11, 2014 by ostrovskiy.boris
I have developed a simple application to test GPIOs, SPI, UART on the STM32F4 Discovery dev board (a modified demo application from the included Discovery demo V1.1.0). The demo application uses the STM32F4xx_StdPeriph_Driver.

I'm now trying to transition this code to a custom PCB that has a very similar STM32F427VIT6 processor, but a 19.2MHz external OSC instead of a 8MHz on the Discovery board.

I've changed the target device in compiler settings.
Could somebody help me with changing the clock frequency and the required PLL settings in order for my firmware to work with this new device. I'm just not sure where the clock configuration is set in code, and what the "speed limits" are. The code is just for hardware verification so "max speed" is not required.

I'm using IAR embedded workbench IDE.
I've tried generating a new project with the STM32cube application, and it does work, compile, LEDs blink, clocks are set correctly. Problem is that the STM32cube application includes a HAL driver library which is not easily compatible with the code I already have written using the STM32F4xx_StdPeriph_Driver.

Thank you,