Code Monkey home page Code Monkey logo

Comments (3)

ng91 avatar ng91 commented on August 21, 2024 1

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.

schperplata avatar schperplata commented on August 21, 2024

What path did you specify when you run update.py? Can you share your buildData.json?

from vs-code-stm32-ide.

ng91 avatar ng91 commented on August 21, 2024

{ "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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.