'make' is not recognized as an internal or external command, operable program or batch file.

Bootloader for STM32F103 and STM32F4xx micro-controllers
No special driver is required. Support for Windows, Linux and Mac Operating System
Post Reply
Rekog
Posts: 13
Joined: Mon Jun 28, 2021 6:10 pm

'make' is not recognized as an internal or external command, operable program or batch file.

Post by Rekog »

I am trying to build the STM32 HID bootloader, but when I execute make_all.bat or even make_all_hd.bat

It shows me this error Image

What is 'make' and how can I make this command work
by fpiSTM » Tue Jun 29, 2021 12:50 pm
http://gnuwin32.sourceforge.net/packages/make.htm
Description

Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. Make gets its knowledge of how to build your program from a file called the makefile, which lists each of the non-source files and how to compute it from other files. When you write a program, you should write a makefile for it, so that it is possible to use Make to build and install the program.

Capabilities of Make

Make enables the end user to build and install your package without knowing the details of how that is done -- because these details are recorded in the makefile that you supply.
Make figures out automatically which files it needs to update, based on which source files have changed. It also automatically determines the proper order for updating files, in case one non-source file depends on another non-source file. As a result, if you change a few source files and then run Make, it does not need to recompile all of your program. It updates only those non-source files that depend directly or indirectly on the source files that you changed.
Make is not limited to any particular language. For each non-source file in the program, the makefile specifies the shell commands to compute it. These shell commands can run a compiler to produce an object file, the linker to produce an executable, ar to update a library, or TeX or Makeinfo to format documentation.
Make is not limited to building a package. You can also use Make to control installing or deinstalling a package, generate tags tables for it, or anything else you want to do often enough to make it worth while writing down how to do it.
Go to full post
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Post by fpiSTM »

http://gnuwin32.sourceforge.net/packages/make.htm
Description

Make is a tool which controls the generation of executables and other non-source files of a program from the program's source files. Make gets its knowledge of how to build your program from a file called the makefile, which lists each of the non-source files and how to compute it from other files. When you write a program, you should write a makefile for it, so that it is possible to use Make to build and install the program.

Capabilities of Make

Make enables the end user to build and install your package without knowing the details of how that is done -- because these details are recorded in the makefile that you supply.
Make figures out automatically which files it needs to update, based on which source files have changed. It also automatically determines the proper order for updating files, in case one non-source file depends on another non-source file. As a result, if you change a few source files and then run Make, it does not need to recompile all of your program. It updates only those non-source files that depend directly or indirectly on the source files that you changed.
Make is not limited to any particular language. For each non-source file in the program, the makefile specifies the shell commands to compute it. These shell commands can run a compiler to produce an object file, the linker to produce an executable, ar to update a library, or TeX or Makeinfo to format documentation.
Make is not limited to building a package. You can also use Make to control installing or deinstalling a package, generate tags tables for it, or anything else you want to do often enough to make it worth while writing down how to do it.
Rekog
Posts: 13
Joined: Mon Jun 28, 2021 6:10 pm

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Post by Rekog »

Thanks

I have a new error else

Image
mrburnette
Posts: 633
Joined: Thu Dec 19, 2019 1:23 am
Answers: 7

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Post by mrburnette »

Make is one of those utilities that will require some effort to understand its use and its power. Fortunately it is documented here and numerous examples exist on the Internet and on YouTube.

Maybe: https://github.com/Serasidis/STM32_HID_ ... /issues/10 will be helpful...

But remember, "tools" must be in the %path% or you must CD into the appropriate directory to execute the utility/program.
Rekog
Posts: 13
Joined: Mon Jun 28, 2021 6:10 pm

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Post by Rekog »

I also needed to download
http://gnuwin32.sourceforge.net/packages/coreutils.htm
https://developer.arm.com/tools-and-sof ... /downloads

Since rm and arm-none-eabi-gcc commands do not exist under windows
Last edited by Rekog on Wed Jun 30, 2021 10:05 am, edited 1 time in total.
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Post by ag123 »

one way is to install / use WSL
https://docs.microsoft.com/en-us/windows/wsl/about
you could literally have 'everything in a bundle' make, compilers etc
Rekog
Posts: 13
Joined: Mon Jun 28, 2021 6:10 pm

Re: 'make' is not recognized as an internal or external command, operable program or batch file.

Post by Rekog »

ag123 wrote: Wed Jun 30, 2021 9:58 am one way is to install / use WSL
https://docs.microsoft.com/en-us/windows/wsl/about
you could literally have 'everything in a bundle' make, compilers etc
Thanks but I would like to do without it.
Post Reply

Return to “STM32 HID bootloader”