Skip to main content
Refused_HC
Associate II
January 26, 2026
Solved

No rule to make target '../Core/Startup/startup_stm32f446retx.s'

  • January 26, 2026
  • 1 reply
  • 575 views

Hello all,

I have been reading other posts with the same problem but I do not get the solution in my case.

I'm using the development kit STM32F446RE (Nucleo 64).

I have created a new project with STM32CubeMX 6.16.1, and I open the project with STM32CubeIDE 2.0.0.

 

When compiling (in Debug or Release) I get this error:

 

11:39:26 **** Incremental Build of configuration Debug for project TEST_ST_NUCLEO ****
make -j22 all
make: stat: ../Core/Startup/startup_stm32f446retx.s: Permission denied
make: *** No rule to make target '../Core/Startup/startup_stm32f446retx.s', needed by 'Core/Startup/startup_stm32f446retx.o'. Stop.
"make -j22 all" terminated with exit code 2. Build might be incomplete.

11:39:27 Build Failed. 1 errors, 0 warnings. (took 584ms)

 

Any help will be welcome. Thanks in advence.

 

 

Best answer by Ghofrane GSOURI

Hello @Refused_HC 

The build fails because make cannot access or find the startup file Core/Startup/startup_stm32f446retx.s. First verify that this file actually exists in PROJECT_ROOT/Core/Startup and that its name matches exactly. If it’s missing, reopen the .ioc in STM32CubeMX, ensure the toolchain is set to STM32CubeIDE (or Makefile), then regenerate the code so the startup file is created. If the file exists but you still see Permission denied, fix file permissions.

THX

Ghofrane

1 reply

Ghofrane GSOURI
Ghofrane GSOURIBest answer
Technical Moderator
January 26, 2026

Hello @Refused_HC 

The build fails because make cannot access or find the startup file Core/Startup/startup_stm32f446retx.s. First verify that this file actually exists in PROJECT_ROOT/Core/Startup and that its name matches exactly. If it’s missing, reopen the .ioc in STM32CubeMX, ensure the toolchain is set to STM32CubeIDE (or Makefile), then regenerate the code so the startup file is created. If the file exists but you still see Permission denied, fix file permissions.

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Refused_HC
Associate II
January 30, 2026

Much thanks the problem was not having administrator permissions.