I have the latest PlatformIO and I can Upload firmware to the bluepill but when debugging I get the following error:
undefinedError: Traceback (most recent call last):
File "/Users/engmoh/.platformio/penv/lib/python3.8/site-packages/platformio/__main__.py", line 109, in main
cli() # pylint: disable=no-value-for-parameter
File "/Users/engmoh/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Users/engmoh/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/engmoh/.platformio/penv/lib/python3.8/site-packages/platformio/commands/__init__.py", line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "/Users/engmoh/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/engmoh/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/engmoh/.platformio/penv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/engmoh/.platformio/penv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/engmoh/.platformio/penv/lib/python3.8/site-packages/platformio/commands/debug/command.py", line 117, in cli
server_executable = debug_options["server"]["executable"].lower()
TypeError: 'NoneType' object is not subscriptable
============================================================
An unexpected error occurred. Further steps:
* Verify that you have the latest version of PlatformIO using
`pip install -U platformio` command
* Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq.html
* Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
I have one installation of VScode and platformio… I haven’t modified any file but the STlink.cfg configuration file (Or i can’t really remmeber the name) in the openOCD folder to allow non original boards STM32 MCUs to get debugged using openocd.