v01d opened a new pull request #1310: URL: https://github.com/apache/incubator-nuttx/pull/1310
## Summary Flash wait states setting on STM32L4 clock configuration routine was done too late: MSI clock range selection was being performed before this, which means that using MSI as system clock (the default) but requesting a higher frequency would lead to use a number of wait states equal to zero (the default) until the wait states setting code was reached. This led to corruption of execution state, which was actually only observed on non-optimized code (possibly due to the longer execution time between clock increase and flash configuration). This changes moves flash configuration to the top of the clock configuration routine. ## Impact STM32L4 on non-default MSI frequency as system clock. ## Testing Tested on STM32L476. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org