UG-1541
SRAM MODE SETTINGS
Configuration settings are available on the Keil and IAR
software tool environments. To properly set up and test the
static random access memory (SRAM) modes, go to the
example projects located in the M410_SramMode installer.
IAR SRAM Mode
Three file settings must be completed to configure the
corresponding SRAM mode: main.c, startup_ADuCM410.s,
and ADuCM410flash_SramMode.icf.
1.
After the example program is opened from the IAR IDE,
ensure that the macros shown in Figure 30 are set up and
commented in to select the SRAM mode the linker file is
operating in. The M410_SramMode example code (see
Figure 31) uses a linker file, the ADuCM410flash_
SramMode.icf file (see Figure 32) placed in the IAR folder
within the SramMode example program.
EVAL-ADUCM410QSPZ/EVAL-ADUCM410QSP1Z
Figure 31. IAR SRAM Setup startup_ADuCM410.s SRAM Modes
Figure 32. IAR SRAM Setup ADuCM410flash_SramMode.icf Macros
Figure 33. IAR SRAM Output at Mode 0
Rev. 0 | Page 16 of 20
Figure 30. IAR SRAM Setup main.c
5.
Configure the macros shown in Figure 30, Figure 31, and
Figure 32 to run the SRAM modes. Ensure the main.c,
startup_ADuCM410.s, and
ADuCM410flash_SramMode.icf macros are selected with
the correct SRAM mode.
6.
Users can select the desired USER_SRAM_MODE macro
as shown in Figure 31 and Figure 32. Users can also select
the TEST_SRAM_MODE macro as shown in Figure 30.
By default, the example program is running in TEST_SRAM_
MODE 0. Ensure the main.c macro, which runs the debug
mode, shows that the instruction SRAM (ISRAM) is placed
in debug mode. If the ISRAM is in debug mode, the
Disassembly window from the View menu bar displays the
isramTestFunc with the 0x10000000 address (see Figure 33).
User Guide
Need help?
Do you have a question about the EVAL-ADUCM10QSPZ and is the answer not in the manual?
Questions and answers