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

Hello world example not working #9

Open
serega3000 opened this issue Apr 25, 2024 · 2 comments
Open

Hello world example not working #9

serega3000 opened this issue Apr 25, 2024 · 2 comments

Comments

@serega3000
Copy link

Hello!

Like in this issiue, i also tried to run demo with display, and it also not worked. I made same steps like in previous issue, the same result.

Examples with LEDS works fine.

I tried to debug it with openocd, and see that it freeze when calling "disp.set_rotation" method. Without any errors.
When i remove this line, it freeze when call disp.init().
In any attempt it freeze when trying to interact with display.

I`m very first in Rust and Embedded, just want to ask, maybe problem caused by wrong pins setup for display?
In your code you setup pins PB6 and PB7 for SCL and SDA. But in the specification i see that SCL and SDA is on PF7, PF9 pins.
I tried to setup it on that pins, but library did not allow me to do that with type errors. Can you guide me in which direction to think further?

Thank you for your project, it much easier to start with embedded than any C++ examples.

@burrbull
Copy link
Member

This crate is abandoned and does not have anything board-specific except leds.
So I recommend to use stm32f4xx-hal directly.

@serega3000
Copy link
Author

Thank you. Just for future readers: i working with board version stm32f429i-disc1.
And looks like that version dont have i2c interface. After trying huge amount of examples, i found only one that really working with display https://github.com/flaminggoat/stm32f429-discovery-rust
And only when configure it in SPI INTERFACE (some lines should be uncommented).
PARALLEL GPIO8 interface from that example also not worked.

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