bmd-studio / stm32-for-vscode

STM32 extension for working with STM32 and CubeMX in VSCode
MIT License
195 stars 27 forks source link

Not reliably getting svd file #128

Closed jortbmd closed 1 year ago

jortbmd commented 1 year ago

Currently a naïve implementation is used for getting svd files from the following repository: https://api.github.com/repos/posborne/cmsis-svd/contents/data/STMicro this has a host of SVD files which should cover most use cases. However due to the current implementation a lot of the svd files are not found. The issue is present in the src/projectSetup/svdFiles.ts in the getSVDFileForChip function.

jortbmd commented 1 year ago

Fixed in version: 3.2.4 by using Levenstein distances.