Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--force needed on Mac OS X Catalina #39

Open
mircobabini opened this issue Nov 21, 2020 · 1 comment
Open

--force needed on Mac OS X Catalina #39

mircobabini opened this issue Nov 21, 2020 · 1 comment

Comments

@mircobabini
Copy link

First of all, under catalina the path to the USB analysis is different:
About this Mac > System report... and so on.

Then, when in DFU mode, the Arduino is seen Composite Device.

Then, I had this error running the script to get it back to an Arduino:

$ sh TurnIntoAnArduino.sh
.
Like magic.
Trying to program for Arduino Uno R1/R2...
dfu-programmer: no device present.
We didn't find the R1/R2 model, checking for an R3...
Checking memory from 0x0 to 0xFFF...  Not blank at 0x1.
The target memory for the program is not blank.
**Use --force flag to override this error check.**

dfu-programmer couldn't connect to the Arduino...
Did you put the Arduino into DFU mode?
Did you run the script as a root user?

Solved it by adding the --force option to the dfu-programmer script:
dfu-programmer atmega16u2 flash Arduino-usbserial-uno.hex --force

Done. Don't want to pull a request with the --force param into it.
Instead, I think that when the shell says "Use --force flag..." should be handled by the TurnIntoAnArduino.sh this way:

$ sh TurnIntoAnArduino.sh --force

And yes, I'm not a bash addicted, so I can't provide you a pull request. I'm sorry :)

@titulebolide
Copy link

I encountered the same issue, and solved the same way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants