Will EMWIN affect rt1052 serial port DMA reception?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Will EMWIN affect rt1052 serial port DMA reception?

1,715 次查看
944706426
Contributor III

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:

944706426_0-1619661493700.png

Parameters of emwin configuration:

944706426_1-1619661568325.png

what may be the problem?

标记 (1)
0 项奖励
回复
6 回复数

1,635 次查看
944706426
Contributor III

No one can provide ideas to solve the problem? I feel a bit disappointed.

0 项奖励
回复

1,647 次查看
944706426
Contributor III

What reasons will affect DMA reception of serial port?

0 项奖励
回复

1,659 次查看
944706426
Contributor III

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.1.png

This function will issue a WM_ Panit message to the window, the final realization of 2D drawing

0 项奖励
回复

1,705 次查看
gusarambula
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复

1,606 次查看
944706426
Contributor III

What about NXP technicians? Can you give me an idea?

0 项奖励
回复

1,686 次查看
944706426
Contributor III

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.

11

 

22

0 项奖励
回复