ARM-software / vscode-cmsis-csolution

Extension support for VS Code CMSIS Project Extension
https://marketplace.visualstudio.com/items?itemName=Arm.cmsis-csolution
Other
23 stars 5 forks source link

I've a problem of required pack in the csolution #8

Closed Osika91 closed 1 year ago

Osika91 commented 1 year ago

Type: Bug Report

Describe the bug

Screenshots

Sans titre

You can see this screenshot that I've problen on required pack in the terminal when i want to run the command :

csolution convert -s Blinky.csolution.yml

mcgordonite commented 1 year ago

The extension gets the location of the pack cache from the CMSIS_PACK_ROOT environment variable. This can be overridden by the packCachePath setting in VS Code. Otherwise, it falls back to a default path.

Osika91 commented 1 year ago

I have solve my problem and you were right the problem was my CMSIS_PACK_ROOT environment variable which had a bad path. My path for the pack was C:\Users\"name"\AppData\Local\Arm\Packs. So thanks you very much !

But now when I create a C file in VS Code and including a library.h for my board VS Code says that the 'stm32f10x.h' file not found clang (pp_file_not_found). But I verify and this fils is include in this path : C:\Users\"name"\AppData\Local\Arm\Packs\Keil\STM32F1xx_DFP\2.4.0\Device\Include. Does I need to include it manually or i forgot something else ?

Here is a sreenshot of my project and my C file :

Sans titre2
mcgordonite commented 1 year ago

Have you tried to build the project? Do you see the same error as highlighted in VS Code? If not, this could be a problem with intellisense.

Otherwise, this sounds like a question for the Open-CMSIS-Pack community here: https://github.com/Open-CMSIS-Pack/devtools/issues. This repo is specifically for the VS Code extension rather than general csolution support.

Osika91 commented 1 year ago

Yes I build the project and there is different error. I'm going to ask my question the Open-CMSIS-Pack community. Thanks you for your help !