Unable to flash Arduino UNO R4 Minima #64813
Replies: 7 comments 2 replies
-
I am assuming you installed the required CMSIS-Pack as per https://docs.zephyrproject.org/latest/boards/arm/arduino_uno_r4/doc/index.html#using-pyocd? |
Beta Was this translation helpful? Give feedback.
-
@soburi any thoughts on this? |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity, am I supposed to have a particular debug probe connected to the Minima or do I just use the USB-C connection from the board like the Arduino IDE used? |
Beta Was this translation helpful? Give feedback.
-
In either normal or DFU mode, pyocd is not finding a debug port for the R4:
However, I can see that the ports are showing in demsg.
One thing I did find, was that I had to create the following USB rules for the Minima on Linux to even flash the board from the Arduino IDE as a regular user and not sudo. I found this after some searching.:
It still does not work with west flash though. |
Beta Was this translation helpful? Give feedback.
-
First of all, I would like to check: Are you connecting the UNO R4 with an SWD cable? It's the small 2x5 connector on the top right. |
Beta Was this translation helpful? Give feedback.
-
Yeah, that was one of my earlier questions, whether or not I needed a debugger for this. I have a couple of Picos so I'll look into that. Thanks. |
Beta Was this translation helpful? Give feedback.
-
On Windows 11 with the Arduino IDE 2 and the Minima board properly installed, you can use the command below over USB-C instead of using
Unfortunately, you cannot put this command in the To restore the Minima to "Arduino mode" (i.e. with bootloader), put the board in DFU mode and upload a sketch (any, e.g. Blink) with the IDE. The method described in the Zephyr Arduino Minima documentation doesn't work for me (using a J-Link Base pod). Note that trying to restore the bootloader with the command given above doesn't work either. There appears to be missing a programming step or something. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying the new examples with the Arduino UNO R4 Minima but the flash step is hanging.
I've gone through the install of Zephyr on a Ubuntu 20.04 VM using the Python virtual env and can build the code just fine. However, when flashing, it just shows:
This is how the R4 shows from dmesg:
Any suggestions on how to get past this?
Beta Was this translation helpful? Give feedback.
All reactions