cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve the problems encountered with the STM32 series plugins in VSCode?

my1
Associate

When I was using Keil and VSCode with the same piece of code, I found that I couldn't enter the ADC_DMA interrupt callback function when using VSCode. I was looking up the information and debugging in two software programs. I found that the address of the array where I stored the data was 0x20 in VSCode, while it was 0x24 in Keil. I attempted to adjust the array address to the correct one, but found that it couldn't be adjusted properly.If there is a solution, please let me know. Thank you.屏幕截图 2026-03-05 020543.png屏幕截图 2026-03-05 020825.png屏幕截图 2026-03-05 021113.png

1 ACCEPTED SOLUTION

Accepted Solutions
Pavel A.
Super User

In the GNU linker script you should properly define a filter for section named ".RAM" in the link script (look at examples or ask your favorite AI).  Or,  move the DTCMRAM to the end of regions (anywhere below the RAM region).

 

View solution in original post

1 REPLY 1
Pavel A.
Super User

In the GNU linker script you should properly define a filter for section named ".RAM" in the link script (look at examples or ask your favorite AI).  Or,  move the DTCMRAM to the end of regions (anywhere below the RAM region).