Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable better IntelliSense in STM32Cube framework by adding Src path to search path #449

Closed
maxgerhardt opened this issue Nov 25, 2020 · 3 comments

Comments

@maxgerhardt
Copy link
Contributor

As explained in https://community.platformio.org/t/a-detailed-description-of-the-functions-in-the-platformio/17369/5.

When you create a STM32Cube project in VSCode, e.g. for a board of the L4 series, you don't get the full intended autocomplete, that is, function descriptions, parameter descriptions etc are missing. This does work perfectly in fine in the competitor CubeIDE.

The source of the problem is that the STM32HAL has the actually detailed Doyxgen documentation in the Src/ folder of the HAL, not in the Inc/ folder, which is currently that what PlatformIO includes in the search path. As can be seen in the topic, after manually adding ../l4/Drivers/STM32L4xx_HAL_Driver/Src in the c_cpp_properties.json, the IntelliSense goes from

grafik

to

grafik

This should be easily fixable by adding the Src/ path too in the stm32cube.py builder script.

@valeros
Copy link
Member

valeros commented Nov 26, 2020

Thanks, resolved in ec29fab.

@valeros valeros closed this as completed Nov 26, 2020
@maxgerhardt
Copy link
Contributor Author

Oh wow that was a massive update, also all the STM32Cube packets were split up now according to their STM series? The underlying STM32HAL package was updated as well, thus resolving #439?

@valeros
Copy link
Member

valeros commented Nov 26, 2020

You're right, we now use the official packages. I also added some tweaks to configure the framework in a bit more flexible manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants