Professional Documents
Culture Documents
MC25&M25&M56-R-OpenCPU GCC Installation Guide V1.0
MC25&M25&M56-R-OpenCPU GCC Installation Guide V1.0
OpenCPU GCC
Installation Guide
Rev. MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide_V1.0
Date: 2019-07-22
Status: Released
www.quectel.com
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
Our aim is to provide customers with timely and comprehensive service. For any
assistance, please contact our company headquarters:
GENERAL NOTES
QUECTEL OFFERS THE INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION
PROVIDED IS BASED UPON CUSTOMERS’ REQUIREMENTS. QUECTEL MAKES EVERY EFFORT
TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT
MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT
ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR
RELIANCE UPON THE INFORMATION. ALL INFORMATION SUPPLIED HEREIN IS SUBJECT TO
CHANGE WITHOUT PRIOR NOTICE.
COPYRIGHT
THE INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF QUECTEL
WIRELESS SOLUTIONS CO., LTD. TRANSMITTING, REPRODUCTION, DISSEMINATION AND
EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THE CONTENT ARE FORBIDDEN
WITHOUT PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF DAMAGES. ALL
RIGHTS ARE RESERVED IN THE EVENT OF A PATENT GRANT OR REGISTRATION OF A UTILITY
MODEL OR DESIGN.
Copyright © Quectel Wireless Solutions Co., Ltd. 2019. All rights reserved.
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 1 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
History
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 2 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
Contents
1 Introduction .......................................................................................................................................... 5
3 Compiling............................................................................................................................................ 11
4 Appendix A Reference....................................................................................................................... 13
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 3 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
Figure Index
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 4 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
1 Introduction
This document mainly introduces how to install GCC compiling environment on Windows, and how to
compile App in OpenCPU SDK with GCC.
MC25-OpenCPU
M25-OpenCPU
M56-R-OpenCPU
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 5 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
In this chapter, CSDTK4.2 toolkit is taken for example to introduce how to the install GCC compiling
environment on Windows.
Windows XP
Windows 7
Windows 10
In order to successfully install and use CSDTK4.2 toolkit, at least 1.5GB of memory should be available.
Users can simply finish installing GCC compiling environment by unzipping the installation package of
CSDTK4.2 toolkit (CSDTK4.2_Setup.rar) in specified path. The steps are shown as follows:
1. Create a new folder. Create a folder named CSDTK4 under root C:\. Please note that the path here
must be C:\CSDTK4 since the default path is C:\CSDTK4.
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 6 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
3. GCC Folder. The GCC folder mips-elf-4.4.2 (already included in CSDTK4.2 toolkit) can be found in
C:\CSDTK4.
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 7 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
The installation of GCC compiling environment is completed now. If users need to modify the installation
path, please refer to Chapter 2.2.2.
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 8 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
This chapter introduces how to modify the installation path of CSDTK4.2, for instance, from “C:\CSDTK4”
to “F:\CSDTK4”.
1. Right click on the shortcut of command line MS-DOS in SDK, bringing out the “MS-DOS Properties”
panel.
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 9 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
2. As shown in the following figure, change the default path “C:\” to “F:\” in “Target” column.
3. Click “OK” to save the above setting. The installation path of CSDTK4.2 will be modified as
“F:\CSDTK4”.
If the operation mentioned above in this chapter is completed without any other problem, users can
conduct compiling to verify if the installation is successful. If the compiling passes, it indicates the
compiling environment is installed successfully.
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 10 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
3 Compiling
In OpenCPU, compiling commands are executed in command line. The clean and compiling commands
are respectively defined as below.
make clean
make new
The clean and compiling commands need to be executed in the root directory of SDK.
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 11 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
During compiling, some compiler processing information will be output. If compiling fails, users can check
\SDK\build\gcc\build.log for all the warnings and errors.
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 12 / 13
GSM/GPRS/GNSS Module Series
MC25&M25&M56-R-OpenCPU GCC Installation Guide
4 Appendix A Reference
Abbreviation Description
MC25&M25&M56-R-OpenCPU_GCC_Installation_Guide 13 / 13