Ameba-D Application Note
Application Note All information provided in this document is subject to legal disclaimers. © REALTEK 2020. All rights reserved.
19
Fig 1-26 Memory location configuration
1.3.5.2
Configuring Memory from ICF File
IAR uses ICF (IAR Configuration File) to configure memory allocation, so users can configure memory allocation by ICF file.
ICF file of Ameba-D location:
“project\realtek_amebaD_va0_example\EWARM-RELEASE\ rtl8721dhp_image2_is.icf” for ignore secure project
“project\realtek_amebaD_va0_example\EWARM-RELEASE\ rtl8721dhp_image2_tz.icf” for TrustZone project
If having a good understand of the format of ICF, users can modify the section location in ICF file.
1.4
How to Build Sample Code?
The example source code is located in
project\realtek_amebaD_va0_example\example_sources
. To build sample code, you should copy the
“main.c” file in the target example to
project\realtek_amebaD_va0_example\src\src_hp
and replace the original one.
For example, you can copy “main.c” from
project\realtek_amebaD_va0_example\example_sources\I2C\mbed\i2c_int_mode\src
to use
i2c_int_mode example code, as Fig 1-27 shows.