dlbeer / mspdebug

Debugging tool for MSP430 MCUs
GNU General Public License v2.0
184 stars 80 forks source link

Trouble making the executable in Windows. #111

Open JazzJackson0 opened 2 years ago

JazzJackson0 commented 2 years ago

I'm currently trying to set up mspdebug for Windows 10. When I go to build the executable from inside mspdebug-master, I get the following error:

$ set path=c:\mingw\bin;c:\MinGW\msys\1.0\bin\

make bash: c:MinGWmsys1.0binmake: command not found

When I change \ to /:

$ set path=c:/mingw/bin;c:/MinGW/msys/1.0/bin/ bash: C:/mingw/msys/1.0/bin/: Is a directory

I assumed I would be setting a temporary path and then calling make from there, but the commands above don't seem to work as expected. I'm still new to working from the command line so, I could be misunderstanding something.

Thank you in advance, Jazz

dlbeer commented 2 years ago

Hi Jazz,

From bash you'll want to set the path with something like:

export PATH=$PATH:/path/to/dir1:/path/to/dir2

Substituting the paths as appropriate. I've never used bash on Windows with MSYS, so I'm not sure how paths are mapped. You may want to check that in the manual.

Cheers, Daniel

JazzJackson0 commented 2 years ago

Thank you! That was super helpful!

Also, just to let you know. With my current Windows 10 system, the only way I got 'make' to successfully build the executable was to remove all mention of "shell" from the Makefile as well as remove the "?" from "CC ?= gcc".

tingox commented 1 year ago

FWIW, I also had to change "CC ?= gcc" to "CC = gcc" in the Makefile. MingW build, win10, powershell. (newly cloned repository)