Adjustable overclock for F405 and F411 #5210
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Minimal-impact adjustable overclock from #5193 for F405 and F411.
DISABLE_OVERCLOCK
replaced byUSE_OVERCLOCK
defined for supported targetsOFF
,192MHZ
,216MHZ
, and240MHZ
_estack
16 bytes from RAM end to avoid stomping on hot reboot flags while marking stack with16
on devices with no CCM. Also I've noticed that it may be prone to errors even on F405 with CCM as flash ISR vector table contains_estack
rather than_heap_stack_end
, allowing to overrun reboot flags before they are used. This shouldn't be an issue when using linker properly like in Refactor startup assembly and reboot flags #5193 thoughcpu_overclock
setting doing nothing on F411xE, now we have eitherOFF
,108MHZ
, or120MHZ
to choose fromMore generic refactor and rewrite of Assembly & C startup/system files delayed for 3.4.
Tested on OMNIBUSF4SD and NOX v2.15