Skip to main content
francesco_gritti
Associate II
March 16, 2024
Solved

STM32F042G6U6 startup file does not contain ISR vector for DMA channels other than 1

  • March 16, 2024
  • 1 reply
  • 3586 views

Hello everybody! I am new on this forum, my name is Francesco and I am an STM32 MCU enthusiast :)

 

I am currently using the STM32F042U6G6 in one of my project and I noticed that in the ISR vector table generated by CUBE-MX in startup_stm32f042g6u6ux.s file, the addresses where DMA ISR vectors (other than DMA1-channel1) should be mapped, are given to "0" adddress and commented as reserved.

However, on the reference manual of the MCU they are clearly specified to be the DMA channels ISR vectors. Didn't find anything on the errata so I don't think they are reserved to workaround some MCU hardware issues.

 

Does anyone know why they might have been set to null pointer?

Thank you in advance,

Francesco

startup.PNG

Vector Table.PNG

This topic has been closed for replies.
Best answer by TDK

They are correct in the latest version of the library, see here:

https://github.com/STMicroelectronics/cmsis_device_f0/blob/56cf85c7e2f8ecdf7f2093b77edab28c12ebe96d/Source/Templates/gcc/startup_stm32f042x6.s#L181

 

They are there in a newly created project for me, with the current library version.

TDK_1-1710603935074.png

 

TDK_0-1710603922526.png

 

Perhaps you are running an older version?

 

In any case, there is no reason for them to be 0. They should be defined.

1 reply

TDK
TDKAnswer
Super User
March 16, 2024

They are correct in the latest version of the library, see here:

https://github.com/STMicroelectronics/cmsis_device_f0/blob/56cf85c7e2f8ecdf7f2093b77edab28c12ebe96d/Source/Templates/gcc/startup_stm32f042x6.s#L181

 

They are there in a newly created project for me, with the current library version.

TDK_1-1710603935074.png

 

TDK_0-1710603922526.png

 

Perhaps you are running an older version?

 

In any case, there is no reason for them to be 0. They should be defined.

"If you feel a post has answered your question, please click ""Accept as Solution""."
francesco_gritti
Associate II
March 16, 2024

Hi thank you so much for the quick answer! I had generated the project few days ago and didn't think that it could be that!