STM32Cube MCU Full FW Package for the STM32WL series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on boards provided by ST (Nucleo boards)
Other
107
stars
54
forks
source link
Compilation error with USE_LRWAN_1_1_X_CRYPTO set to 1 #54
LoRa-E5-STM32WLE5JC
GNU Arm Embedded Toolchain 10.3-2021.10
Bug:
USE_LRWAN_1_1_X_CRYPTO is not recognized in LoRaMacTypes.h and evaluates to zero. eKeyIdentifier enum values are always the same. This is not the only error when I set USE_LRWAN_1_1_X_CRYPTO
Setting #define USE_LRWAN_1_1_X_CRYPTO in LoRaMacCrytpo.h to 1 results in following error:
In file included from Middlewares/Third_Party/LoRaWAN/Crypto/soft-se.c:55:
LoRaWAN/App/se-identity.h:175:25: error: 'J_S_INT_KEY' undeclared here (not in a function)
175 | .KeyID = J_S_INT_KEY, \
| ^~~~~~~~~~~
LoRaWAN/App/se-identity.h:383:9: note: in expansion of macro 'SESSION_KEYS_LIST'
383 | SESSION_KEYS_LIST \
| ^~~~~~~~~~~~~~~~~
Middlewares/Third_Party/LoRaWAN/Crypto/soft-se.c:118:14: note: in expansion of macro 'SOFT_SE_KEY_LIST'
118 | .KeyList = SOFT_SE_KEY_LIST
| ^~~~~~~~~~~~~~~~
LoRaWAN/App/se-identity.h:184:25: error: 'J_S_ENC_KEY' undeclared here (not in a function)
184 | .KeyID = J_S_ENC_KEY, \
| ^~~~~~~~~~~
LoRaWAN/App/se-identity.h:383:9: note: in expansion of macro 'SESSION_KEYS_LIST'
383 | SESSION_KEYS_LIST \
| ^~~~~~~~~~~~~~~~~
Middlewares/Third_Party/LoRaWAN/Crypto/soft-se.c:118:14: note: in expansion of macro 'SOFT_SE_KEY_LIST'
118 | .KeyList = SOFT_SE_KEY_LIST
| ^~~~~~~~~~~~~~~~
LoRaWAN/App/se-identity.h:193:25: error: 'F_NWK_S_INT_KEY' undeclared here (not in a function)
193 | .KeyID = F_NWK_S_INT_KEY, \
| ^~~~~~~~~~~~~~~
LoRaWAN/App/se-identity.h:383:9: note: in expansion of macro 'SESSION_KEYS_LIST'
383 | SESSION_KEYS_LIST \
| ^~~~~~~~~~~~~~~~~
Middlewares/Third_Party/LoRaWAN/Crypto/soft-se.c:118:14: note: in expansion of macro 'SOFT_SE_KEY_LIST'
118 | .KeyList = SOFT_SE_KEY_LIST
| ^~~~~~~~~~~~~~~~
LoRaWAN/App/se-identity.h:201:25: error: 'S_NWK_S_INT_KEY' undeclared here (not in a function)
201 | .KeyID = S_NWK_S_INT_KEY, \
| ^~~~~~~~~~~~~~~
LoRaWAN/App/se-identity.h:383:9: note: in expansion of macro 'SESSION_KEYS_LIST'
383 | SESSION_KEYS_LIST \
| ^~~~~~~~~~~~~~~~~
Middlewares/Third_Party/LoRaWAN/Crypto/soft-se.c:118:14: note: in expansion of macro 'SOFT_SE_KEY_LIST'
118 | .KeyList = SOFT_SE_KEY_LIST
| ^~~~~~~~~~~~~~~~
LoRaWAN/App/se-identity.h:210:25: error: 'NWK_S_ENC_KEY' undeclared here (not in a function); did you mean 'NWK_S_KEY'?
210 | .KeyID = NWK_S_ENC_KEY, \
| ^~~~~~~~~~~~~
LoRaWAN/App/se-identity.h:383:9: note: in expansion of macro 'SESSION_KEYS_LIST'
383 | SESSION_KEYS_LIST \
| ^~~~~~~~~~~~~~~~~
Middlewares/Third_Party/LoRaWAN/Crypto/soft-se.c:118:14: note: in expansion of macro 'SOFT_SE_KEY_LIST'
118 | .KeyList = SOFT_SE_KEY_LIST
| ^~~~~~~~~~~~~~~~
Fix:
Remove #if USE_LRWAN_1_1_X_CRYPTO statements from the eKeyIdentifier enum.
Setup:
LoRa-E5-STM32WLE5JC GNU Arm Embedded Toolchain 10.3-2021.10
Bug:
USE_LRWAN_1_1_X_CRYPTO is not recognized in LoRaMacTypes.h and evaluates to zero. eKeyIdentifier enum values are always the same. This is not the only error when I set USE_LRWAN_1_1_X_CRYPTO Setting
#define USE_LRWAN_1_1_X_CRYPTO
in LoRaMacCrytpo.h to 1 results in following error:Fix: Remove #if USE_LRWAN_1_1_X_CRYPTO statements from the eKeyIdentifier enum.