lvgl / lv_binding_micropython

LVGL binding for MicroPython
MIT License
237 stars 156 forks source link

SDCard is not working in STM32F769DISCO #277

Closed ZXC-zxc closed 1 year ago

ZXC-zxc commented 1 year ago

Hello,I forked lv_micropython release/v8 branch, and complied the code to STM32F769DISCO board(by add a C module display driver),it worked. But when I insert the SD card,the code cannot run ,it's stuck in the beginning. I tried the origin micropython with the same version(v1.19.1),it's worked fine,it mount the sdcard to "/sd" and can read the files.

What's the different between the two versions of micropython in sdcard , and what's next direction I should research , thanks.

amirgon commented 1 year ago

@embeddedt - Looks like STM specific issue. any idea?

ZXC-zxc commented 1 year ago

I debug the code,I found the code crash at this line,when it check the "SKIPSD" file.https://github.com/lvgl/lv_micropython/blob/1b212e7c979c17c11aa9d61630ee41c68532fad1/ports/stm32/main.c#L547 Is it something wrong with the vfs? I can use Thonny to read and write the main.py in the flash.

amirgon commented 1 year ago

I debug the code,I found the code crash at this line,when it check the "SKIPSD" file.https://github.com/lvgl/lv_micropython/blob/1b212e7c979c17c11aa9d61630ee41c68532fad1/ports/stm32/main.c#L547 Is it something wrong with the vfs?

CC: @kisvegabor

kisvegabor commented 1 year ago

Unfortunately I have no idea either :slightly_frowning_face: I've just tried out if the screen works well but I don't know much about its details.

ZXC-zxc commented 1 year ago

Sorry bros,it's my fault. In my display driver,I use dma2d to send the data to screen, but it's conflict with the dma handler in sdcard. I disable the dam in my display driver ,it's worked as expect.