Problems in using STM32 Hal Library #44928
Replies: 1 comment 1 reply
-
So, your basic problem is that you are trying to use CubeMX-generated code that is not directly compatible with Zephyr. CubeMX does things in very different (bad) ways compared to Zephyr's device driver model. Fundamentally, the SystemClock_Config line is going to conflict, because Zephyr will already have enabled the system clocks before your code runs, so it will crash. There are already drivers and samples that use LCDs on STM32, but unfortunately not for this particular LCD. Take a look at the lvgl display sample: https://docs.zephyrproject.org/latest/samples/subsys/display/lvgl/README.html |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hello everyone
I try to use stm32f7 Hal Library in my zephyr app project to operate stm32f746g_ Disco's LCD works through ltdc, but unfortunately it can't work normally. After I compiled and burned the code, the LCD didn't achieve my expected effect. Finally, I compiled the same code on keil5 and found that it can drive the LCD after burning it on the board.
Has the Hal library on zephyr changed anything? Or I can't access the physical address directly.
Please help me, thank you from the bottom of my heart
Here is my main c:
Beta Was this translation helpful? Give feedback.
All reactions