-
Notifications
You must be signed in to change notification settings - Fork 144
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
how do I compile minichlink on a mac? #252
Comments
Like this: https://github.com/cnlohr/ch32v003fun/wiki/Installation#macos So basically:
I've done this a few times on my Mac |
I haven't seen those installation instrcutions, but I noticed a makefile inside the minichlink folder, so of course I tried it, and here's what I got:
However, I obtained the toolchain from the MounRiverStudio website, not through homebrew... |
heh. I moved that define outside the if, and it compiled!
and got the following output:
with multiple 'fault' lines. I removed -a flag, removed -T flag, but still the same error. And it seems, it corrupts the firmware flashed onto the chip, so that I have to reflash it with openocd to make it work again. |
Have you tried using -p to remove the read protection? It can be set by firmware (optionbytes) or by -P. (i had the same issue, and that brought me to this issue/question) |
I take it you resolved your issue @thirstyone ? What needed to change? I can't imagine any sane mac build not having MSG_NOSIGNAL |
No description provided.
The text was updated successfully, but these errors were encountered: