Marus / cortex-debug-db-stm32f4

Device Support Pack for STM32F4 Family
4 stars 1 forks source link

Unable to parse SVD file #1

Open vindicatorr opened 5 years ago

vindicatorr commented 5 years ago

"device": "STM32F407VG"

Unable to parse SVD file: Error: ENOENT: no such file or directory, open '/home/username/.vscode-insiders/extensions/marus25.cortex-debug-dp-stm32f4-1.0.0/data/STM32F40x.svd'

extensions.ts

cdbg.registerSVDFile(/STM32F40[57][RVZI][GE]/i, path.join(context.extensionPath, 'data', 'STM32F40x.svd'));

STM32F40x.svd doesn't seem to yet exist in https://github.com/Marus/cortex-debug-db-stm32f4/tree/master/data.

It's no big deal for me since I already had the STM32F407.svd, but I just wanted to see the changes in the 0.3.0 Cortex-Debug update changelog. I commented out the "svdFile" line in my launch.json, for the moment, to see it in action.

Also for anyone else updating, for some reason after I updated Cortex-Debug and was reading through the changelog and saw the part about these additional extensions that could be found by searching for "cortex-debug" in the marketplace, no other extensions showed up besides the one from discotools. I tried multiple times, and think they finally showed up in the search after I closed/reopened vscode. Updating cortex-debug did NOT require a restart.

EDIT0: Heh, the 0.3.1 update came quickly. Don't know what's in that though.

andresv commented 4 years ago

I was using it with STM32F405 which is also missing. There is very nice central repository for SVD files: https://github.com/posborne/cmsis-svd/tree/master/data/STMicro Currently I am taking F405 file from there.