Macro Errors
Opened this issue · 2 comments
I'm trying to run the simple uplink example on my STM32WLE5JC Lora E5 Mini board but I get compiling errors relating to some of the macros (screenshots attached). The only changes I made to the original example code were inserting my deveui, appeui, and appkey. I also attached screenshots of the board and library configurations I'm using.
For reference, I followed this guide https://github.com/stm32duino/wiki/wiki/Getting-Started when setting up the STM32 board support for the Arduino IDE and then added the Disk91_LoRaE5-1.1.2.zip file to my library manager successfully.
Am I missing some other step which might be resulting in these errors? Any kind of help would be greatly appreciated. Thanks!
Best,
Jacinto
Thank for reporting this,
This is basically related to the Serial port definitions or potential inclusion missing related to your board.
As I don't have this kind of board available for reproducing and fixing this, I would be happy if you find what's missing and propose a pull request supporting this board on top of the others.
+1 getting the same errors with the standard esp32 dev board, trying to use this library is impossible.
In file included from /private/var/folders/1v/_kql9jss7hxb5h3wp7b06x8h0000gn/T/.arduinoIDE-unsaved2023916-16503-154mukz.1nh4j/sketch_oct16b/sketch_oct16b.ino:2:
/Users/nem/Documents/Arduino/libraries/Disk91_LoRa-E5_library/src/disk91_LoRaE5.h:73:39: error: 'Uart' has not been declared
#define __HWSERIAL_T Uart // type to be used for hardware serial, apprantly different are existing
^~~~
/Users/nem/Documents/Arduino/libraries/Disk91_LoRa-E5_library/src/disk91_LoRaE5.h:201:9: note: in expansion of macro '__HWSERIAL_T'
__HWSERIAL_T * hwSerial = NULL, // for HWSERIAL_CUSTOM, link the associated Serial