MediaTek-Labs / Arduino-Add-On-for-LinkIt-SDK

Arduino board support package for LinkIt 7697
https://docs.labs.mediatek.com/resource/linkit7697-arduino/en
34 stars 33 forks source link

Undefined reference to `mbedtls_ecp_curve_info_from_name' function #114

Open sc0Vu opened 5 years ago

sc0Vu commented 5 years ago

Intro

I try to make my own library on linkit to connect to network. The library worked good if I compiled with gcc (link to installed mbedtls). But I couldn't compile with Arduino-Add-On-for-LinkIt-SDK.

Reproduce Steps

  1. make lib including mbedtls/ecp.h
  2. call mbedtls_ecp_curve_info_from_name
  3. you'll see the result

Error & Expected Results

collect2: error: ld returned 1 exit status
exit status 1
Error compiling for board LinkIt 7697.

Environment

sc0Vu commented 5 years ago

It looks like Linkit SDK in arduino compiled mbedtls with config-mtk-basic.h which didn't define MBEDTLS_ECP_C.

How could I change config and recompile the Linkit SDK?

Update: After I change config and recompile, reinstall this library, it didn't work.

Error message showed in arduino:

.............arm-none-eabi/bin/ld warning: cannot find entry symbol Reset_Handler; defaulting to 0000000010079000