Getting error while compiling mbedtls code for K82 processor using KDS.
The error is as follows,
../../../../../../../middleware/mbedtls_2.1.2/port/ksdk/ksdk_mbedtls_config.h:38:34: fatal error: fsl_device_registers.h: No such file or directory
#include "fsl_device_registers.h"
^
compilation terminated.
Invoking: Cross ARM C Compiler
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -Wall -g -DDEBUG -DCPU_MK82FN256VDC15 -DFREESCALE_KSDK_BM -DMBEDTLS_CONFIG_FILE=\"ksdk_mbedtls_config.h\" -DFRDM_K82F -DFREEDOM -I../../../../../../../CMSIS/Include -I../../../../../../../devices -I../../../../../../../devices/MK82F25615/drivers -I../.. -I../../../../../../../middleware/mmcau_2.0.0 -I../../../../../../../devices/MK82F25615/utilities -I../../../../../../../middleware/mbedtls_2.1.2/include -I../../../../../../../middleware/mbedtls_2.1.2/port/ksdk -I../../../../.. -I../../../../../../../devices/MK82F25615 -std=gnu99 -fomit-frame-pointer -fno-common -ffreestanding -fno-builtin -mapcs -MMD -MP -MF"mbedTLS/mbedTLS_source/havege.d" -MT"mbedTLS/mbedTLS_source/havege.o" -c -o "mbedTLS/mbedTLS_source/havege.o" "C:/Freescale/mbedTLS_for_Kinetix_SDK_2.0_win/middleware/mbedtls_2.1.2/library/havege.c"
mbedTLS/mbedTLS_source/subdir.mk:373: recipe for target 'mbedTLS/mbedTLS_source/entropy_poll.o' failed
make: *** [mbedTLS/mbedTLS_source/entropy_poll.o] Error 1
How to port mbedTLS_for_Kinetix_SDK_2.0 in KDS 3.2
Hi Mohammad,
Thanks for your response, if you are migrating a project to KDS please make sure you add the same include paths as the original project, this can be done in the project properties:
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
Hi Mohammad,
Do you have a compiler include path pointing to the folder where the file fsl_device_registers.h is located? Are you using KDS 3.2?
Thanks in advance!
Best Regards,
Carlos Mendoza
Technical Support Engineer