I added this at two places to resolve it.
In modmachine.c @ line 384
Code: Select all
#if !defined(MICROPY_HW_FLASH_LATENCY)
#if defined(MCU_SERIES_L4)
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4
#else
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_5
#endif
#endif
Code: Select all
#if !defined(MICROPY_HW_FLASH_LATENCY)
#if defined(MCU_SERIES_L4)
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_4
#else
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_5
#endif
#endif