- Eurotronics Spirit Zwave Plus radiator thermostats https://products.z-wavealliance.org/products/2543
- Arduino OpenTherm Controller http://ihormelnyk.com/arduino_opentherm_controller
- OpenTherm library http://ihormelnyk.com/opentherm_library
- AutoPID library http://ryandowning.net/AutoPID/
- z-uno https://z-uno.z-wave.me/
The sketch:
Code: Select all
#include "OpenTherm.h"
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Code: Select all
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\user\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\user\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries U:\Mijn Documenten\Arduino\libraries -fqbn=Z-Uno:zw8051:zuno:Frequency=Eu,Security=Off,MuliCommand=On,LogOutput=UART0,NVMClean=Off -ide-version=10808 -build-path C:\Users\user\AppData\Local\Temp\arduino_build_190951 -warnings=default -build-cache C:\Users\user\AppData\Local\Temp\arduino_cache_709302 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.zuno_toolchain.path=C:\Users\user\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70 -prefs=runtime.tools.zuno_toolchain-00.08.70.path=C:\Users\user\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70 -verbose C:\Users\user\AppData\Local\Temp\arduino_modified_sketch_172866\sketch_dec09a.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\user\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\user\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries U:\Mijn Documenten\Arduino\libraries -fqbn=Z-Uno:zw8051:zuno:Frequency=Eu,Security=Off,MuliCommand=On,LogOutput=UART0,NVMClean=Off -ide-version=10808 -build-path C:\Users\user\AppData\Local\Temp\arduino_build_190951 -warnings=default -build-cache C:\Users\user\AppData\Local\Temp\arduino_cache_709302 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.zuno_toolchain.path=C:\Users\user\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70 -prefs=runtime.tools.zuno_toolchain-00.08.70.path=C:\Users\user\AppData\Local\Arduino15\packages\Z-Uno\tools\zuno_toolchain\00.08.70 -verbose C:\Users\user\AppData\Local\Temp\arduino_modified_sketch_172866\sketch_dec09a.ino
Using board 'zuno' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.4
Using core 'zuno' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.4
Detecting libraries used...
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\Z-Uno\\tools\\zuno_toolchain\\00.08.70/zuno_toolchain/compiler" arduino_preproc "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_190951\\sketch\\sketch_dec09a.ino.cpp" -r "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\Z-Uno\\hardware\\zw8051\\2.1.4"
C:\Users\user\AppData\Local\Temp\arduino_build_190951
Found 1.8.x project structure (File:sketch_dec09a.ino.cpp). Converting it...
Generating function prototypes...
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\Z-Uno\\tools\\zuno_toolchain\\00.08.70/zuno_toolchain/compiler" arduino_preproc "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_190951\\sketch\\sketch_dec09a.ino.cpp" -r "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\Z-Uno\\hardware\\zw8051\\2.1.4"
C:\Users\user\AppData\Local\Temp\arduino_build_190951
Found 1.8.x project structure (File:sketch_dec09a.ino.cpp). Converting it...
"C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_190951\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch aan het compileren...
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\Z-Uno\\tools\\zuno_toolchain\\00.08.70/zuno_toolchain/compiler" build "C:\\Users\\user\\AppData\\Local\\Temp\\arduino_build_190951/sketch_dec09a.ino" -r "C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\Z-Uno\\hardware\\zw8051\\2.1.4" -i1_8 -idv 10808
************* Building Arduino Sketch *************
C:\Users\user\AppData\Local\Temp\arduino_build_190951/sketch_dec09a.ino
***************************************************
--- USING a list of libraries from:
C:\Users\user\AppData\Local\Arduino15\packages\Z-Uno\hardware\zw8051\2.1.4\libraries
U:\Mijn Documenten\Arduino\libraries
*** Collecting prototypes...
Preprocessing file: C:\Users\user\AppData\Local\Temp\arduino_build_190951\Custom.c with SDCPP...
Preprocessing file: C:\Users\user\AppData\Local\Temp\arduino_build_190951\Print.cpp with SDCPP...
Compiling C:\Users\user\AppData\Local\Temp\arduino_build_190951\Print_sdcpp_.cpp ...
Preprocessing file: C:\Users\user\AppData\Local\Temp\arduino_build_190951\Stream.cpp with SDCPP...
Compiling C:\Users\user\AppData\Local\Temp\arduino_build_190951\Stream_sdcpp_.cpp ...
Preprocessing file: C:\Users\user\AppData\Local\Temp\arduino_build_190951\HardwareSerial.cpp with SDCPP...
Compiling C:\Users\user\AppData\Local\Temp\arduino_build_190951\HardwareSerial_sdcpp_.cpp ...
Preprocessing file: C:\Users\user\AppData\Local\Temp\arduino_build_190951\HLCore.cpp with SDCPP...
Compiling C:\Users\user\AppData\Local\Temp\arduino_build_190951\HLCore_sdcpp_.cpp ...
Preprocessing file: C:\Users\user\AppData\Local\Temp\arduino_build_190951\sketch_dec09a.cpp with SDCPP...
compilation terminated.
Preprocessor failed!uCxx returned error code:1
exit status 1
processing.app.debug.RunnerException
at cc.arduino.Compiler.lambda$callArduinoBuilder$3(Compiler.java:309)
at processing.app.debug.MessageSiphon.run(MessageSiphon.java:96)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at cc.arduino.Compiler.message(Compiler.java:525)
at cc.arduino.i18n.I18NAwareMessageConsumer.message(I18NAwareMessageConsumer.java:80)
at cc.arduino.MessageConsumerOutputStream.flush(MessageConsumerOutputStream.java:71)
at cc.arduino.MessageConsumerOutputStream.write(MessageConsumerOutputStream.java:54)
at java.io.OutputStream.write(OutputStream.java:75)
at cc.arduino.Compiler.lambda$callArduinoBuilder$3(Compiler.java:307)
... 2 more
I'm new to arduino programming, but I do think I've installed both the Z-uno and the OpenTherm library correctly: I can compile, upload and run sample projects on my z-uno, plus I can compile the OpenTherm library successfully if I select one of my Arduino Uno's as the target hardware. However If I select the Z-Uno as the target hardware, even #including only the opentherm.h crashes the compilation. If I copy the opentherm.h file into the %AppData%\..\Local\Temp\arduino_build_190951\ folder, the preprocessing does succeed and I get a number of other errors that will need to be addressed next (among others missing micros()), but this crash of the tools is keeping me from making any progress. If anyone can help me out in
1 - getting the Aeduino IDE to properly process the opentherm.h file and eventually
2 - porting the opentherm library to Z-Uno,
That would be greatly appreciated.