using clock() function time.h in BeyondStudio

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

using clock() function time.h in BeyondStudio

1,092 Views
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 ?

Tags (1)
0 Kudos
Reply
1 Reply

1,072 Views
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 Kudos
Reply