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

process_begin: CreateProcess(NULL, nrfjprog -c 4000 --eraseall --program untitled4.hex --sectorerase, ...) failed. #9

Closed
MarcDirven opened this issue Nov 18, 2019 · 1 comment

Comments

@MarcDirven
Copy link

MarcDirven commented Nov 18, 2019

First of all, this is a question, not really an issue, but since you seem to have more knowledge for cmake files rather than me, I'd like to ask something. I have almost the same cmake file (customized yours for the NRF52) but when I try to build the project, I get the following error message:

mingw32-make.exe[2]: Leaving directory 'C:/Users/marcd/Google Drive/HBO ICT/Jaar 3/Stage/untitled4/cmake-build-debug'
process_begin: CreateProcess(NULL, nrfjprog -c 4000 --eraseall --program untitled4.hex --sectorerase, ...) failed.
mingw32-make.exe[1]: Leaving directory 'C:/Users/marcd/Google Drive/HBO ICT/Jaar 3/Stage/untitled4/cmake-build-debug'
make (e=2): The system cannot find the file specified.
mingw32-make.exe[2]: *** [CMakeFiles\flash_untitled4.dir\build.make:60: CMakeFiles/flash_untitled4] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:112: CMakeFiles/flash_untitled4.dir/all] Error 2
mingw32-make.exe: *** [Makefile:86: all] Error 2

It cannot create the process for some reason while I have nrfjprog installed and added to path. Also I am running the FLASH_${EXECUTABLE_NAME}, when I run the project. Do you have any suggestions?

@MarcDirven
Copy link
Author

Nevermind, it seemed that I had to restart CLion after setting the nrfprog to the path.

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

1 participant