This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Dear TI support,
I'm using processor_sdk_rtos_am437x_4_00_00_04 with idkAM437x board.
I'm trying to combine two examples.
1.) I generate example UART_BasicExample_idkAM437x_armExampleProject.
2.)Then i put in .cfg file (after load 'ti.board'):
var GPIOPackage = xdc.loadPackage('ti.drv.gpio');
GPIOPackage.Settings.socType = socType;
GPIOPackage.Settings.enableProfiling = true;
3.) Then in project properties add in "Directories" tab "${PDK_INSTALL_PATH}/ti/drv/gpio"
4.) Then i copy from C:\ti\pdk_am437x_1_0_7\packages\ti\board\diag\led\build\idkAM437x GPIO_LED_config.c because GPIO_v1_config was undefined...
5.) Now I get errors:
- undefined reference to `__cyg_profile_func_enter'
- undefined reference to `__cyg_profile_func_exit'
Console output:
makefile:148: recipe for target 'UART_BasicExample_idkAM437x_armExampleProject.out' failed
C:\ti\pdk_am437x_1_0_7\packages\ti\drv\gpio\lib\am437x\a9\release\ti.drv.gpio.profiling.aa9fg(GPIO_drv.oa9fg): In function `GPIO_init':
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:88: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:88: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:91: undefined reference to `__cyg_profile_func_exit'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:91: undefined reference to `__cyg_profile_func_exit'
C:\ti\pdk_am437x_1_0_7\packages\ti\drv\gpio\lib\am437x\a9\release\ti.drv.gpio.profiling.aa9fg(GPIO_drv.oa9fg): In function `GPIO_setCallback':
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:116: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:116: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:119: undefined reference to `__cyg_profile_func_exit'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:119: undefined reference to `__cyg_profile_func_exit'
C:\ti\pdk_am437x_1_0_7\packages\ti\drv\gpio\lib\am437x\a9\release\ti.drv.gpio.profiling.aa9fg(GPIO_drv.oa9fg): In function `GPIO_write':
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:149: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:149: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:152: undefined reference to `__cyg_profile_func_exit'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/GPIO_drv.c:152: undefined reference to `__cyg_profile_func_exit'
C:\ti\pdk_am437x_1_0_7\packages\ti\drv\gpio\lib\am437x\a9\release\ti.drv.gpio.profiling.aa9fg(GPIO_v1.oa9fg): In function `getPinNumber':
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:116: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:116: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:125: undefined reference to `__cyg_profile_func_exit'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:125: undefined reference to `__cyg_profile_func_exit'
C:\ti\pdk_am437x_1_0_7\packages\ti\drv\gpio\lib\am437x\a9\release\ti.drv.gpio.profiling.aa9fg(GPIO_v1.oa9fg): In function `getGpioIntIndex':
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:133: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:133: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:135: undefined reference to `__cyg_profile_func_exit'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:135: undefined reference to `__cyg_profile_func_exit'
C:\ti\pdk_am437x_1_0_7\packages\ti\drv\gpio\lib\am437x\a9\release\ti.drv.gpio.profiling.aa9fg(GPIO_v1.oa9fg): In function `GPIO_clearInt_v1':
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:143: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:143: undefined reference to `__cyg_profile_func_enter'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:162: undefined reference to `__cyg_profile_func_exit'
C:\ti\PDK_AM~1\packages\ti\drv\gpio/src/v1/GPIO_v1.c:162: undefined reference to `__cyg_profile_func_exit'
I know that this error are related with "-finstrument-functions" flag but don't know how to used/solve error.
In other GPIO_LedBlink examples this flag is used in projects. If i try to used in UART example it fails with more errors.
Can you direct me what i need to change?
THANKS!
Best Regards,
Mare
Ok... I figure out...
in .cfg :
/* Load the gpio package */
var GPIOPackage = xdc.loadPackage('ti.drv.gpio');
GPIOPackage.Settings.socType = socType;
GPIOPackage.Settings.enableProfiling = true;
I disable Profiling:
GPIOPackage.Settings.enableProfiling = false;
but any way.... for further progress I hope someone will answer to my previous post.