-
-
Notifications
You must be signed in to change notification settings - Fork 665
AdaFruit LoRa Feather M0 - ARM related Issue? #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Ah, completely forgot about this one. The printf implementation is AVR-specific right now. Could you try the https://github.com/matthijskooijman/arduino-lmic/tree/non-avr-printf branch (or better, cherry-pick the top commit of that branch onto master and try that)? |
I'm not having this issue. I'm using the master branch of arduino-lmic, and version 1.6.11 of the Arduino IDE |
I was getting this error and ended up deleting the LMIC library from my machine and reinstalling the version demarked by |
I did have this issue, and pulled in the changes from the non-avr-printf branch. At first it appeared it wasn't working, but it turns out that stdout is in buffered mode, and the buffer is quite large. I modified the code slightly to disable buffering and to make use of the ignored parameter in uart_putchar(). This also eliminates the need for calls to fflush() in user code. I also added including stdio.h in src/lmic/radio.cpp and src/lmic/lmic.cpp to fix the warnings when compiling with PlatformIO.
|
I copied the changes from the non-avr-printf branch. When compiling for an esp8266 nodemcuv2 I get these error messages when I change. Google doesn't give me good answers yet.
It is already been referenced here esp8266/Arduino#925 (comment) |
Overwriting code in hal.cpp under |
Fix matthijskooijman#38: Properly initialize NSS, RXTX, RST pins
I managed to fix this issue thanks to Matthijs Kooijman, by adding the latest commit of the non-avr-printf branch, with the minor modification that char needs to be converted to unsigned char when calling the LMIC_PRINTF_TO
|
I'm trying to get the AdaFruit M0 LoRa feather working with LoRaWAN with OTAA. While compiling the example I get this error. It seems to be ARM Cortex M0 related, but I haven't found a solution yet. Any ideas?
Product : https://www.adafruit.com/product/3178
[ ARDUINO ERROR LOG]
Build options changed, rebuilding all
C:\Users\Jort-Signa\Documents\Arduino\libraries\IBM_LMIC_framework\src\hal\hal.cpp: In function 'void hal_printf_init()':
C:\Users\Jort-Signa\Documents\Arduino\libraries\IBM_LMIC_framework\src\hal\hal.cpp:223:54: error: '_FDEV_SETUP_WRITE' was not declared in this scope
C:\Users\Jort-Signa\Documents\Arduino\libraries\IBM_LMIC_framework\src\hal\hal.cpp:223:71: error: 'fdev_setup_stream' was not declared in this scope
exit status 1
Error compiling for board Adafruit Feather M0 (Native USB Port).
[/ARDUINO ERROR LOG]
The text was updated successfully, but these errors were encountered: