Issue with latest X-CUBE-DISPLAY
I'm using a NUCLEO-L476RG with a X-NUCLEO-GFX01M1 (MB1642-DT022CTFT-B01). With X-CUBE-DISPLAY v2.0.1, it works fine, but with v2.2.0, after reset, the display just flickers. Any ideas?
I'm using a NUCLEO-L476RG with a X-NUCLEO-GFX01M1 (MB1642-DT022CTFT-B01). With X-CUBE-DISPLAY v2.0.1, it works fine, but with v2.2.0, after reset, the display just flickers. Any ideas?
Hello,
Yes indeed there is a bug with 2.2.0 when using DMA.
The BSP_[LCD|MEM]_WriteDataDMA was unlocking the APIs at the exit of the API call so transfers could overlaps.
To continue you work until getting the new release which will provide the fix, you can remove call to
MEM_OS_Unlock(Instance); at the end of these functions
lcd_io.c : remove line 462
mem_io.c : remove line 363
Or just disable DMA from the test application and recompile.
app_display.c:
#define USE_MEM_DMA 1
#define USE_LCD_DMA 1
to
#define USE_MEM_DMA 0
#define USE_LCD_DMA 0
Best Regards,
Karim
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.