Will EMWIN affect rt1052 serial port DMA reception?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Will EMWIN affect rt1052 serial port DMA reception?

1,655件の閲覧回数
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,575件の閲覧回数
944706426
Contributor III

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

0 件の賞賛
返信

1,587件の閲覧回数
944706426
Contributor III

What reasons will affect DMA reception of serial port?

0 件の賞賛
返信

1,599件の閲覧回数
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,645件の閲覧回数
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,546件の閲覧回数
944706426
Contributor III

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

0 件の賞賛
返信

1,626件の閲覧回数
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 件の賞賛
返信