Using internal oscillator

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JoDr_3827906
Level 1
Level 1
First like received

We are using the STM32F412.  We need to use the internal oscillator.  How do I change the WICED platform?

0 Likes
1 Solution
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

Go to the platform makefile and replace HSE_VALUE with HSI_VALUE and provide the internal oscillator frequency of the host processor.

View solution in original post

3 Replies
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

Go to the platform makefile and replace HSE_VALUE with HSI_VALUE and provide the internal oscillator frequency of the host processor.

I changed GLOBAL_DEFINES += HSE_VALUE=26000000 to GLOBAL_DEFINES += HSI_VALUE=16000000.

It does not work.  The baud rate is bad and I lose my serial port.

Do I need to change something else?

Shouldn't matter, but the external oscillator is still installed.

0 Likes

Please check the PLL settings, crystal selection made in platform.config.h. To understand the clock organization, please check 43xxx_Wi-Fi/WICED/platform/MCU/STM32F4xx/peripherals/libraries/system_stm32f4xx.c.

0 Likes