2024-06-30 08:26 AM - last edited on 2024-07-04 05:49 AM by Andrew Neil
First of all thanks ST for creating this extension. I'm really happy to see support for VSCode grow. On the whole extension works for me on Windows without any problems (build/debug
But when I was using NUCLEO-L476RG board, and created an Empty Project I was unable to trigger UserButton IRQ on PC13. After triggering the interrupt the code ended up not in my InterrupHandler routine but in DefaultHandler. Which prompted me to look at the autogenerated startup file and find that Interrupt Vector Table described there have nothing to do with Interrup Vector Table in the datasheet
This is start of the code generated with VSCode Extension:
g_pfnVectors:
.word _estack
.word Reset_Handler
.word NMI_Handler
.word HardFault_Handler
.word 0
.word 0
.word 0
.word 0
.word 0
.word 0
.word 0
.word SVC_Handler
.word 0
.word 0
.word PendSV_Handler
.word SysTick_Handler
.word DMA1_CH1_IRQHandler /* DMA1 Channel1 global interrupt */
.word DMA1_CH2_IRQHandler /* DMA1 Channel2 global interrupt */
.word DMA1_CH3_IRQHandler /* DMA1 Channel3 interrupt */
.word DMA1_CH4_IRQHandler /* DMA1 Channel4 interrupt */
And this is how beginning of the Interrupt Vector Table looks in datasheet:
I've checked in STM32CubeIDE and it's generating appropriate Interrupt Vector Table for this board, so it seems it's something isolated to the VSCode extension.
2024-07-04 05:35 AM
hi @LevK
I tested from my side and I got the same startup file with VSCode and CubeIDE could you please give some more info
2024-07-05
07:55 AM
- last edited on
2024-07-08
08:53 AM
by
Lina_DABASINSKA
Hi @LevK ,
We confirm the bug. The issue can be re-produced!
FYI, we are generating the vector table in the startup-file on-the-fly by identifying the device name and pulling information from the "svd"-file. The new algorithm to do this generation does not yet have much mileage. We will look into how we can fix this.
In the meanwhile I attach a fixed version that you can drag-drop in manually...
Hope it works out better for you. Thanks for bug the report!
2024-07-12 12:12 PM