Hello,
It is the first time that I use the e2studio to build my first test project by following a Renesas example for RA6M3.
But it got some link errors with the mbedtls library as:
c:/program files (x86)/gnu tools arm embedded/9 2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: ./ra/arm/mbed-crypto/library/psa_crypto.o: in function `mbedtls_psa_crypto_free':makefile:95: recipe for target 'MyTestPrj.elf' failedC:\Users\user\e2_studio\workspace\MyTestPrj\Debug/../ra/arm/mbed-crypto/library/psa_crypto.c:5772: undefined reference to `mbedtls_ctr_drbg_free'c:/program files (x86)/gnu tools arm embedded/9 2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: ./ra/arm/mbed-crypto/library/psa_crypto.o: in function `psa_crypto_init':C:\Users\user\e2_studio\workspace\MyTestPrj\Debug/../ra/arm/mbed-crypto/library/psa_crypto.c:5839: undefined reference to `mbedtls_ctr_drbg_init'c:/program files (x86)/gnu tools arm embedded/9 2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\user\e2_studio\workspace\MyTestPrj\Debug/../ra/arm/mbed-crypto/library/psa_crypto.c:5841: undefined reference to `mbedtls_ctr_drbg_seed'collect2.exe: error: ld returned 1 exit status
It sounds there should be some options to enable these two functions, but I did not enable. Any ideas for these errors? Thanks.
I also found I selected the FSP 1.1.0, but the project uses FSP2.0.0.
Following is my project summary:
Hi HenryXin,
How's this issue? Are you still experiencing this or you've already solved it?
JBRenesasRulz Forum Moderator
https://renesasrulz.com/https://academy.renesas.com/https://en-us.knowledgebase.renesas.com/
Hi JB,
Luckily I had the example package, which can be compiled.
I compared the configuration files and found the actual FSP used is V1.1.0(even the e2studo shows as
), the example project is using V2.0.0.
I will recreate the project to use V2.0.0 and check whether it works.
Thanks,
Henry
Hello Henry,
Have you succeeded with your problem? Has changing to the V2.0.0 helped?
Kind regards,
Sergey Sokol,
RenesasRulz Moderator
renesasrulz.com/academy.renesas.com/en-us.knowledgebase.renesas.com/