BCTU DMA

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

BCTU DMA

Jump to solution
2,547 Views
Ayaz
Contributor IV

I’m working on reading ADC data using DMA. I’ve set up the DMA to trigger each time the FIFO is full, but I’m encountering an issue where the DMA only triggers once. I’m monitoring this with the Fifo1DmaComplete callback function. I’ve attached my project files. Could you help me identify the problem?

Tags (1)
0 Kudos
Reply
1 Solution
2,462 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

It is fixed,Please use the callback function below. 

  • Dma0_CH1_IRQHandle 
  • Dma0_CH16_IRQHandle

 

Those two function will be called again in the program.

  • Bctu_Ip_Bctu0Fifo1DmaComplete
  • Bctu_Ip_Bctu0Fifo2DmaComplete 

"

 

View solution in original post

0 Kudos
Reply
5 Replies
2,521 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

The usage provided by our RTD is fixed, and the DMA configuration has been completed for the user. P

lease refer to the following usage

Senlent_1-1736416535174.png

Read ADC data from "BctuDmaFifo1" in "BctuWatermarkNotifFIFO1"

Senlent_0-1736416516104.png

 

 

0 Kudos
Reply
2,491 Views
Ayaz
Contributor IV

Thanks for the info 
for this specific configuration, do we need to set the handle as shown in the image below or should it be replaced by 
Bctu_Ip_Bctu0Fifo1DmaComplete 
Bctu_Ip_Bctu0Fifo2DmaComplete
 what is the difference?  Skærmbillede 2025-01-13 152000.png

0 Kudos
Reply
2,475 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

Yes, you are right, but the callback function for the highlighted part is incorrect, please check it carefully.

Senlent_0-1736822742184.png

0 Kudos
Reply
2,467 Views
Ayaz
Contributor IV

Yes , but should this one be used 

Bctu_Ip_Bctu0Fifo1DmaComplete

Bctu_Ip_Bctu0Fifo2DmaComplete 

Or 

  • Dma0_CH1_IRQHandle 
  • Dma0_CH16_IRQHandleWhat is the difference?
0 Kudos
Reply
2,463 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@Ayaz

It is fixed,Please use the callback function below. 

  • Dma0_CH1_IRQHandle 
  • Dma0_CH16_IRQHandle

 

Those two function will be called again in the program.

  • Bctu_Ip_Bctu0Fifo1DmaComplete
  • Bctu_Ip_Bctu0Fifo2DmaComplete 

"

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2024183%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBCTU%20DMA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024183%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EI%E2%80%99m%20working%20on%20reading%20ADC%20data%20using%20DMA.%20I%E2%80%99ve%20set%20up%20the%20DMA%20to%20trigger%20each%20time%20the%20FIFO%20is%20full%2C%20but%20I%E2%80%99m%20encountering%20an%20issue%20where%20the%20DMA%20only%20triggers%20once.%20I%E2%80%99m%20monitoring%20this%20with%20the%26nbsp%3B%3C%2FSPAN%3EFifo1DmaComplete%3CSPAN%3E%26nbsp%3Bcallback%20function.%20I%E2%80%99ve%20attached%20my%20project%20files.%20Could%20you%20help%20me%20identify%20the%20problem%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2027339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20BCTU%20DMA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3EAyaz%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIt%20is%20fixed%EF%BC%8CPlease%20use%20the%20callback%20function%20below.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3EDma0_CH1_IRQHandle%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EDma0_CH16_IRQHandle%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThose%20two%20function%20will%20be%20called%20again%20in%20the%20program.%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EBctu_Ip_Bctu0Fifo1DmaComplete%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EBctu_Ip_Bctu0Fifo2DmaComplete%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%22%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2027327%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20BCTU%20DMA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027327%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes%20%2C%20but%20should%20this%20one%20be%20used%26nbsp%3B%3C%2FP%3E%3CP%3EBctu_Ip_Bctu0Fifo1DmaComplete%3C%2FP%3E%3CP%3E%3CSPAN%3EBctu_Ip_Bctu0Fifo2DmaComplete%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EOr%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSPAN%3EDma0_CH1_IRQHandle%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EDma0_CH16_IRQHandle%3C%2FSPAN%3E%3CSPAN%3EWhat%20is%20the%20difference%3F%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2027196%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20BCTU%20DMA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2027196%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22mailto%3AHi%40Ayaz%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHi%40Ayaz%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EYes%2C%20you%20are%20right%2C%20but%20the%20callback%20function%20for%20the%20highlighted%20part%20is%20incorrect%2C%20please%20check%20it%20carefully.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1736822742184.png%22%20style%3D%22width%3A%20707px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1736822742184.png%22%20style%3D%22width%3A%20707px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319398iCE486446C0CEF5EB%2Fimage-dimensions%2F707x147%3Fv%3Dv2%22%20width%3D%22707%22%20height%3D%22147%22%20role%3D%22button%22%20title%3D%22Senlent_0-1736822742184.png%22%20alt%3D%22Senlent_0-1736822742184.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2026819%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20BCTU%20DMA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2026819%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%20for%20the%20info%26nbsp%3B%3CBR%20%2F%3Efor%20this%20specific%20configuration%2C%20do%20we%20need%20to%20set%20the%20handle%20as%20shown%20in%20the%20image%20below%20or%20should%20it%20be%20replaced%20by%26nbsp%3B%3CBR%20%2F%3EBctu_Ip_Bctu0Fifo1DmaComplete%26nbsp%3B%3CBR%20%2F%3EBctu_Ip_Bctu0Fifo2DmaComplete%3CBR%20%2F%3E%26nbsp%3Bwhat%20is%20the%20difference%3F%26nbsp%3B%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Sk%C3%A6rmbillede%202025-01-13%20152000.png%22%20style%3D%22width%3A%20821px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Sk%C3%A6rmbillede%202025-01-13%20152000.png%22%20style%3D%22width%3A%20821px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319275iBA7FDDDF195B1C67%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Sk%C3%A6rmbillede%202025-01-13%20152000.png%22%20alt%3D%22Sk%C3%A6rmbillede%202025-01-13%20152000.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2024741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20BCTU%20DMA%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024741%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3EAyaz%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20usage%20provided%20by%20our%20RTD%20is%20fixed%2C%20and%20the%20DMA%20configuration%20has%20been%20completed%20for%20the%20user.%20P%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Elease%20refer%20to%20the%20following%20usage%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_1-1736416535174.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_1-1736416535174.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F318788i40C653CE1E6C6CAF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Senlent_1-1736416535174.png%22%20alt%3D%22Senlent_1-1736416535174.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ERead%20ADC%20data%20from%20%22BctuDmaFifo1%22%20in%20%22BctuWatermarkNotifFIFO1%22%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Senlent_0-1736416516104.png%22%20style%3D%22width%3A%20669px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Senlent_0-1736416516104.png%22%20style%3D%22width%3A%20669px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F318787iFD1E3DC16EDEC29D%2Fimage-dimensions%2F669x341%3Fv%3Dv2%22%20width%3D%22669%22%20height%3D%22341%22%20role%3D%22button%22%20title%3D%22Senlent_0-1736416516104.png%22%20alt%3D%22Senlent_0-1736416516104.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E