S32K312 - DMA major loop destination address writing problem.

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

S32K312 - DMA major loop destination address writing problem.

2,311 Views
BRK_Y
Contributor III
Hi,
I am trying to read 6 adc channels with DMA in  s32k312. That's why I use BCTU. BCTU makes DMA configurations automatically, but I manually change the major loop counter to 10. I allow new ADC readings by reopening the DMA hw request within the DMA loop major interrupt. My problem is this: The buffer I gave in the first DMA interrupt is filled with 60 values ​​(6 channels x 10 major loops count) as it should be. However, the second interrupt fills the buffer with 66 values.
0 Kudos
Reply
6 Replies

2,253 Views
PetrS
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

2,283 Views
BRK_Y
Contributor III
To understand the reason, I reset the DMA buffer in each interrupt and checked it with debug. The first interrupt is ok.
0 Kudos
Reply

2,269 Views
BRK_Y
Contributor III

Second, starting from the 48th element, values ​​are written to the buffer by shifting 6 elements.

0 Kudos
Reply

2,264 Views
BRK_Y
Contributor III

Others, 54 values ​​in the buffer. I think written to same destination address in two major loops.

0 Kudos
Reply

2,251 Views
BRK_Y
Contributor III

Others, 54 values ​​are written to the buffer. Ithink values ​​are written to the same destination address in the two major loops.

0 Kudos
Reply

2,302 Views
BRK_Y
Contributor III

This problem occurs when the major loop counter is set to any value other than 1. Shouldn't we change the configurations when used with BCTU? If we can change it, which configuration should I change in addition to the major loop counter to get rid of this error?

0 Kudos
Reply