Hi @gabbapeople @nkrkv and many thx for helping!
your solution work fine right now, but now I finde out that with the Nano 33 BLE have the same issue during uploading. Uploading with Arduino IDE works fine, just make your changes like descibed.
I have tested two patches now, the first you can upload with Arduino IDE.
The second one I tried to use the ST7735 library but I got that error at Arduino IDE.
Here is the full log:
Begin compiling code for the board Arduino Nano 33 BLE
Using board ‘nano33ble’ from platform in folder: C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4
Using core ‘arduino’ from platform in folder: C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4
Detecting libraries used…
“C:\Users\MDHL\xod\packages\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++” -c -w -g -Os -nostdlib “@C:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/defines.txt” “@C:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/cxxflags.txt” -DARDUINO_ARCH_NRF52840 -mcpu=cortex-m4 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED “-IC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\cores\arduino” “-IC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE” “-IC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\cores\arduino/api/deprecated” “-iprefixC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\cores\arduino” “@C:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/includes.txt” “C:\Users\MDHL\AppData\Local\Temp\arduino-sketch-9194978204E9FF5A01C8B9223E66F4C1\sketch\xod_1594920322038_sketch.ino.cpp” -o nul
Generating function prototypes…
“C:\Users\MDHL\xod\packages\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++” -c -w -g -Os -nostdlib “@C:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/defines.txt” “@C:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/cxxflags.txt” -DARDUINO_ARCH_NRF52840 -mcpu=cortex-m4 -w -x c++ -E -CC -DARDUINO=10607 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED “-IC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\cores\arduino” “-IC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE” “-IC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\cores\arduino/api/deprecated” “-iprefixC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\cores\arduino” “@C:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/includes.txt” “C:\Users\MDHL\AppData\Local\Temp\arduino-sketch-9194978204E9FF5A01C8B9223E66F4C1\sketch\xod_1594920322038_sketch.ino.cpp” -o “C:\Users\MDHL\AppData\Local\Temp\arduino-sketch-9194978204E9FF5A01C8B9223E66F4C1\preproc\ctags_target_for_gcc_minus_e.cpp”
“C:\Users\MDHL\xod\packages\packages\builtin\tools\ctags\5.8-arduino11/ctags” -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives “C:\Users\MDHL\AppData\Local\Temp\arduino-sketch-9194978204E9FF5A01C8B9223E66F4C1\preproc\ctags_target_for_gcc_minus_e.cpp”
Compiling sketch…
“C:\Users\MDHL\xod\packages\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++” -c -w -g -Os -nostdlib “@C:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/defines.txt” “@C:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/cxxflags.txt” -DARDUINO_ARCH_NRF52840 -MMD -mcpu=cortex-m4 -DARDUINO=10607 -DARDUINO_ARDUINO_NANO33BLE -DARDUINO_ARCH_MBED “-IC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\cores\arduino” “-IC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE” “-IC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\cores\arduino/api/deprecated” “-iprefixC:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\cores\arduino” “@C:\Users\MDHL\xod\packages\packages\arduino\hardware\mbed\1.1.4\variants\ARDUINO_NANO33BLE/includes.txt” “C:\Users\MDHL\AppData\Local\Temp\arduino-sketch-9194978204E9FF5A01C8B9223E66F4C1\sketch\xod_1594920322038_sketch.ino.cpp” -o “C:\Users\MDHL\AppData\Local\Temp\arduino-sketch-9194978204E9FF5A01C8B9223E66F4C1\sketch\xod_1594920322038_sketch.ino.cpp.o”
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:491:13: error: reference to ‘HardwareSerial’ is ambiguous
virtual HardwareSerial* toHardwareSerial() {
^~~~~~~~~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:458:7: note: candidates are: class HardwareSerial
class HardwareSerial;
^~~~~~~~~~~~~~
In file included from C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4\cores\arduino/api/ArduinoAPI.h:32:0,
from C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4\cores\arduino/Arduino.h:42,
from C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:18:
C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4\cores\arduino/api/HardwareSerial.h:87:7: note: class arduino::HardwareSerial
class HardwareSerial : public Stream
^~~~~~~~~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino: In member function ‘arduino::Stream* xod::Uart::toStream()’:
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:508:34: error: ‘toHardwareSerial’ was not declared in this scope
Stream* stream = (Stream*) toHardwareSerial();
^~~~~~~~~~~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:508:34: note: suggested alternative: ‘HardwareSerial’
Stream* stream = (Stream*) toHardwareSerial();
^~~~~~~~~~~~~~~~
HardwareSerial
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino: At global scope:
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:516:5: error: reference to ‘HardwareSerial’ is ambiguous
HardwareSerial* _serial;
^~~~~~~~~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:458:7: note: candidates are: class HardwareSerial
class HardwareSerial;
^~~~~~~~~~~~~~
In file included from C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4\cores\arduino/api/ArduinoAPI.h:32:0,
from C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4\cores\arduino/Arduino.h:42,
from C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:18:
C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4\cores\arduino/api/HardwareSerial.h:87:7: note: class arduino::HardwareSerial
class HardwareSerial : public Stream
^~~~~~~~~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:519:32: error: expected ‘)’ before ‘&’ token
HardwareUart(HardwareSerial& hserial, uint32_t baud = 115200) : Uart(baud) {
^
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:542:5: error: reference to ‘HardwareSerial’ is ambiguous
HardwareSerial* toHardwareSerial() {
^~~~~~~~~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:458:7: note: candidates are: class HardwareSerial
class HardwareSerial;
^~~~~~~~~~~~~~
In file included from C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4\cores\arduino/api/ArduinoAPI.h:32:0,
from C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4\cores\arduino/Arduino.h:42,
from C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:18:
C:\Users\MDHL\xod_packages_\packages\arduino\hardware\mbed\1.1.4\cores\arduino/api/HardwareSerial.h:87:7: note: class arduino::HardwareSerial
class HardwareSerial : public Stream
^~~~~~~~~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino: In member function ‘virtual bool xod::HardwareUart::available()’:
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:528:21: error: ‘_serial’ was not declared in this scope
return (bool) _serial->available();
^~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:528:21: note: suggested alternative: ‘Serial’
return (bool) _serial->available();
^~~~~~~
Serial
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino: In member function ‘virtual bool xod::HardwareUart::writeByte(uint8_t)’:
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:532:21: error: ‘_serial’ was not declared in this scope
return (bool) _serial->write(byte);
^~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:532:21: note: suggested alternative: ‘Serial’
return (bool) _serial->write(byte);
^~~~~~~
Serial
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino: In member function ‘virtual bool xod::HardwareUart::readByte(uint8_t*)’:
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:536:18: error: ‘_serial’ was not declared in this scope
int data = _serial->read();
^~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:536:18: note: suggested alternative: ‘Serial’
int data = _serial->read();
^~~~~~~
Serial
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino: In member function ‘virtual void xod::HardwareUart::begin()’:
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:549:3: error: ‘_serial’ was not declared in this scope
_serial->begin(getBaudRate());
^~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:549:3: note: suggested alternative: ‘Serial’
_serial->begin(getBaudRate());
^~~~~~~
Serial
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino: In member function ‘virtual void xod::HardwareUart::end()’:
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:553:3: error: ‘_serial’ was not declared in this scope
_serial->end();
^~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:553:3: note: suggested alternative: ‘Serial’
_serial->end();
^~~~~~~
Serial
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino: In member function ‘virtual void xod::HardwareUart::flush()’:
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:556:3: error: ‘_serial’ was not declared in this scope
_serial->flush();
^~~~~~~
C:\Users\MDHL\AppData\Local\Temp\xod_temp_sketchbookYjwbmm\xod_1594920322038_sketch\xod_1594920322038_sketch.ino:556:3: note: suggested alternative: ‘Serial’
_serial->flush();
^~~~~~~
Serial
Error: exit status 1
Compilation failed.
Compilation failed
Command Process exited with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.