Hello,
I am attempting to use ECDSA in my code. I am starting from the sample code in ti/drivers/ECDSA.h. However I am getting a linker error when making a call to ECDSA_sign():
"Error[Li006]: duplicate definitions for "ECDSA_sign"; in "C:\BSN\Sardeen\sardeen_ble_cc2642\Sardeen_Ble_LaunchPad_Debug\Obj\ECDSACC26X2.o", and "C:\BSN\Sardeen\sardeen_ble_cc2642\BLE_Stack\source\ti\ble5stack\libraries\cc26x2r1\ble_r2.symbols"
I am using IAR for ARM 8.32.2 and SDK 3.40.00.02. I saw on the forums that someone had a similar problem 2 years ago and that it would be fixed in a future version of the SDK: https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/t/669469. I used the solution mentioned there (i.e. I renamed ECDSA_sign to ECDSA_sign_mod in ECDSA.h and ECDSACC26X2.c, and I added ECDSACC26X2.c to my project).
My questions are:
- Has this linker issue mentioned in the other post been fixed in SDK 3.40.00.02?
- If the error has not yet been fixed, should I be using the same workaround presented in the other post (i.e. changing the ECDSA_sign function in ECDSACC26X2.c and ECDSA.h to ECDSA_sign_mod and calling ECDSA_sign_mod)?
Thanks,
Keron