Troubleshooting; Compile Errors - Mediatek Labs LinkIt Connect 7681 Developer's Manual

Table of Contents

Advertisement

6.

Troubleshooting

This section provides details on methods of troubleshooting issues with code on MT7681.
6.1.

Compile Errors

If you're unable to compile the firmware:
1)
locate the build logs as follows
if you are building a Wi-Fi station image (make or make b=1), the log is located at
o
out/sta/build_sta.log.
if you are building an access point (AP) image (make b=2), the log is located at
o
out/stad/build_ap.log.
2) review the log file to determine the cause.
6.1.1.
GCC not found
An error where the GCC was not found will be indicated by:
In File :
out/sta/build_sta.log
Compiling src/wifi/wifi_task_pub.c
/bin/sh: /mtktools/Andestech/BSPv320/toolchains/nds32le-elf-newlib-
v2j/bin/nds32le-elf-gcc:
The most likely issues are that:
the toolchain is setup incorrectly. Refer to section 2.2, "Installing MediaTek LinkIt Connect
7681 SDK for Windows" or section 2.3, "Installing MediaTek LinkIt Connect 7681 SDK for
Linux" as appropriate and confirm the setup is correct.
there is something wrong in the makefile (mak/compiler.mk). Check the makefile content.
6.1.2.
Compile error in specified c file
A compile error in a c file will be indicated by output similar to:
Compiling cust/iot_custom.c ...
echo Compiling cust/iot_custom.c ... >> out/sta/build_sta.log
Makefile:264: recipe for target 'obj/sta/iot_custom.o' failed
make: *** [obj/sta/iot_custom.o] Error 1
6.1.2.1.
Syntax error
A syntax error will be identified in the log file as shown in this example:
cust/iot_custom.c:187: error: expected ',' or ';' before 'if'
Which indicates that a ";" was missed from the end of the statement.
This document contains information that is proprietary to MediaTek Inc.
Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
MediaTek LinkIt™ Connect 7681 Developer's Guide
...
No such file or directory
© 2015, 2016 MediaTek Inc.
Page 50 of 65

Advertisement

Table of Contents
loading

Related Products for Mediatek Labs LinkIt Connect 7681

Table of Contents