damogranlabs / VS-Code-STM32-IDE

Use VS Code as STM32 IDE with CubeMX
MIT License
247 stars 52 forks source link

Failed in getGccIncludePath #13

Closed EnyuZhuang closed 5 years ago

EnyuZhuang commented 5 years ago

When I run the update.py, it failed to get the file path of "stdint.h" in getGccIncludePath.

It was fixed by changing

gccExeFolderPath = os.path.dirname(gccExePath)
gccFolderPath = os.path.dirname(gccExeFolderPath)
searchPath = os.path.join(gccFolderPath, "lib", "gcc", "arm-none-eabi")

to

gccFolderPath = os.path.dirname(gccExePath)
searchPath = os.path.join(gccFolderPath, "lib", "gcc", "arm-none-eabi")

Maybe my folder structure is different? My bin and lib are in the same folder.

EnyuZhuang commented 5 years ago

I found the reason that I run into this problem. I did not include the "arm-none-eabi-gcc.exe" when I entered "path or command for 'arm-none-eabi-gcc executable (arm-none-eabi-gcc.exe)':".

Sorry for the inconvenience.