Closed gmgunderground closed 3 years ago
Hi,
If you have any recommendations or improvements for the tutorial I am happy to hear it. You can open a pull request or respond to this issue. I know installing tooling can be a pain an frustrating. There is a feature coming up where it tries to install all the requirements necessary. For now however, when the extension does not have the right paths for certain tools it will give a warning and a way to install them or enter the path. Check these messages to see what your are missing. You can also enter them when you go to file>preferences>settings and then under Extensions and STM32 for VSCode. It is hard to debug your specific issue without any details so for now I will just give you suggestions on what you can watch out for and try.
I also encountered this bug.
the problem is:
return GCC_PATH=${Helpers_1.convertToolPathToAbsolutePath(makeInfo.tools.armToolchainPath + '/arm-none-eabi-gcc', true)}
;
will create an invalid path and crash the build command without any output.
instead it should be
return GCC_PATH=${Helpers_1.convertToolPathToAbsolutePath(makeInfo.tools.armToolchainPath + path.sep + 'arm-none-eabi-gcc', true)}
;
When I delete settings.json and reissue the command build and flash i get this as output in terminal:
Executing task: make -f STM32Make.make flash <
openocd -f interface/stlink.cfg -f target/stm32f3x.cfg -c "program build/LED.elf verify reset exit"
Open On-Chip Debugger 0.10.0 (2020-12-28) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select
Terminal will be reused by tasks, press any key to close it.
-------------------------------END------------------------------
After that, There is a new settings.json and the commands will not work.
The debugger gives this error :
env. var.
I have done extensive testing on the version 3.0.0 to prevent this. I have implemented space escaping and it now uses the posix standard for path separation. This should solve the issues you were having.
I followed all your meager tutorial, and on Windows 10 doesn't do noting, doesn't compile, no output no log of what is going wrong. Path to GCC is OK, path to make is ok. Very frustrating trying to make it work