arduino uno wifi firmware upgrade

I am trying to upgrade firmware, on arduino UNO WiFi, using:

Test connection return

Can't communicate with programmer!

java.lang.Exception: Can't communicate with programmer!
at cc.arduino.plugins.unowifi.flashers.cli.CLIFlasher.testConnection(CLIFlasher.java:100)
at cc.arduino.plugins.unowifi.UpdaterImpl$2.run(UpdaterImpl.java:112)

In the mean time the following sκetch is uploaded without problem!!

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

doc

Please post solution if you have one. I have the same issue.

but there are more possibilities

Just to confirm, this is uno wifi, not uno wifi rev2 right? The rev2 is very different from the non-rev2 uno wifi.