Error when running BSP Library on STM32L4R9I Discovery

Hello everyone,

I am Huy. Currently I am working on a project "Running MicroPython on STM32L4R9I Discovery". In this project, my team wrote a display driver for the display module ST-AUO. When I tested the driver on STM32CubeIDE then load into the board, the performance is smooth and runnable. However, when I use MicroPython (on Ubuntu) to make a .hex file and flash the board, I could not write anything after the function BSP_LCD_Refresh() (I wrote on REPL). As soon as the BSP_LCD_Refresh() is called, the screen display the color I expected but then I could not insert anything in REPL. After 30 seconds or so, It automatically exit to the Terminal. 

Here is the code of my driver:

Currently, the team has doubt on GC and Memory conflict. 

Also, in MycroPython on Ubuntu, we dont know the way to debug the error.

So, What might be the cause of this situation and how can we debug this?

Thank you, Huy

0