Will EMWIN affect rt1052 serial port DMA reception?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Will EMWIN affect rt1052 serial port DMA reception?

1,687 Views
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?

Tags (1)
0 Kudos
Reply
6 Replies

1,607 Views
944706426
Contributor III

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

0 Kudos
Reply

1,619 Views
944706426
Contributor III

What reasons will affect DMA reception of serial port?

0 Kudos
Reply

1,631 Views
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 Kudos
Reply

1,677 Views
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 Kudos
Reply

1,578 Views
944706426
Contributor III

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

0 Kudos
Reply

1,658 Views
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 Kudos
Reply