![Mediatek Labs LinkIt Connect 7681 Developer'S Manual Download Page 55](http://html1.mh-extra.com/html/mediatek-labs/linkit-connect-7681/linkit-connect-7681_developers-manual_1760804055.webp)
MediaTek LinkIt™ Connect 7681 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 50 of 65
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.
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
o
if you are building a Wi-Fi station image (
make
or
make b=1
), the log is located at
out/sta/build_sta.log
.
o
if you are building an access point (AP) image (
make b=2
), the log is located at
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
:
No such file or directory
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.