watchX.ino - upload not working

Hi.

I just bought a watchX H-kit. I assembled the watch as in the manual. The first time I attached the battery, it said "Plug your watchX to your PC… (Nothing worked in the watch, only this text shown)
So I plugged in and I tried to upload watchX.ino.
Some examples are working (blink and buzzers are fine but the most of it not working)
The oled display not working anymore at all…
I’m using IDE 1.8.42 (I tried older ones as well)
Board and Port okay.

error code:

sketch\pwrmgr.c:13:26: warning: extra tokens at end of #undef directive

#undef sleep_bod_disable()

                      ^

\NWatch-master\watchX\watchX.ino:7:16: warning: extra tokens at end of #undef directive

#undef millis()

            ^

\AppData\Local\Temp\ccT37AJW.ltrans0.ltrans.o: In function `oled_flush’:

sketch/oled.c:108: undefined reference to `spi_transfer_nr’

sketch/oled.c:109: undefined reference to `spi_transfer_nr’

sketch/oled.c:110: undefined reference to `spi_transfer_nr’

sketch/oled.c:112: undefined reference to `spi_transfer_nr’

sketch/oled.c:113: undefined reference to `spi_transfer_nr’

C:\Users\AppData\Local\Temp\ccT37AJW.ltrans0.ltrans.o:sketch/oled.c:114: more undefined references to `spi_transfer_nr’ follow

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino Leonardo.

DO you have any idea what I’m doing wrong?
Thank you in advance

Hi @istvan1188,

After the “Connect your watchX to PC” command, you should connect it to the computer and not pull it until you see the “Charging Completed” text.

As far as I understand, you also tried to upload the N|Watch firmware.

You can upload N|Watch firmware with the old version 1.8.0 of Arduino IDE. https://downloads.arduino.cc/arduino-1.8.0-windows.zip

Hello Dear Istvan,

Regarding to your OLED problem, please make sure that FFC cable is inserted all the way through. Also make sure that the connector latch is firmly closed as it is described in the quick start guide. Once you do that, please reset the watchX with the reset button. Please let us know your progress:)

Thank you for you reply.
I checked the display - it’s okay.

Regarding the firmware update, with the 1.8.0 IDE this is the error message:

Arduino: 1.8.0 (Windows 10), Board: “Arduino Leonardo”

sketch\pwrmgr.c:13:26: warning: extra tokens at end of #undef directive

#undef sleep_bod_disable()

                      ^

…\NWatch-master\watchX\watchX.ino:7:16: warning: extra tokens at end of #undef directive

#undef millis()

            ^

Sketch uses 28528 bytes (99%) of program storage space. Maximum is 28672 bytes.
Global variables use 1521 bytes (59%) of dynamic memory, leaving 1039 bytes for local variables. Maximum is 2560 bytes.
avrdude: ser_open(): can’t set com-state for “\.\COM4”
An error occurred while uploading the sketch

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.

Dear mtulu,

I tried it one more time… it’s working now!

Thank you very much!

1 Like

I am glad that you sorted it out:)

1 Like