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

Use lcd ssd1289 in stm32f4discovery failed #510

Closed
hanwenlei opened this issue Mar 10, 2020 · 5 comments
Closed

Use lcd ssd1289 in stm32f4discovery failed #510

hanwenlei opened this issue Mar 10, 2020 · 5 comments

Comments

@hanwenlei
Copy link

I use the config "CONFIG_EXAMPLES_LVGLDEMO=y, CONFIG_LCD_SSD1289=y and CONFIG_VIDEO_FB=y" in "stm32f4discovery:usbnsh", and can be compiled. But when I run the lvgldemo application in nsh, I get the error "ERROR: Failed to open /dev/fb0: 2". I don't know what went wrong. How can i solve this problem?

@xiaoxiang781216
Copy link
Contributor

I use the config "CONFIG_EXAMPLES_LVGLDEMO=y, CONFIG_LCD_SSD1289=y and CONFIG_VIDEO_FB=y" in "stm32f4discovery:usbnsh", and can be compiled. But when I run the lvgldemo application in nsh, I get the error "ERROR: Failed to open /dev/fb0: 2". I don't know what went wrong. How can i solve this problem?

2 means that lvgldemo can't find /dev/fb0:
#define ENOENT 2
Please make sure you can see fb0 by:
ls /dev/
Otherwise, you have to fix fb0 issue before trying the lvgl demo.

@hanwenlei
Copy link
Author

When I do "ls /dev/", there really isn't "/dev/fb0". But in "boards\arm\stm32\stm32f4discovery\src\stm32_bringup.c", it calls "fb_register" function. I don't know why the fb driver is not registered.

@xiaoxiang781216
Copy link
Contributor

When I do "ls /dev/", there really isn't "/dev/fb0". But in "boards\arm\stm32\stm32f4discovery\src\stm32_bringup.c", it calls "fb_register" function. I don't know why the fb driver is not registered.

You need add some log to debug, other people is hard to help here without the same enviornment.

@patacongo
Copy link
Contributor

This appears to be a user who needs help, not really an issue. The more appropriate place to get help is in the dev@nuttx.apache.org mail list. What do we need to do to close this?

@xiaoxiang781216
Copy link
Contributor

@hanwenlei I will close this issue. As @patacongo suggestion, you can post the new question to dev list, so more people can give you help.

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

3 participants