Here are some simple steps to get edbg working on Mac with M1 processor and on Mac in general:
First, if using Mac with M1: make sure that your Homebrew is installed to
/usr/local and that you are
running your terminal using Rosetta
1. Install hidapi using brew:
brew install hidapi
2. Clone the repository to whatever folder you want:
git clone https://github.com/ataradov/edbg
3. Change the
Makefile file where it says
libhidapi.a to
libhidapi.dylib
4. Now run
make all
This tutorial was made by
Ido Calman, please feel free to reach out!