NRF8001 And the Teensy 4.0 Not Working. Problems with PROGMEM and EIMSK

polishdude20

New member
Hello! I'm using a custom NRF8001 board based off of the discontinued Adafruit NRF8001 board. I've been able to successfully build and upload code to make it work with my Arduino boards but I can't seem to get it to work with the Teensy 4.0

I've read other forum posts of users getting it working with their Teensy 3.0 and 3.1's using Paul's modified library changes but it doesn't seem to work on the Teensy 4.0

When building, I get these errors:

Code:
src\Adafruit_nRF8001-master\Adafruit_BLE_UART.cpp: In member function 'size_t Adafruit_BLE_UART::print(const __FlashStringHelper*)':
src\Adafruit_nRF8001-master\Adafruit_BLE_UART.cpp:211:23: error: section attribute cannot be specified for local variables
   const char PROGMEM *p = (const char PROGMEM *)ifsh;
                       ^
src\Adafruit_nRF8001-master\Adafruit_BLE_UART.cpp:211:47: warning: 'section' attribute does not apply to types [-Wattributes]
   const char PROGMEM *p = (const char PROGMEM *)ifsh;
                                               ^
*** [.pio\build\teensy40\src\Adafruit_nRF8001-master\Adafruit_BLE_UART.cpp.o] Error 1
src\main.cpp: In function 'void buzzerIdle()':
src\main.cpp:448:23: warning: statement has no effect [-Wunused-value]
       idleBuzzerState == true;
                       ^
src\main.cpp:453:23: warning: statement has no effect [-Wunused-value]
       idleBuzzerState == false;
                       ^
src\main.cpp: In function 'void updateAltimeter()':
src\main.cpp:641:7: warning: statement has no effect [-Wunused-value]
   bmp.temperature;
       ^
src\main.cpp:642:7: warning: statement has no effect [-Wunused-value]
   bmp.pressure;
       ^
src\utility\hal_aci_tl.cpp: In function 'void toggle_eimsk(bool)':
src\utility\hal_aci_tl.cpp:205:7: error: 'EIMSK' was not declared in this scope
       EIMSK |= (1 << HAL_IO_RADIO_IRQ);
       ^
src\utility\hal_aci_tl.cpp:207:7: error: 'EIMSK' was not declared in this scope
       EIMSK &= ~(1 << HAL_IO_RADIO_IRQ);
       ^
*** [.pio\build\teensy40\src\utility\hal_aci_tl.cpp.o] Error 1

I'm not sure what to do. I heard that it's recommended to not use PROGMEM on the Teensy 4.0? Do I just remove the word "PROGMEM" wherever it appears?
 
Back
Top