I recently bought a new pc that has Microsoft Windows 10 Pro Version 10.0.16299 Build 16299 and bought the Arduino Uno WiFi Rev2 board, https://store.arduino.cc/usa/arduino-uno-wifi-rev2
I was trying to follow the guide here: https://www.arduino.cc/en/Guide/ArduinoUnoWiFiRev2. I initially tried IDE 1.8.8 and got compiler errors and then noticed in the tutorial it showed 1.8.5 so I de-installed 1.8.8 and installed 1.8.5 but still get the errors.
After installing the IDE I would go to tools, board, boards manager type in wifi rev2 and it installed 1.6.24. I then selected that as the board (wifi rev2) and following the guide it says to open the blink example but when I try and compile I am getting a lot of errors (see below).
I moved on and in the guide it has a link to WiFiNINA - Arduino Reference which says "When the library version installed on your computer is the latest available, you may check the firmware version of the board or the shield. We have prepared a utility sketch to check the firmware version and its matching with the library. If the firmware needs an update, another utility sketch enables the process. Below the link to the relevant tutorials."
But i cannot find any references where that utility sketch is ?
I have another laptop with IDE 1.8.1 running windows 7 and when I added the wifi rev2 board the blink example compiled so not sure if this is a win10 issue with that board ?
thanks
In file included from C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\wiring_private.h:31:0,
from C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\WInterrupts.c:33:
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\WInterrupts.c: In function 'attachInterrupt':
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\Arduino.h:127:44: warning: initialization discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
#define getPINnCTRLregister(port, bit_pos) ( ((port != NULL) && (bit_pos < NOT_A_PIN)) ? ((volatile uint8_t *)&(port->PIN0CTRL) + bit_pos) : NULL )
^
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\WInterrupts.c:77:29: note: in expansion of macro 'getPINnCTRLregister'
uint8_t* pin_ctrl_reg = getPINnCTRLregister(port, bit_pos);
^
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\WInterrupts.c: In function 'detachInterrupt':
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\Arduino.h:127:44: warning: initialization discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
#define getPINnCTRLregister(port, bit_pos) ( ((port != NULL) && (bit_pos < NOT_A_PIN)) ? ((volatile uint8_t *)&(port->PIN0CTRL) + bit_pos) : NULL )
^
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\WInterrupts.c:100:29: note: in expansion of macro 'getPINnCTRLregister'
uint8_t* pin_ctrl_reg = getPINnCTRLregister(port, bit_pos);
^
In file included from C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\wiring_private.h:31:0,
from C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\wiring_digital.c:26:
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\wiring_digital.c: In function 'pinMode':
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\Arduino.h:127:44: warning: initialization discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
#define getPINnCTRLregister(port, bit_pos) ( ((port != NULL) && (bit_pos < NOT_A_PIN)) ? ((volatile uint8_t *)&(port->PIN0CTRL) + bit_pos) : NULL )
^
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\wiring_digital.c:51:27: note: in expansion of macro 'getPINnCTRLregister'
uint8_t* pin_ctrl_reg = getPINnCTRLregister(port, bit_pos);
^
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\wiring_digital.c: In function 'digitalWrite':
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\Arduino.h:127:44: warning: initialization discards 'volatile' qualifier from pointer target type [-Wdiscarded-qualifiers]
#define getPINnCTRLregister(port, bit_pos) ( ((port != NULL) && (bit_pos < NOT_A_PIN)) ? ((volatile uint8_t *)&(port->PIN0CTRL) + bit_pos) : NULL )
^
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\wiring_digital.c:173:27: note: in expansion of macro 'getPINnCTRLregister'
uint8_t* pin_ctrl_reg = getPINnCTRLregister(port, bit_pos);
^
C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.6.24\cores\arduino\UNO_compat.cpp:20:2: warning: #warning "ATMEGA328 registers emulation is enabled. You may encounter some speed issue. Please consider to disable it in the Tools menu" [-Wcpp]
#warning "ATMEGA328 registers emulation is enabled. You may encounter some speed issue. Please consider to disable it in the Tools menu"
^
Sketch uses 1534 bytes (3%) of program storage space. Maximum is 49152 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.