cancel
Showing results for 
Search instead for 
Did you mean: 

typo in IRQHandler for CMake of STM32U0

nicolas
Senior II

With STM32CubeIDE 1.19.0, i generate a CMake project for STM32U073CCT6. The generated startup file has a DMA1_CHannel1_IRQHandler instead of DMA1_Channel1_IRQHandler.

7 REPLIES 7
mƎALLEm
ST Employee

Hello,


@nicolas wrote:

With STM32CubeIDE 1.19.0 


That was with 1.19.0 of CubeIDE which doesn't support anymore Code generation and this function was deprecated in the newer tools versions. What about generating the code with the latest STM32CubeMx tool?

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.

Is the startup file actually generated, or is it just copied from the Firmware Pack ?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Indeed.. 

Same thing as this one: STM32C092GCU6: FDCAN interrupt handler name mismatch

CubeMx doesn't generate code for .s it just copies it from the HAL repository.

So the recommendation here is to use the latest version of the tool. In his case he needs to use CubeMx (which points to the latest version of the CubeHAL, supposedly fixing some issues) instead of CubeIDE as "starting a project for STM32" is no more supported.

STM32CubeIDE 2.0.0 workflow tutorial

Now after checking by generating a code with CubeMx 6.17.0 which by default points to STM32Cube FW_U0 V1.3.0, the copied .s file gives the following:

	.weak	DMA1_Channel1_IRQHandler
	.thumb_set DMA1_Channel1_IRQHandler,Default_Handler

So I suppose the issue was fixed.

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.

Using STM32CubeIDE 2.1.1 and creating a CMake project, i still get the wrong IRQHandler name.

 


@nicolas wrote:

Using STM32CubeIDE 2.1.1 and creating a CMake project, i still get the wrong IRQHandler name.

 


How did you generate the code with STM32CubeIDE 2.1.1? that's not possible!

STM32CubeIDE 2.0.0 workflow tutorial

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.

@nicolas wrote:

Using STM32CubeIDE 2.1.1 and creating a CMake project


As noted by @mƎALLEm, you need to use CubeMX to create a project - not CubeIDE from v2.0.0.

@nicolas - So what version of CubeMX did you use?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

File -> STM32 Project Create/Import -> STM32 CMake Project