nucleo-G474re misconfiguration WS, variant_NUCLEO_G474RE.cpp
Posted: Thu Nov 09, 2023 2:42 am
Just noticed, that init config in the variant_NUCLEO_G474RE.cpp has this line:
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_8) != HAL_OK) {
same time RM0440 page 98 ( Rev 7 ) says: 4 WS (5 CPU cycles)≤ 170 MHz.
I changed my code to:
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK) {
and get some improvement in DSP performance, new version runs 14.8 msec vs 17.3 msec original.
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_8) != HAL_OK) {
same time RM0440 page 98 ( Rev 7 ) says: 4 WS (5 CPU cycles)≤ 170 MHz.
I changed my code to:
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK) {
and get some improvement in DSP performance, new version runs 14.8 msec vs 17.3 msec original.