Will an error return if flash self-programming for RL78 family MCUs?
Question:
Answer:
Processing to check presetting of the library only becomes effective after the FSL_Init function is called.
If the FSL_Init function has not been executed, the flash-memory function will proceed before the execution environment for flash self-programming (such as securing/initializing the self-programming RAM and setting the CPU’s operating frequency) is prepared. This might lead to a program running out of control or to the generation of an internal reset because error processing by the library do not execute.
If the flash function is executed without execution of other presettings after FSL_Init is executed, this leads to abnormal termination and the flash function returns the value FSL_ERR_FLOW (0x1F).
Flash Self Programming Libraries |