Closed Przasa closed 5 years ago
Hello Przasa! Before we continue with resolving this issue, just try to change VS Code default terminal to PowerShell.
If I use cmd
, I get the same error:
''C:' is not recognized as an internal or external command,
operable program or batch file.
Let me know.
Hello shperplata Changing the the terminal to powershell helped to build the the code --> thanks for that. However i still have problems with including files. I can imagine including files manually, but it doesn't seems to be correct way. (Folders' structure looks fine in my opinion)
Moreover, building the project the second (and nth) time, leads to some problems:
> Executing task in folder p0_starter: & 'C:/Users/Piotr/AppData/Roaming/GNU MCU Eclipse/Build Tools/2.12-20190422-1053/bin/make.exe' 'GCC_PATH=C:/Users/Piotr/AppData/Roaming/GNU MCU Eclipse/ARM Embedded GCC/armgcc/bin' -j6 <
make: Nothing to be done for 'all'.
Terminal will be reused by tasks, press any key to close it.
> Executing task in folder p0_starter: & 'C:/Users/Piotr/AppData/Roaming/GNU MCU Eclipse/OpenOCD/0.10.0-12-20190422-2015/bin/openocd.exe' -f 'C:/Users/Piotr/AppData/Roaming/GNU MCU Eclipse/OpenOCD/0.10.0-12-20190422-2015/scripts/target/stm32f1x_stlink.cfg' -f .vscode/stm32f1x.cfg -c 'program build/p0_starter.elf verify reset exit' <
GNU MCU Eclipse OpenOCD, 64-bitOpen On-Chip Debugger 0.10.0+dev-00593-g23ad80df4 (2019-04-22-20:25)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
WARNING: target/stm32f1x_stlink.cfg is deprecated, please switch to target/stm32f1x.cfg
Error: Debug adapter does not support any transports? Check config file order.
Error: unable to select a session transport. Can't continue.
shutdown command invoked
Terminal will be reused by tasks, press any key to close it.
I would be grateful for receiving advise.
Best Regards, PRzasa
Changing the the terminal to powershell helped to build the the code --> thanks for that.
Great, I will add this to the docs.
However i still have problems with including files. I can imagine including files manually, but it doesn't seems to be correct way. (Folders' structure looks fine in my opinion)
I can't really see what is your complete folder structure. What is your workspace (current) working directory? 'c_cpp_properties.json' paths should be relative to cwd - workspace root directory.
Moreover, building the project the second (and nth) time, leads to some problems: make: Nothing to be done for 'all'.
This is not an error, just a notification of make.exe - nothing to do, project is already in the latest build state.
WARNING: target/stm32f1x_stlink.cfg is deprecated, please switch to target/stm32f1x.cfg
As it says, change to correct interface, and see if other errors will be resolved. Following lines (Error: Debug adapter does not support any transports? Check config file order. Error: unable to select a session transport. Can't continue.
) might also be connection/board issues.
Also, switch to previous version of compiler. I didn't check the latest version, but there were some issues reported here.
I have followed your instruction, but i still struggling with files linking.
After implementing basic instruction to main.c, VSCode is showing some errors also.
Also the cortex dubugger is not able to run:
I am sending the full project here. Please help me to find the issue. https://gofile.io/?c=vAbRQA
After implementing basic instruction to main.c, VSCode is showing some errors also.
Yeah, I see the problem now. I wasn't paying attention before, since my autocomplete/go to definition worked. What you are seeing is already reported VS Code bug (#3912), but it shouldn't affect the build process. IDE indeed shows error squigles, but paths are actually resolved when build process is run. Is it true, your build task is successfully executed?
Also the cortex dubugger is not able to run
This issue is a little more complex as it seems, and I can't give you instructions how to solve it - I don't have any STM32F1 board. Anyway, don't give up yet, here are a couple of clues:
Just as a precaution: as .json fields can be edited manually, it is easy to make mistake and not update all the relevant fields in all .json files. The safest way is to just use updatePaths.py script while changing workspace settings.
Thank you for spending time for my case.
I'll try to expirements with your clues. In the meanwhile i switched to platform.io where everything works fine. Since it's a pretty similar project, i should compare the differences between them.
If i'll get the solution, I'll share it hare.
Hi. I encountered a problem during building the code. It's seems, I am not able to lounch the "make.exe". Probably there is something missing in json.files, but I can't find the reason (everything look fine).
I was able to run "make.exe" from cmd but, i don't know how to move forward with VS. I'll be really grateful for receiving an advice.