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

STM32U5 HSI and HSE SetSysClocks missing (only MSI implemented) #15516

Open
mloomanpv opened this issue May 24, 2024 · 1 comment
Open

STM32U5 HSI and HSE SetSysClocks missing (only MSI implemented) #15516

mloomanpv opened this issue May 24, 2024 · 1 comment

Comments

@mloomanpv
Copy link

Description of defect

Hello all,
For my project I have a STM32U575ZI MCU with an external crystal that oscillates at 24MHz. Naturally, I wanted to set this in both custom_targets.json
"overrides": { "clock_source": "USE_PLL_HSE_XTAL" },
"config" : { "hse_value": { "macro_name": "HSE_VALUE", "value": "24000000" } },
as well as the PLL values in the system_clock.c file for the internal clock, located originally in mbed-os\targets\TARGET_STM\TARGET_STM32U5\TARGET_STM32U575xI
However, only the SetSysClock_PLL_MSI() function is implemented, while I need the SetSysClock_PLL_HSE(). [see image below]
Both the SetSysClock_PLL_HSE() and SetSysClock_PLL_HSI() just return 0, with even the command //TODO

image

This is probably just overlooked. For now I can test already some things with the internal clock. However, don't think it will be good enough for the CANbus communication.

Target(s) affected by this defect ?

STM32U585xI, STM32U575xI, STM32U575xG

Toolchain(s) (name and version) displaying this defect ?

N/A

What version of Mbed-os are you using (tag or sha) ?

mbed-os6.17.0 (https://github.com/ARMmbed/mbed-os/releases/tag/mbed-os-6.17.0)
However, I see the issue is still present in the master branch.

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

N/A

How is this defect reproduced ?

One can reproduce this defect, by compiling for either of the STM32U5 MCU's while setting the internal clock to follow the HSI or external crystal HSE.

@jeromecoutant
Copy link
Collaborator

Hi

Both the SetSysClock_PLL_HSE() and SetSysClock_PLL_HSI() just return 0, with even the command //TODO

Yes... but functions are "weak",
so you can define them in your application!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Untriaged
Status: Needs Triage
Development

No branches or pull requests

3 participants