UG-1926
Rev. 0 | Page 17 of 20
25844-
019
Figure 33. IAR SRAM Output at Mode 0
Keil SRAM Mode
Several
.sct
and
.s
files from the example program allow users to
select the desired SRAM:
M420_SramModeX.sct
and
SetSramModeX.s
. The X in the file name specifies the mode
number (0 to 3) for the SRAM.
1.
After the example program is opened from the Keil IDE, the
files located in the same folder are shown. Ensure that the
.sct
and
.s
files from the example folder (see Figure 34) are
used with the corresponding SRAM mode being tested.
25844-
020
Figure 34. SRAM Mode
.sct
and
.s
Files
2.
By default, the
M420_SramMode
macro uses SRAM
Mode 0. The
SetSramMode0.s
assembly file is added to
the subdirectory as shown in Figure 35. Specify which
SRAM mode to test in the
main.c
file. By default, SRAM
Mode 0 is tested (see Figure 36).
25844-
021
Figure 35. Set Up
SetSramMode0.s
25844-
022
Figure 36. Set Up
M420_SramMode0.sct
3.
After following Step 1 and Step 2, proceed to set up the
.sct
file located in
Flash
>
Configure Flash Tools
>
Linker
. Refer
to Figure 37 to check the settings highlighted in green are
correct and that the correct scatter file is chosen (based on
the SRAM mode configuration).
4.
Running the settings in Figure 38 shows that the ISRAM is
placed in debug mode via the
Disassembly
window.