mcu:rt1052
sdk:2.3.1
Rt1052 has a serial port configured for serial DMA reception (refer to example edma_rb_transfer),If it works alone, it can receive data normally.If run EMWIN on LCD, the following conditions may lead to abnormal receiving of serial DMA: Brush 2D graphics every 300ms, after a period of time, the serial DMA has idle interrupt, but the amount of data is always 0; Or if mutipage switches the interface frequently, the above problems will also appear.
Parameters of serial port configuration:
Parameters of emwin configuration:
what may be the problem?
EMWIN's other wigets, such as text , refresh the value, will not affect. It seems that only using the following API will affect the serial port DMA reception.
This function will issue a WM_ Panit message to the window, the final realization of 2D drawing
Hello,
Have you tried using the latest SDK release to see if the problem persists?
Are you also using DMA for the emWin GUI?
Regards,
Gustavo
Thank you for your reply! The rt1052 lcdif peripheral does not use DMA, and only the sending and receiving DMA of serial port is enabled. But I found that the serial port had or error (1.png) during debugging. I think it should be that the DMA reading is not timely, resulting in the overflow of serial port reception. In addition, in EMWIN drawing 2D graphics code (2. PNG), the test found that the painting process took about 7 Ms. But I don't know what causes the serial DMA to not work.