Flash Loader Setting - Epson S1C31D01 Software Manual

Cmos 32-bit single chip microcontroller peripheral circuit sample software manual
Table of Contents

Advertisement

2.4.5

Flash Loader Setting

When the build configuration of the active project is "DebugFlash", it is necessary to set a flash loader to load the
program in the internal flash memory. However, when the build configuration is "Debug", it is necessary to unset
a flash loader because the program is executed on the internal RAM.
To set the flash loader, follow the procedure below.
When the build configuration is "Debug" (program execution on RAM)
(1) Select the [Project] > [Options for {project name} - Target '{build configuration}'] in the uVision menu.
(2) Switch the [Debug] tab in the [Options for Target '{build configuration}'] dialog.
(3) Click the [...] button at the right side of the [Initialize File] edit box and select "debug.ini" file
(Figure 2.4.5.1).
(4) Switch the [Utilities] tab in the [Options for Target '{build configuration}'] dialog and then click the
[Settings] button in the [Configure Flash Menu Command] group box.
(5) Switch the [Flash Download] tab in the [Cortex JLink/JTrace Target Driver Setup] dialog.
(6) Delete all the flash loaders displayed in the [Programming Algorithm] list by clicking the [Remove] button.
(7) Enable the checkboxes, [Do not Erase] and [Reset and Run], in the [Download Function] group box, and
disable other checkboxes (Figure 2.4.5.2).
When the build configuration is "DebugFlash" (program execution on internal flash memory)
(1) Select the [Project] > [Options for {project name} - Target '{build configuration}'] in the uVision menu.
(2) Switch the [Debug] tab in the [Options for Target '{build configuration}'] dialog.
(3) Leave blank the [Initialize File] edit box.
(4) Switch the [Utilities] tab in the [Options for Target '{build configuration}'] dialog and then click the
[Settings] button in the [Configure Flash Menu Command] group box.
(5) Switch the [Flash Download] tab in the [Cortex JLink/JTrace Target Driver Setup] dialog.
(6) Delete all the flash loaders displayed in the [Programming Algorithm] list by clicking the [Remove] button.
(7) Click the [Add] button to open the [Add Flash Programming Algorithm] dialog box.
(8) Select a flash loader "S1C31D01int 256kB" in the list on [Add Flash Programming Algorithm] dialog box.
(9) Enable the checkboxes, [Erase Sectors], [Program] and [Verify], in the [Download Function] group box, and
disable other checkboxes (Figure 2.4.5.3).
Note: When working with the "Debug" build, the internal flash memory will be not updated as the image will be
loaded into internal RAM so an additional setting must be added via the [Initialization File] option to set the
Program Counter and Stack registers that would normally be loaded from the Vector table in the internal flash
memory. In the examples using "Debug" build, we use the "debug.ini" file to set those values correctly. In the
example using "DebugFlash" build, the [Initialization File] field should be left blank.
S1C31D01 Peripheral Circuit
Sample Software Manual (Rev.3.00)
Seiko Epson Corporation
19

Advertisement

Table of Contents
loading

Table of Contents