cancel
Showing results for 
Search instead for 
Did you mean: 

Use 7zip and SRecord in CubeIDE project

ALuiz.1
Associate II

Hi all,

I would like to know how to add the packets 7zip and Srecord in a CubeIDE project.

I'm working on a project I didn't start and after compiling the IDE returns the error messages "7z is not recognized as an internal command" and "srec_cat is not recognized as an internal command". How to solve this issues? I already have both packets installed in my machine.

Thank you!

 

3 REPLIES 3
Pavel A.
Evangelist III

In Windows open command window and type: "where 7z.exe" 

If this finds 7z.exe then it is in PATH and you're golden.

Else, find where 7z.exe is installed on your machine and enter the full path of it with the command.

 

I didn't understand. What command I need to add the 7z.exe path?  Where do I find this command?

thanks.

 

Usually when we have a program, for example, foo.exe  in directory C:\Program Files\junk\ and it is not in PATH, we can refer to it as C:\Program Files\junk\foo.exe

If the pre- or post-build command in the project  refers to 7z.exe but cannot find it: check if the 7zip is installed at all. If not, install it (type: winget install 7zip). If yes: find where it is.  On my machine it is in C:\Program Files\7-Zip.

So: either add this to PATH (Copilot or chatgpt can explain how) or replace all occurrences or 7z.exe in the .cproject file with C:\Program Files\7-Zip\7z.exe , and the same for srecord.exe.