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

HAL EX modules (e.g. HAL_PWREx_ControlVoltageScaling) #215

Open
stawiski opened this issue Jun 19, 2021 · 1 comment
Open

HAL EX modules (e.g. HAL_PWREx_ControlVoltageScaling) #215

stawiski opened this issue Jun 19, 2021 · 1 comment

Comments

@stawiski
Copy link

Hi,

First of all, great repo 👍

I'm opening new issue that relates to: #159
I ran into the same problem as the author of that issue.

Basically as soon as you try to compile a CubeMX generated code that will most likely include SystemClock_Config() which might use HAL_PWREx_ControlVoltageScaling(), you will need to include an "ex" HAL module.

It took me a while to figure out how to do it (eventually found the aforementioned issue on github).

I'd propose to make this clearer:

  • by an example
  • by readme

For reference to include stm32xxxx_hal_pwr_ex.c which solved my problem:

target_link_libraries(...
    ....
    HAL::STM32::G0::PWREx
    ...
)

Cheers

@atsju
Copy link
Collaborator

atsju commented Jun 21, 2021

Hi @stawiski
Thank you for your issue. You are clearly pointing out a difficulty the newcomers may face.
Please consider doing a pull request to add to readme and example.
I promise it won't take long to merge and it would help other users too.

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