platformio / platform-nordicnrf51

Nordic nRF51: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/nordicnrf51
Apache License 2.0
20 stars 25 forks source link

LoRaWAN compilation fails #34

Open danielkucera opened 4 years ago

danielkucera commented 4 years ago

I know it is an old release but for some reasons (hw compatibility) I cannot go higher. Do you happen to have an idea how to fix this error?

In file included from /home/danman/.platformio/packages/framework-mbed@5.51001.181029/features/lorawan/lorastack/mac/LoRaMac.h:52:0,
                 from /home/danman/.platformio/packages/framework-mbed@5.51001.181029/features/lorawan/LoRaWANStack.h:49,
                 from /home/danman/.platformio/packages/framework-mbed@5.51001.181029/features/lorawan/LoRaWANInterface.h:23,
                 from /home/danman/.platformio/packages/framework-mbed@5.51001.181029/features/lorawan/LoRaWANInterface.cpp:22:
/home/danman/.platformio/packages/framework-mbed@5.51001.181029/features/lorawan/lorastack/mac/LoRaMacCrypto.h:33:10: fatal error: mbedtls/aes.h: No such file or directory
 #include "mbedtls/aes.h"
          ^~~~~~~~~~~~~~~
compilation terminated.
Dependency Graph
|-- <mbed-mbedtls>
|-- <mbed-lorawan>
|   |-- <mbed-mbed-trace>
|   |   |-- <mbed-nanostack-libservice>
|-- <mbed-events>
|-- <mbed-semtech-lora-rf-drivers>
|   |-- <mbed-lorawan>
|   |   |-- <mbed-mbed-trace>
|   |   |   |-- <mbed-nanostack-libservice>
|-- <mbed-FEATURE_BLE>
danielkucera commented 3 years ago

This fixed the issue:

build_flags =
    -I/home/danman/.platformio/packages/framework-mbed@5.51001.181029/features/mbedtls/inc
    -I/home/danman/.platformio/packages/framework-mbed@5.51001.181029/features/mbedtls

Shouldn't be these paths added automatically?