I would like to use vTaskGetRunTimeStats() function. I did 3 steps:
1. configGENERATE_RUN_TIME_STATS
2. portCONFIGURE_TIMER_FOR_RUN_TIME_STATS()
3. portGET_RUN_TIME_COUNTER_VALUE()
Then i wanted to use vTaskGetRunTimeStats() function. But compiler said me:
[cc] Starting link
[cc] arm-none-eabi-gcc -O0 -nostartfiles -Wl,-Map=SuperSystem.map -mcpu=cortex-m3 -mthumb -LC:CooCoxCoIDEworkspaceSuperSystem -Wl,--gc-sections -Wl,-TC:CooCoxCoIDEworkspaceSuperSystem/arm-gcc-link.ld -g -o SuperSystem.elf ..objstm32f10x_tim.o ..objstartup_stm32f10x_md_vl.o ..objcore_cm3.o ..objsystem_stm32f10x.o ..objDisplayController.o ..objstm32f10x_gpio.o ..objmain.o ..objadsf.o ..objrequiredMethodsFromMain.o ..objtimers.o ..objstm32f10x_rcc.o ..objMotorsController.o ..objstm32f10x_exti.o ..objtasks.o ..objstm32f10x_adc.o ..objalfanumDisplay.o ..objlist.o ..objstm32f10x_flash.o ..objstm32f10x_it.o ..objMeasurementsController.o ..objqueue.o ..objport.o ..objSSBootstrapper.o ..objmisc.o ..objheap_1.o
[cc] sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
[cc] c:/program files (x86)/gnu tools arm embedded/4.6 2012q2/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7-mlibg.a(lib_a-sbrkr.o): In function `_sbrk_r':
[cc] c:/program files (x86)/gnu tools arm embedded/4.6 2012q2/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7-mlibg.a(lib_a-abort.o): In function `abort':
[cc] abort.c:(.text.abort+0xa): undefined reference to `_exit'
[cc] c:/program files (x86)/gnu tools arm embedded/4.6 2012q2/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7-mlibg.a(lib_a-signalr.o): In function `_kill_r':
[cc] signalr.c:(.text._kill_r+0xe): undefined reference to `_kill'
[cc] c:/program files (x86)/gnu tools arm embedded/4.6 2012q2/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7-mlibg.a(lib_a-signalr.o): In function `_getpid_r':
[cc] signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid'
[cc] collect2: ld returned 1 exit status
What is: _sbrk ? How to fix it ?This problem is only when i add function vTaskGetRunTimeStats(). If i delete it, it’s all right.
I use CooCox. Best Regards,
Horza.