PE suggested fix/addition. DMA request count overflow detection.

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

PE suggested fix/addition. DMA request count overflow detection.

730件の閲覧回数
andrewparlane
Contributor IV

Hi,

 

I have a PE DMA Channel LDD component setup to require 513 bytes, on UARTx Rx. This worked great, until I enabled minor loop channel linking. Then I started getting an on complete event after receiving only 1 byte.

 

Turns out this was because when you enable minor loop linking, the BITER and CITER fields in the BITER and CITER registers go from 15 bit to 9 bit. Since I had 513 bits set, this actually got written as 0x01, hence my issue.

 

It would be nice if PE warned you that the request count field was out of bounds. It doesn't do this in either of the 9 or 15 bit cases ATM.

 

Unfortunately I wasted around 10 hours on this, and that could have been solved by a quick warning or comment on this field.

 

I'm sorted now, so no hurry, but thought it might be of interest to others.

 

Andy

ラベル(1)
タグ(2)
0 件の賞賛
返信
0 返答(返信)