I just tried this code and compilation fail.
#define MY_GATEWAY_SERIAL
#include <MySensors.h>
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Log:
Processing nrf52_dk (platform: nordicnrf52; board: nrf52_dk; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/nordicnrf52/nrf52_dk.html
PLATFORM: Nordic nRF52 4.4.0 > Nordic nRF52-DK
HARDWARE: NRF52832 64MHz, 64KB RAM, 512KB Flash
DEBUG: Current (jlink) On-board (cmsis-dap, jlink) External (blackmagic, stlink)
PACKAGES:
- framework-arduinonordicnrf5 1.600.190830 (6.0)
- tool-sreccat 1.164.0 (1.64)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
LibraryManager: Installing id=548
Using cache: C:\Users\Ikes\.platformio\.cache\08\6b3d0755f5ced94725e5025051350d08
MySensors @ 2.3.2 has been successfully installed!
Found 37 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <MySensors> 2.3.2
| |-- <Time> 1.6
| |-- <SPI> 1.0
| |-- <Wire> 1.0
Building in release mode
Compiling .pio\build\nrf52_dk\src\main.cpp.o
Compiling .pio\build\nrf52_dk\lib45d\Time_ID44\DateStrings.cpp.o
Compiling .pio\build\nrf52_dk\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\nrf52_dk\FrameworkArduino\Uart.cpp.o
In file included from C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/Arduino.h:17:0,
from C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp:12:
C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp: In function 'char* monthStr(uint8_t)':
C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/avr/pgmspace.h:105:49: error: 'const void*' is not a pointer-to-object type
#define pgm_read_ptr(addr) (*(const void *)(addr))
^
C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/avr/pgmspace.h:63:45: note: in definition of macro 'strcpy_P'
#define strcpy_P(dest, src) strcpy((dest), (src))
^~~
C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp:72:29: note: in expansion of macro 'pgm_read_ptr'
strcpy_P(buffer, (PGM_P)pgm_read_ptr(&(monthNames_P[month])));
^~~~~~~~~~~~
C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp: In function 'char* dayStr(uint8_t)':
C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/avr/pgmspace.h:105:49: error: 'const void*' is not a pointer-to-object type
#define pgm_read_ptr(addr) (*(const void *)(addr))
^
C:\users\ikes\.platformio\packages\framework-arduinonordicnrf5\cores\nRF5/avr/pgmspace.h:63:45: note: in definition of macro 'strcpy_P'
#define strcpy_P(dest, src) strcpy((dest), (src))
^~~
C:\users\ikes\.platformio\lib\Time_ID44\DateStrings.cpp:86:28: note: in expansion of macro 'pgm_read_ptr'
strcpy_P(buffer, (PGM_P)pgm_read_ptr(&(dayNames_P[day])));
^~~~~~~~~~~~
In file included from .pio\libdeps\nrf52_dk\MySensors/MySensors.h:74:0,
from src\main.cpp:7:
.pio\libdeps\nrf52_dk\MySensors/hal/architecture/NRF5/MyHwNRF5.cpp: In function 'uint16_t hwCPUVoltage()':
.pio\libdeps\nrf52_dk\MySensors/hal/architecture/NRF5/MyHwNRF5.cpp:506:16: warning: 'sample' is used uninitialized in this function [-Wuninitialized]
return (sample*3600)/255;
~~~~~~~^~~~~~
*** [.pio\build\nrf52_dk\lib45d\Time_ID44\DateStrings.cpp.o] Error 1
=========================================================================================== [FAILED] Took 5.57 seconds ===========================================================================================