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

ST STM32U0: definition of USART4 is missing #84459

Open
dm5tt opened this issue Jan 23, 2025 · 3 comments · May be fixed by #84537
Open

ST STM32U0: definition of USART4 is missing #84459

dm5tt opened this issue Jan 23, 2025 · 3 comments · May be fixed by #84537
Assignees
Labels
area: Boards Enhancement Changes/Updates/Additions to existing features platform: STM32 ST Micro STM32

Comments

@dm5tt
Copy link

dm5tt commented Jan 23, 2025

Describe the bug

While playing around with the ST STM32U083CCT6 I wasn't able to address USART4 for console applications.

Having a look into all dts/arm/st/u0/stm32u0*.dtsi showed that the definition of that interface is missing entirely.

Fix

Looking up the datasheet at page 60 shows

Image

Adding following lines to zephyr/dts/arm/st/u0/stm32u0.dtsi solves the issue.

usart4: serial@40004C00 {
	compatible = "st,stm32-usart", "st,stm32-uart";
	reg = <0x40004C00 0x400>;
	clocks = <&rcc STM32_CLOCK(APB1, 19U)>;
	resets = <&rctl STM32_RESET(APB1L, 19U)>;
	interrupts = <30 0>;
	status = "disabled";
};

Note: A implemented demo worked perfectly with these parameters. But I'm not able to verify them 100% right now, especially interrupts .

@dm5tt dm5tt added the bug The issue is a bug, or the PR is fixing a bug label Jan 23, 2025
Copy link

Hi @dm5tt! We appreciate you submitting your first issue for our open-source project. 🌟

Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙

@dm5tt dm5tt changed the title ST STM32U0: definition USART4 is missing ST STM32U0: definition of USART4 is missing Jan 23, 2025
@kartben
Copy link
Collaborator

kartben commented Jan 24, 2025

@dm5tt i can feel a pull request coming from you in the very near future? 😊 Thanks for taking the time to report the issue!

@erwango erwango added Enhancement Changes/Updates/Additions to existing features and removed bug The issue is a bug, or the PR is fixing a bug labels Jan 24, 2025
@dm5tt
Copy link
Author

dm5tt commented Jan 24, 2025

Right feeling :-) Will take care of a pull request the next days.

dm5tt added a commit to dm5tt/zephyr that referenced this issue Jan 24, 2025
Sources of information:
- address: "RM0503 Reference Manual", p. 60
- interrupts: "RM0503 Reference Manual", p. 260

Fixes: zephyrproject-rtos#84459

Signed-off-by: Holger Adams <[email protected]>
dm5tt added a commit to dm5tt/zephyr that referenced this issue Jan 24, 2025
Sources of information:
- address: "RM0503 Reference Manual", p. 60
- interrupts: "RM0503 Reference Manual", p. 260

Fixes: zephyrproject-rtos#84459

Signed-off-by: Holger Adams <[email protected]>
@dm5tt dm5tt linked a pull request Jan 24, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Boards Enhancement Changes/Updates/Additions to existing features platform: STM32 ST Micro STM32
Projects
None yet
3 participants