2018-01-09 04:50 AM
I am working on STM32F777 where I see that cubeMX does not allows me to enter HCLK value below 16MHz.
1.) Is there a way to make it lower to something like 2 or 4MHz?
2.) How should I select clock frequencies to make the power consumption as low as possible?
3.)Does HCLK refers to the cpu core clock frequency?
#stm32f7 Note: this post was migrated and contained many threaded conversations, some content may be missing.2018-01-09 07:14 AM
Run CuneMX, enable HSE and play with frequency divider. I was able to have 0.310059MHz as HCLK (for mcu, memory). I guess this MCU do not have low frequency limitation - probably one of the gurus on this forum will correct me if I am wrong.
2018-01-09 08:38 AM
I did tried so, but when I try make HCLK go below 16MHz through dividers, cubeMX starts to show that in RED and marks as config error!
2018-01-09 09:03 AM
Enter manually a valu e.g. 0.2 in the 'HCLK to ahb' and the divider will be set automatically
2018-01-09 09:04 AM
Sometimes the app will ask you if you can accept different divider - press ok again
2018-01-09 09:05 AM
So you have two ways of dowing things:
-selecting divider
OR
-entering the expected value and the system will do it for you (sometimes extra OK is required)
2018-01-09 09:08 AM
2018-01-09 01:58 PM
Thanks for the help but I am still unable to enter this much low frequency value, see the message says:
2018-01-09 03:05 PM
It seems the only difference is clock source - it automatically changed the source to HSI when I put 0.2MHz (it seems it is not possible for HSE)
2018-01-09 05:39 PM
The Datasheet says it can go from DC to 216 MHz, so I have no idea where this 2 MHz nonsense is coming from.
One could argue if peripherals will be usable at low frequencies