Update --> trouble

Hey Guys after update the XOD-Client i got from a Sketch this message:
How can i fix this? before the update was installed it workes fine

thanks!


Begin compiling code for the board Arduino Nano Every 📦


C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:4745:5: error: flexible array member 'xod::wayland__ssd1306_oled_i2c__draw_xod_logo::Node::xod_logo_128_64' not at end of 'struct xod::wayland__ssd1306_oled_i2c__draw_xod_logo::Node'
     };
     ^

C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:4745:5: error: initializer for flexible array member 'const unsigned char xod::wayland__ssd1306_oled_i2c__draw_xod_logo::Node::xod_logo_128_64 []'

C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino: In member function 'void xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::wakeISR()':
C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6772:9: error: 'ADCSRA' was not declared in this scope
         ADCSRA = g_prevADCSRA;
         ^~~~~~

C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6772:9: note: suggested alternative: 'ADC_t'
         ADCSRA = g_prevADCSRA;
         ^~~~~~
         ADC_t

C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino: In member function 'void xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::evaluate(xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::Context)':
C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6788:24: error: 'ADCSRA' was not declared in this scope
         g_prevADCSRA = ADCSRA;
                        ^~~~~~

C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6788:24: note: suggested alternative: 'ADC_t'
         g_prevADCSRA = ADCSRA;
                        ^~~~~~
                        ADC_t
C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6798:9: error: 'EIFR' was not declared in this scope
         EIFR |= (1 << g_interruptNum);
         ^~~~

C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6798:9: note: suggested alternative: 'EOF'
         EIFR |= (1 << g_interruptNum);
         ^~~~
         EOF

C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino: In instantiation of 'void xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::evaluate(xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::Context) [with unsigned char constant_input_WAKE = 2; xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::Context = xod::nkrkv__avr_sleep__sleep_until_switch::Node<2>::ContextObject*]':
C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:13879:38:   required from here
C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6795:24: error: invalid use of non-static member function 'void xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::wakeISR() [with unsigned char constant_input_WAKE = 2]'
         attachInterrupt(g_interruptNum, wakeISR, CHANGE);
         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6762:10: note: declared here
     void wakeISR() {
          ^~~~~~~
C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6802:26: error: 'sleep_bod_disable' was not declared in this scope
         sleep_bod_disable();
         ~~~~~~~~~~~~~~~~~^~

C:\Users\User\AppData\Local\Temp\xod_temp_sketchbook5o9jJN\xod_1603294933691_sketch\xod_1603294933691_sketch.ino:6802:26: note: suggested alternative: 'sleep_disable'
         sleep_bod_disable();
         ~~~~~~~~~~~~~~~~~^~
         sleep_disable

Error during build: exit status 1
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.
0


Are you using libraries from wayland and nkrkv that need updated to work with new version?

Do you have any xod folders under your __lib__ folder with other libraries (usually in C:\Users\YOUR_USERNAME\xod\__lib__)? This would indicate you made changes to the built-in nodes and are not getting the latest copies when you update XOD. If any xod folders do exist in library folder, you can delete (or just rename) them so XOD can see the latest updates for those nodes.

I hadn’t realised that the draw-xod-logo node in my ssd1306-oled-i2c library needed updating to work in the latest version of XOD. Thanks @c-petersen and @gweimer for letting me know. I’ve just published a fixed version of my library (v0.0.7).

Thanks @gweimer and @wayland
now it works fine :slight_smile: only the “nkrkv” lib is not working anymore.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.