Marus / cortex-debug

Visual Studio Code extension for enhancing debug capabilities for Cortex-M Microcontrollers
MIT License
996 stars 238 forks source link

Debug issues on Mac M2 in Visual studio code. -86 error code #1040

Closed Motirn closed 1 month ago

Motirn commented 1 month ago

I am not sure if this is the right place or the problem I am experiencing is really an issue(Please suggest if there is a work around for this)

Am trying to do some debugging on a Nordic CPU with Visual studio code running on Macbook M2. When I try to launch a debug session it complains about a -86 error code and aborts the session.

Am Attaching the generated report and the screenshot I am seeing. Let me know if there is a solution for this. So far from the research and asking at the Nordic forums , This seem to be an issue related to the ARM64 core on the Mac M2. Is there any specific configuration I have to do on the debug extension??

-86error-code
Motirn commented 1 month ago

If I install VS Code for Mac Intel CPU, It asks for Rosetta to be installed, and from there on debugging seem to work. But I guess with a serious performance penalty

VSCode for MacIntel-With Rosetta
haneefdm commented 1 month ago

You did not follow the template and have any info for us to debug. I am closing this issue so you can submit an issue properly.

I have both an M2 Pro Mac and an Intel Mac and don't see any issues. You also have both and I don't see any effort to enable verbose debug and compare the two outputs....