Download Flash Self-Programming Library Type01 User`s Manual
Transcript
RL78 Family CHAPTER 2 PROGRAMMING ENVIRONMENT Flash Self-Programming Library Type 01 2. 2 Software Environment Because the flash self-programming library program needs to be allocated to a user-created program area, the size of the program code will be consumed in the program area. To run the flash self-programming library, the CPU, stack, and data buffer are used. Tables 2-7 lists the software resources required Note1, 2 , and Figures 2-9 and 2-10 show examples of arrangement in RAM. Table 2-7. <R> Software Resources Used by Flash Self-Programming Library Type 01 Item Size(Byte) Self-RAMNote3 0 to 1024Note3 Stack (see Table 2-8) 46 max. Restrictions on Allocation and UsageNotes1,2 The self-RAM area used by RL78 Family Flash Self-Programming Library Type 01 Ver. 2.20 differs depending on the device. For details, refer to "RL78 Family Self RAM list of Flash Self Programming Library".(R20UT2944) Note4 Data buffer (see Table 2-9) 1 to 256 Arguments of library functions 0 to 8 Library size (see Tables 2-10 and 2-11) <R> Can be allocated to a RAM area other than the self-RAM and the area from FFE20H to FFEFFH.Note2 ROM: 1,252 max. Can be allocated to a program area other than the self-RAM and the area from FFE20H to FFEFFH RAM: 0 to 447 Can be allocated to a program area other than the self-RAM, the area from FFE20H to FFEFFH, and the internal ROM. Notes: 1. For devices not shown in the RL78 Family Self RAM list of Flash Self Programming Library (R20UT2944), contact your Renesas sales agency. 2. The R5F10266 product does not support the self-programming function. 3. An area used as the working area by the flash self-programming library is called self-RAM in this manual and the Release Note. The self-RAM requires no user settings because it is an area that is not mapped and automatically used at execution of the flash self-programming library (previous data is discarded). When the flash self-programming library is not used, the self-RAM can be used as a normal RAM space. 4. The data buffer is used as the working area for flash self-programming library internal processing or the area where the data to be set is allocated in the FSL_Write function. The required size depends on the function to be used. R01US0050EJ0103 Dec 22, 2014 Rev.1.03 Page 24 of 109