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.

CC1310: Tried to disable SECURITY in simplelink_cc13x0_sdk_2_30_00_20, compiler issue.

Part Number: CC1310

Hi, 

I followed the doc and tried to disable the SECURITY, met below compiler issue, please suggest how to fix it. thanks.

BTW, My test project is  collector_cc1350lp. 

My steps:

C:/ti/simplelink_cc13x0_sdk_2_30_00_20/docs/ti154stack/html/ti154stack/configuring-stack.html

1.undef the FEATURE_MAC_SECURITY in features.h

2.Select the linker File Search Path option.

3.Modify to include the maclib_nosecure.a instead of maclib_secure.a library file

compiler reported as below:

in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 186 and:
"fhObject_t[struct _fhObject
fhEnabled off: 0 (unsigned char)
pFhResetFn off: 32 (fhResetFn_t)
pFhStartFn off: 64 (fhStartFn_t)
pFhStartBsFn off: 96 (fhStartBsFn_t)
pFhStopAsyncFn off:128 (fhStopAsyncFn_t)
pFhSendDataFn off:160 (fhSendDataFn_t)
pFhGetIeLenFn off:192 (fhGetIeLenFn_t)
pFhGenIeFn off:224 (fhGenIeFn_t)
pFhParsePieFn off:256 (fhParsePieFn_t)
pFhExtractHieFn off:288 (fhExtractHieFn_t)
pFhExtractPieFn off:320 (fhExtractPieFn_t)
pFhParseHieFn off:352 (fhParseHieFn_t)
pFhResetPibFn off:384 (fhResetPibFn_t)
pFhSetPibFn off:416 (fhSetPibFn_t)
pFhGetPibFn off:448 (fhGetPibFn_t)
pFhGetPibLenFn off:480 (fhGetPibLenFn_t)
pFhGetTxParamsFnoff:512 (fhGetTxParamsFn_t)
pFhCompleteTxCbFnoff:544 (fhCompleteTxCbFn_t)
pFhCompleteRxCbFnoff:576 (fhCompleteRxCbFn_t)
pFhSetStateCbFn off:608 (fhStateCbFn_t)
pFhAddDeviceCB off:640 (fhAddDeviceCB)
pFhDelDeviceCB off:672 (fhDelDeviceCB)
pFhGetTxChHopFn off:704 (fhGetTxChHopFn_t)
pFhGetRemDTFn off:736 (fhGetRemDTFn_t)
pFhUpdateCCA off:768 (fhUpdateCCA)
pFhGetBitCount off:800 (fhGetBitCount_t)
pFhBcTimerEvent off:832 (fhBcTimerEvt_t)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 691)
error: symbol "macExecute" redeclared with incompatible type:
"void(macEvent_t *)"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/high_level/mac_main.h"
at line 396 and:
"void(macEvent_t *)"
in
"C:/ti/simplelink_cc13x0_sdk_2_30_00_20/source/ti/ti154stack/high_level/mac_
main.h" at line 427)
error: symbol "macBeaconDeviceAction" redeclared with incompatible type:
"macAction_t[4][void (*)(macEvent_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 51 and:
"macAction_t[4][void (*)(macEvent_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 81)
error: symbol "macDataRxBeaconCritical" redeclared with incompatible type:
"macRxBeaconCritical_t[void (*)(macRx_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 96 and:
"macRxBeaconCritical_t[void (*)(macRx_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 227)
error: symbol "MAC_CbackEvent" redeclared with incompatible type:
"void(macCbackEvent_t *)"
in "/home/vagrant/script_bld_dir/components/lprf-timac-2/inc/mac_api.h" at
line 2142 and:
"void(macCbackEvent_t *)"
in "../Application/MAC/StartUp/macstack.c" at line 462)
error: symbol "macCoordAction1" redeclared with incompatible type:
"macAction_t[2][void (*)(macEvent_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 61 and:
"macAction_t[2][void (*)(macEvent_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 114)
error: symbol "macCoordAction2" redeclared with incompatible type:
"macAction_t[7][void (*)(macEvent_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 64 and:
"macAction_t[7][void (*)(macEvent_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 117)
error: symbol "macCoordAction3" redeclared with incompatible type:
"macAction_t[4][void (*)(macEvent_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 67 and:
"macAction_t[4][void (*)(macEvent_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 120)
error: symbol "macDataTxIndirect" redeclared with incompatible type:
"macDataTxFcn_t[void (*)(macTx_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 92 and:
"macDataTxFcn_t[void (*)(macTx_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 223)
error: symbol "macDataRequeueIndirect" redeclared with incompatible type:
"macDataTxFcn_t[void (*)(macTx_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 93 and:
"macDataTxFcn_t[void (*)(macTx_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 224)
error: symbol "macDataSetSched" redeclared with incompatible type:
"macDataTxFcn_t[void (*)(macTx_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 102 and:
"macDataTxFcn_t[void (*)(macTx_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 233)
error: symbol "macDataBeaconRequeue" redeclared with incompatible type:
"macDataTxFcn_t[void (*)(macTx_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 111 and:
"macDataTxFcn_t[void (*)(macTx_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 242)
error: symbol "macDeviceAction1" redeclared with incompatible type:
"macAction_t[14][void (*)(macEvent_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 116 and:
"macAction_t[14][void (*)(macEvent_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 248)
error: symbol "macDeviceAction2" redeclared with incompatible type:
"macAction_t[5][void (*)(macEvent_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 119 and:
"macAction_t[5][void (*)(macEvent_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 251)
error: symbol "macCommStatusInd" redeclared with incompatible type:
"void(macEvent_t *)"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/high_level/mac_mgmt.h"
at line 215 and:
"void(macEvent_t *)"
in
"C:/ti/simplelink_cc13x0_sdk_2_30_00_20/source/ti/ti154stack/high_level/mac_
mgmt.h" at line 246)
error: symbol "macMgmtAction1" redeclared with incompatible type:
"macAction_t[10][void (*)(macEvent_t *)]"

>> Compilation failure

>> Compilation failure

>> Compilation failure
makefile:217: recipe for target 'collector_cc1350lp.out' failed
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 171 and:
"macAction_t[10][void (*)(macEvent_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 676)
error: symbol "macMgmtAction2" redeclared with incompatible type:
"macAction_t[5][void (*)(macEvent_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 174 and:
"macAction_t[5][void (*)(macEvent_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 679)
error: symbol "macScanAction" redeclared with incompatible type:
"macAction_t[6][void (*)(macEvent_t *)]"
in
"/home/vagrant/script_bld_dir/components/lprf-timac-2/rom/hmac_map_direct.h"
at line 223 and:
"macAction_t[6][void (*)(macEvent_t *)]"
in "../Application/MAC/HighLevel/hmac_global.c" at line 982)
fatal error #10192: Failed linktime optimization
gmake[1]: *** [collector_cc1350lp.out] Error 1
gmake: *** [all] Error 2
makefile:213: recipe for target 'all' failed

.

  • Hi,

    I just tested this and had no problem, my project compiled with no issues. Make sure that you have actually undefined "FEATURE_MAC_SECURITY" I did see a similar error as yours if I do not undefine FEATURE_MAC_SECURITY