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

STM32F411 - problem with serial example #3531

Open
charleselie opened this issue Nov 12, 2024 · 2 comments
Open

STM32F411 - problem with serial example #3531

charleselie opened this issue Nov 12, 2024 · 2 comments

Comments

@charleselie
Copy link

Hello,

I'm trying embassy to evaluate differences with the standard use of stm32hal.

I have difficulties using the serial example.

first :
use embassy_stm32::usb::{Driver, Instance};
usb is not in the root, but usb_otg is, so I've replaced it with usb_otg

second :
bind_interrupts!(struct Irqs {
OTG_FS => usb::InterruptHandlerperipherals::USB_OTG_FS;
});

the interrupt binding is not working and provide the following error : unsafe impl for safe trait and failed to resolve use of undeclared crate or module.

even if I replace with usb_otg, I get the same error.

I've tried different solutions, but can't make the code build, any ideas ?

@kingofpayne
Copy link
Contributor

Depending on your chip, there might be USB_OTG_HS (high speed) instead.

@charleselie
Copy link
Author

I found one part of the problem.
Mainly because I was working with the crate, and not with repo.
After cloning the repo, it "works" better.

Now my problem is about finding the right configuration to make the USB work, for now I can't pass the configuration, I think it's because of the clock settings. Even if I choose the right Hse, I still can't make it work, but I'll look after that.

if someone has already found a way to make it work with different clock speed than the example.

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