Hi!
I want to determine the system clock frequency to erase or program the internal ROM.
It is describe as "Note: Flash ERASE and PROGRAM operations must be performed with a system clock below or equal to 100 MHz." in the LPC55S1x / LPC551x User manual. However, sysFreqInMHz of the FLASH_Init function(see fsl_iap.c) is configured to set only 12MHz(kSysToFlashFreq_lowInMHz) or 96MHz(kSysToFlashFreq_defaultInMHz).
status_t FLASH_Init(flash_config_t *config)
{
/* Initialize the clock to 96MHz */
config->modeConfig.sysFreqInMHz = (uint32_t)kSysToFlashFreq_defaultInMHz;
if (get_rom_api_version() == 1u)
{
return VERSION1_FLASH_API_TREE->flash_init(config);
}
else
{
return VERSION0_FLASH_API_TREE->flash_init(config);
}
}
Which setting is correct, "12MHz / 96MHz" or "100MHz or less(80MHz etc.)"?
Regards,
TY