2022-10-25 04:30 AM
I am using Keil MDK to setup a project for STM32 devices. STM32cubemx is integrated into Keil and can be used to generate a skeleton for the project (main.c, stm32XX.c, .h files and stm32CubeMX.ioc, etc).
This is helpful but some of the generated code contain duplicates of some handlers, like "void PendSV_Handler(void)". How do I stop STM32CubeMX from generating these defines?
Solved! Go to Solution.
2022-11-24 08:09 AM
Hello @Syn_BE
First, I apologize for my late reply.
If I did understand well the situation; you need that CubeMx stop generating the interrupt handlers, you mentioned.
If so, under System Core --> NVIC --> Code generation you will find the list of all the interrupt handlers. You uncheck those you don't need CubeMx to generate:
Hope this is a good answer to your question. If yes, please select it as a best one else give me your feedback to be able to provide help.
Kind regards,
Semer.
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.
2022-10-25 04:33 AM
2022-11-01 08:14 AM
Hello @newdev
First let me thank you for posting.
I trying to reproduce the same behavior you encountered but it works fine from my side.
To be able to push further the analysis could you please provide a minimal project which show the problem.
I'll be waiting for your feedback.
Thx.
Semer.
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.
2022-11-03 04:22 AM
I have the same problem here.
I use CubIDE 1.10.1 with integrated CubeMX 6.6.1 for STM32G474.
As @newdev wrote:
CubeMX is generating handler functions (in file "stm32g4xx_it.c") for
which collide with the handlers of "my" RTOS.
How can I prevent the generation of these functions in CubeMX?
Best regards, Andy
2022-11-24 05:31 AM
Hello,
@Semer CHERNI do you have any news to this issue, or do you need anyhing from me to dive deeper into this subject? Just let me know.
Short remark: it seems that this issue has also popped up in the past...
Best regards, Andy
2022-11-24 08:09 AM
Hello @Syn_BE
First, I apologize for my late reply.
If I did understand well the situation; you need that CubeMx stop generating the interrupt handlers, you mentioned.
If so, under System Core --> NVIC --> Code generation you will find the list of all the interrupt handlers. You uncheck those you don't need CubeMx to generate:
Hope this is a good answer to your question. If yes, please select it as a best one else give me your feedback to be able to provide help.
Kind regards,
Semer.
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.
2022-11-25 01:06 AM
This solved the issue. Thanks!