stm32duino / STM32LoRaWAN

Arduino library to support LoRaWAN communication using the STM32WL series.
https://stm32duino.github.io/STM32LoRaWAN/
Other
37 stars 7 forks source link

unknown type name 'SUBGHZ_HandleTypeDef' #5

Closed Lizethgm closed 1 year ago

Lizethgm commented 1 year ago

Hi, I was trying to compile on version 2.3 of the Generic STM32WL series board "Generic WLE5CCUx" and I got this error:

STM32LoRaWAN.cpp:1113:3: error: 'vcore_debug' was not declared in this scope; did you mean 'core_debug'?

I fix the error changing "vcore_debug" to "core_debug". I created a fork with this fixed #4 . But now when that was fixed appears new errors:

STM32LoRaWAN-main\src\BSP\subghz.h:50:8: error: unknown type name 'SUBGHZ_HandleTypeDef' 50 | extern SUBGHZ_HandleTypeDef hsubghz;

STM32LoRaWAN-main\src\BSP\subghz.c:43:1: error: unknown type name 'SUBGHZ_HandleTypeDef'; did you mean 'UART_HandleTypeDef'? 43 | SUBGHZ_HandleTypeDef hsubghz;

matthijskooijman commented 1 year ago

Hi! I suspect that there might be some definitions missing in https://github.com/stm32duino/Arduino_Core_STM32 for your board. So far, we've only been testing with the Nucleo-WL55JC1 board.

Can you tell me a bit more about your board? Is it an off-the-shelf board (got a link?) or some custom board?

fpistm commented 1 year ago

Hi @Lizethgm

This library is not compatible with 2.3.0 core. It requires some updates available in the main https://github.com/stm32duino/Arduino_Core_STM32 branch. Those updates will be available with the next release 2.4.0.

Fixed by https://github.com/stm32duino/Arduino_Core_STM32/commit/09ff3f67fd8f2d299a0c9bd73eea37da02034740

matthijskooijman commented 1 year ago

Ah, as @fpistm pointed out in #4, the current https://github.com/stm32duino/Arduino_Core_STM32 release is not yet compatible with this library. Maybe you can try with git master from https://github.com/stm32duino/Arduino_Core_STM32 ?

To be honest, we made this repository public with the intention of doing some more testing and updating the documentation next, so it seems you're the first to actually find this library now :-P

fpistm commented 1 year ago

STM32 core v2.40 is released.