User Code Execution During Self-Programming - Renesas FSL-T06 User Manual

Flash self-programming library
Table of Contents

Advertisement

Flash Self-Programming Library
Caution

4.4 User code execution during Self-Programming

Figure 4-4
R01US0046ED Rev. 1.01
User Manual
Internal mode
FSL_CODE_RAM_USRINT
FSL_CODE_RAM_USR
FSL_CODE_RAM
FSL_CODE_EX_PROT
For further information regarding the linker sections please refer to chapter 3.2
"FSL Linker sections"
Beside the mentioned sections, Self-Programming needs additional 4kByte
of RAM located on the top of the RAM. These RAM addresses are reserved
for the internal firmware. The RAM content in this address range will be
destroyed during Self-Programming.
The activation and deactivation of the Self-Programming Environment can be
handled by the FSL automatically or by the user application.
Especially activation is time consuming. In order to achieve fast reprogramming
the environment should be kept activated during the whole reprogramming. On
the other hand, during activated environment the program execution cannot be
done from Flash. So other memory like internal RAM or external memory is
required. If not sufficient memory is available, sequential activation and
deactivation is necessary and only small code parts are executed from internal
RAM.
Following two major scenarios may be considered for Self-Programming. These
are reflected by the library modes:
User mode
Most parts of the Self-Programming Library are executed in the internal RAM,
additionally the reprogramming control functions and other user code to be
executed during Self-Programming. In order to realise fast reprogramming the
activation/deactivation sequence is done only once for the complete
reprogramming. Every code to be executed between activation and deactivation
needs to be executed outside the Flash.
Firmware
Firmware Interface
FSL User Interface
FSL_FlashEnv_Activate /
FSL_FlashEnv_Deactivate
User Control Program
User Application
Reprogramming sequence in user mode
No Flash access possible
FSL Usage
...
Execution
in RAM
Execution
in Flash
22

Advertisement

Table of Contents
loading

Table of Contents