Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Clock source change during CySysFlashWriteRow API execution - KBA236283

Clock source change during CySysFlashWriteRow API execution - KBA236283

Infineon_Team
Employee
Employee
50 replies posted 25 likes received 25 replies posted

Community Translation: CySysFlashWriteRow API実行中のクロックソースの変更 - KBA236283

Version: **

When executing the CySysFlashWriteRow API function, the HFCLK source automatically switches to the internal main oscillator (IMO) even if another clock such as ExtClk or ECO had been configured as the HFCLK source. At the end of the API execution, the user clock settings are restored after the flash write is completed.

During the time when the clock is changed, ensure that all other components currently operating are stopped. Even though these components can work during the clock changing time, the clock deviation will be changed to ± 2% (for IMO) and the frequency might also be changed. In addition, the Systick Timer of the Arm® Cortex®-M CPU could generate interrupts if variations that occur during the change in clock are not handled appropriately.

Check the device datasheet to learn about frequency and allowed deviation of the IMO for the target device.

For example, per the PSoC™ 4100s Plus datasheet (002-20072 Rev. *J), the IMO frequency is set to 48 MHz and the deviation is ± 2.5%.

0 Likes
135 Views