Compiling errors with e2studio

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' failed
C:\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:

Project Summary

Board:   EK-RA6M3
Device:  R7FA6M3AH3CFC
Toolchain:   GCC ARM Embedded
Toolchain Version:   9.2.1.20191025
FSP Version:   2.0.0

Selected software components

    Arm PSA Crypto Implementation   v3.1.0+renesas.1
    Arm mbed TLS   v3.0.0+renesas.0
    Arm CMSIS Version 5 - Core (M)   v5.7.0
    Board support package for R7FA6M3AH3CFC   v2.0.0
    Board support package for RA6M3   v2.0.0
    Board support package for RA6M3 - FSP Data   v2.0.0
    Board Support Package Common Files   v2.0.0
    Data Transfer Controller   v2.0.0
    Flash Memory High Performance   v2.0.0
    I/O Port   v2.0.0
    Secure Cryptography Engine on RA6   v2.0.0
    SCI I2C Master Interface   v2.0.0
    SCI UART   v2.0.0
    USB Basic   v2.0.0
    USB Peripheral Communications Device Class   v2.0.0
    AWS PCKS11 PAL   v2.0.0
    Modified mbedTLS   v2.0.0
    MbedCrypto H/W Acceleration   v2.0.0
    WiFi Onchip Silex   v2.0.0
    RA6M3-EK Board Support Files   v2.0.0
    FreeRTOS   v2.0.0
    FreeRTOS - Memory Management - Heap 4   v2.0.0
    AWS Demo dev_mode_key_provisioning   v2.0.0
    Secure Socket TLS Support   v2.0.0
    AWS IoT Common   v2.0.0
    AWS Client Credentials   v2.0.0
    AWS c_sdk MQTT   v2.0.0
    AWS c_sdk Standard Taskpool   v2.0.0
    AWS Platform IoT SDK Initialization   v2.0.0
    AWS Platform Network Abstraction   v2.0.0
    AWS Platform Threads Abstraction   v2.0.0
    AWS Platform Clock Abstraction   v2.0.0
    AWS c_sdk Logging   v2.0.0
    AWS Secure Sockets Common   v2.0.0
    AWS TLS   v2.0.0
    AWS Crypto   v2.0.0
    AWS PKCS11 to mbedTLS   v2.0.0
Parents Reply Children
No Data