Skip to main content
DLian.3
Associate II
May 23, 2023
Solved

Is there a way to ignore compilation of some files in .extSettings?

  • May 23, 2023
  • 3 replies
  • 1286 views

I want my project to ignore the stm32h7xx_it.c file, but CubeMX auto-generates this every time. Is there a way I can ignore certain files from compiling in the extSettings before it generates a uvision/cubeide project?

This topic has been closed for replies.
Best answer by Semer CHERNI

Hello @DLian.3​ 

First let me thank you for posting.

I understand the situation you are facing, however you can't stop CubeMx from generating the file.

The solution I propose is to exclude the file from the build in Keil.

Check this link for more details.

KR,

Semer.

3 replies

AScha.3
Super User
May 23, 2023

Why you want the handling of interrupts not in the program? If you don't use any interrupts, there is anyway nothing... and If you use interrupts, you need the handling of them. So...why?

"If you feel a post has answered your question, please click ""Accept as Solution""."
DLian.3
DLian.3Author
Associate II
May 23, 2023

I have the interrupts defined elsewhere in a different file, so I don't need to compile the self-generated stm32h7xx_it.c file. Sure, I can configure the project afterwards in uvision, but is there any way to tell CubeMX to do it before the project step.

Semer CHERNI
Semer CHERNIBest answer
ST Employee
May 24, 2023

Hello @DLian.3​ 

First let me thank you for posting.

I understand the situation you are facing, however you can't stop CubeMx from generating the file.

The solution I propose is to exclude the file from the build in Keil.

Check this link for more details.

KR,

Semer.