2.4
GCC Environment on Windows (Using Cygwin)
2.4.1
Install Cygwin
Cygwin a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows.
It provides the GCC toolchain for Ameba-ZII.
User can visit the official website of Cygwin and install by following its instructions.
During the Cygwin installation, please install "math" "bc: Arbitrary precision calculator language"
During the Cygwin installation, please install "devel" "make: The GNU version of the 'make' utility"
Note: Please use Cygwin 32bit.
2.4.2
Building the Non-Trust Zone Project
2.4.2.1 Compile Project on Cygwin
1)
Open "Cygwin Terminal"
2)
Direct to compile path. Enter command "cd /SDK/project/realtek_amebaz2_v0_example/GCC-RELEASE"
3)
Clean up pervious compilation files. Enter command "make clean"
4)
Build all libraries and application. Enter command "make all"
5)
Make sure there is no error after compile.
2.4.2.2 Generating Image Binary
After compile, the images partition.bin, bootloader.bin, firmware_is.bin and flash_is.bin can be seen in different folders of \GCC-
RELEASE.
1)
partition.bin stores partition table, recording the address of Boot image and firmware image; located at folder
\GCC-RELEASE;
2)
bootloader.bin is bootloader image; located at folder \GCC-RELEASE\bootloader\Debug\bin;
3)
firmware_is.bin is application image; located at folder \GCC-RELEASE\application_is\Debug\bin;
4)
flash_is.bin links partition.bin, bootloader.bin and firmware_is.bin. Located at folder \GCC-
RELEASE\application_is\Debug\bin.
Users need to choose 'flash_is.bin' when downloading the image to board by PG Tool.
2.4.2.3 Download
After a successfully compilation and 'flash_is.bin' is generated without error, user can either
1) Directly download the image binary on to demo board from Cygwin (as below)
Connect SWD to board and open "JLinkGDBServer.exe". Please refer to 2.2.1 Jlink for SWD connection.
Enter command "make flash" at Cygwin.
2) Or using the PG tool for Ameba-ZII (Will not be shown here, please check chapter 3 for details).
Application Note
All information provided in this document is subject to legal disclaimers.
19
Ameba-ZII Application Note
© REALTEK 2018. All rights reserved.
Need help?
Do you have a question about the Ameba-ZII DEV and is the answer not in the manual?