I have been trying for days to get stable or consistent I2C communication on a R4Wifi (MPU6050 communication) and have pretty well given up. Everything works fine on an R3, Mega, Nano and Nano33 but on the R4 I am seeing erratic behavior, periodic freezing and inconsistency from one power up to the next.
Anyway, I thought I should do a firmware update to see if that made any difference. The update (using IDE 2.3.3) failed. Oh well, nothing lost, but here's the thing. Before the attempted update this is what the board was reporting :-
After the failed update this is what I am seeing
Can't upload to the board, communicate via serial or do anything at all.
Powered down. Powered up the next day to double check. Now it reports this
Hi @kusana. There is an essential final step after updating the firmware on the UNO R4 WiFi: this is to power cycle the board by unplugging the USB cable and then plugging the cable back in again. If you don't do that, and then upload a sketch to the board, the firmware will be replaced by the sketch you uploaded.
It is possible to recover the board from this state by performing a special procedure. I am happy to provide instructions for doing this, but I will first need to know which operating system you are using (e.g., "Windows") so that I can provide the appropriate instructions.
The board can be recovered by flashing the standard firmware to the bridge module. The tools we normally use for updating the firmware can't be used when the board is in this state, so it is necessary to use a command line procedure.
I'll provide instructions you can follow to do that:
Disconnect the USB cable of the UNO R4 WiFi board from your computer.
Use a jumper wire to connect these two pins ("DOWNLOAD" and "GND") on the 2x3 male header that is near the USB socket on the UNO R4 WiFi board:
Open the unor4wifi-update-windows folder that was created when you extracted the downloaded unor4wifi-update-windows.zip file at the previous step in the instructions.
In the folder listing of the unor4wifi-update-windows folder, hold the Shift key while clicking the right hand button on the mouse.
A context menu will open.
Select "Open PowerShell window here" from the menu.
Windows PowerShell will now open.
Type the following command at the Windows PowerShell window command prompt:
The PowerShell window might now show a list of the serial ports present on your computer.
For example:
Start flashing firmware
[2023-07-11T06:39:09Z INFO ] Detected 2 serial ports
[2023-07-11T06:39:09Z INFO ] Ports which match a known common dev board are highlighted
[2023-07-11T06:39:09Z INFO ] Please select a port
❯ COM1
COM42- USB Serial Device (COM42)
If so, use the ↓ key on your keyboard to select the port of the UNO R4 WiFi board from the list, and then press the Enter key.
The terminal window will now show the following prompt:
? Remember this serial port for future use? (y/n) ›
Press the N key on your keyboard.
The flashing process should now start. Wait for it to finish, as indicated by output that looks something like this: