using clock() function time.h in BeyondStudio

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

using clock() function time.h in BeyondStudio

1,095 次查看
LUIPS
Contributor I

I am trying to use time.h file clock() function. to get the running time of the program。However,when i build the project,it shows the following errors:

/ba_toolchain/r36379/source/gcc-4.7.4-ba-r36379-build/ba-elf/mcpu_jn51xx_sizeopt/newlib/libc/sys/basim/../../../../../../../gcc-4.7.4-ba-r36379/newlib/libc/sys/basim/glue.c:75: undefined reference to `end'
/ba_toolchain/r36379/source/gcc-4.7.4-ba-r36379-build/ba-elf/mcpu_jn51xx_sizeopt/newlib/libc/sys/basim/../../../../../../../gcc-4.7.4-ba-r36379/newlib/libc/sys/basim/glue.c:75: undefined reference to `_stack'
/ba_toolchain/r36379/source/gcc-4.7.4-ba-r36379-build/ba-elf/mcpu_jn51xx_sizeopt/newlib/libc/sys/basim/../../../../../../../gcc-4.7.4-ba-r36379/newlib/libc/sys/basim/glue.c:75: undefined reference to `_stack'
/ba_toolchain/r36379/source/gcc-4.7.4-ba-r36379-build/ba-elf/mcpu_jn51xx_sizeopt/newlib/libc/sys/basim/../../../../../../../gcc-4.7.4-ba-r36379/newlib/libc/sys/basim/glue.c:75:(.text+0x197): relocation truncated to fit: R_BA_8 against undefined symbol `_stack'

Could anyone tell me how to solve this problem ?

标记 (1)
0 项奖励
回复
1 回复

1,075 次查看
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hello,

 

Could you please take a look at the following document for information about BeyondStudio Common Errors?

 

What Application Note are you using as a base? What modifications did you do?

 

Also, we highly recommend moving to the JN5189 Wireless MCU for Zigbee® and Thread, as is our focus part for ZigBee/Thread. It is supported by our MCUXpresso IDE and MCUXpresso SDK. There are several SDK examples, like driver examples (GPIO, UART, SPI, I2C), RTOS examples, and Wireless examples (ZigBee and Thread).

 

Regards,

Ricardo

Best Regards,
Ricardo
0 项奖励
回复