Comments (3)
I used updatePaths.py
to correct paths, and now when I run update.py, all directories are as i set, and flashing is fine! It's weird that I wrote the same path with file name included, but it didn't took into account the filename - stlink-v2.cfg
.
Fortunately invoking updatePaths.py
did the trick. Thanks!
from vs-code-stm32-ide.
What path did you specify when you run update.py
? Can you share your buildData.json
?
from vs-code-stm32-ide.
{ "ABOUT1": "This file holds combined user and CubeMX generated Makefile workspace dependecies.", "ABOUT2": "User should not edit this fields, instead it should edit 'c_cpp_properties.json'", "ABOUT3": "This file is regenerated on 'Update workspace' task.", "VERSION": "1.7", "LAST_RUN": "2021-03-27 21:40:38.102041", "cSources": [ "Src/main.c", "Src/usb_device.c", "Src/usbd_conf.c", "Src/usbd_desc.c", "Src/usbd_cdc_if.c", "Src/stm32f1xx_it.c", "Src/stm32f1xx_hal_msp.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pcd_ex.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_ll_usb.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_spi.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c", "Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c", "Src/system_stm32f1xx.c", "Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_core.c", "Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ctlreq.c", "Middlewares/ST/STM32_USB_Device_Library/Core/Src/usbd_ioreq.c", "Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Src/usbd_cdc.c" ], "asmSources": [], "ldSources": [ "-lc", "-lm", "-lnosys" ], "cIncludes": [ "Inc", "Drivers/STM32F1xx_HAL_Driver/Inc", "Drivers/STM32F1xx_HAL_Driver/Inc/Legacy", "Middlewares/ST/STM32_USB_Device_Library/Core/Inc", "Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc", "Drivers/CMSIS/Device/ST/STM32F1xx/Include", "Drivers/CMSIS/Include", "Drivers/CMSIS/Include" ], "asmIncludes": [], "ldIncludes": [], "cDefines": [ "USE_HAL_DRIVER", "STM32F103xB" ], "asmDefines": [], "cFlags": [ "-mcpu=cortex-m3", "-mthumb", "-DUSE_HAL_DRIVER", "-DSTM32F103xB", "-IInc", "-IDrivers/STM32F1xx_HAL_Driver/Inc", "-IDrivers/STM32F1xx_HAL_Driver/Inc/Legacy", "-IMiddlewares/ST/STM32_USB_Device_Library/Core/Inc", "-IMiddlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc", "-IDrivers/CMSIS/Device/ST/STM32F1xx/Include", "-IDrivers/CMSIS/Include", "-IDrivers/CMSIS/Include", "-Og", "-Wall", "-fdata-sections", "-ffunction-sections", "-g", "-gdwarf-2", "-MMD", "-MP", "-MF" ], "asmFlags": [ "-mcpu=cortex-m3", "-mthumb", "-Og", "-Wall", "-fdata-sections", "-ffunction-sections" ], "ldFlags": [ "-mcpu=cortex-m3", "-mthumb", "-specs=nano.specs", "-TSTM32F103CBTx_FLASH.ld", "-lc", "-lm", "-lnosys", "-Wl,-Map=build/V1.map,--cref", "-Wl,--gc-sections" ], "buildDir": "build", "targetExecutablePath": "build/V1.elf", "cubeMxProjectPath": "V1.ioc", "openOcdConfig": [ ".vscode/stm32f1x.cfg" ], "stm32SvdPath": ".vscode/STM32F103xx.svd", "ABOUT4": "---- Paths below are fetched from user-specific 'toolsPaths.json'. ----", "gccExePath": "/usr/bin/arm-none-eabi-gcc", "gccInludePath": "/usr/lib/gcc/arm-none-eabi/6.3.1/include", "buildToolsPath": "/usr/bin/make", "pythonExec": "python3", "openOcdPath": "/usr/bin/openocd", "openOcdInterfacePath": "/usr/share/openocd/scripts/interface" }
that is my buildData.json file. I see there is "openOcdInterfacePath": "/usr/share/openocd/scripts/interface"
.
But when I change it to /usr/share/openocd/scripts/interface/stlink-v2.cfg
, and run update.py, It is making this path "openOcdInterfacePath": "/usr/share/openocd/scripts/interface"
again, so nothing changes. Update.py doesn't asks me anything. When i ran it first time, It asked me for directories to stlink-v2.cfg, and i provided excatly /usr/share/openocd/scripts/interface/stlink-v2.cfg
from vs-code-stm32-ide.
Related Issues (20)
- Invalid path detected in 'buildData.json' 'stm32SvdPath' key HOT 9
- how to install HOT 4
- Building issue HOT 6
- .vscode cfg file not found by openocd HOT 3
- GDB not found HOT 2
- Error when Flashing HOT 1
- GNU eclipse tools, GNU Eclipse ARM Embedded GCC: 7-2018-q2 not available HOT 3
- Problem with FreeRTOS HOT 2
- Maybe I got a bug. HOT 4
- Problem with access (seemingly) when executing update.py HOT 8
- Update.py Run Error HOT 1
- Error (unrecoverable) Unable to find matching STM32 CPU name for Keil project device: STM32L072CTx HOT 2
- Install on Mac OS HOT 1
- gccExePath HOT 2
- Paths with spaces HOT 2
- IndexError: list index out of range HOT 1
- Make file missing seprator HOT 1
- PermissionError: [WinError 5] Access is denied HOT 1
- Try build and get this: "undefined reference to .... HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vs-code-stm32-ide.