Download to Serial Flash Memory
Transcript
SH726A/SH726B Group Example of E10A-USB Flash Memory Download Function (Download to the Serial Flash Memory) 6.8 Flowcharts This section describes the procedure of major functions used in the sample code. 6.8.1 Erase Module Figure 6.4 shows the flowchart of the erase module. _ERASE_ENTRY Described in the assembly language Set a stack pointer Swap out the register Swap out the general register of R0 to R7 Execute the main processing of the module fmtool_init() Swap in the register return Figure 6.4 Erase Module 6.8.2 Write Module Figure 6.5 shows the flowchart of the write module. _WRITE_ENTRY Described in the assembly language Set a stack pointer Swap out the general register R1 to R7 to use the register R0 for the return value Swap out the register Execute the main processing of the module fmtool_write() Swap in the register return (return value of fmtool_write) Figure 6.5 Write Module R01AN1178EJ0100 Rev.1.00 Jun. 25, 2012 Page 21 of 32