Writing data from UART with DMA in a new Array

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

Writing data from UART with DMA in a new Array

Jump to solution
3,149 Views
12914A
Contributor III

Hi all,

I receive the data, but the problem is, that the CITER value from the ELINKNO register doesn't match with the value I got, when I write the registervalue in a variable.
Additionally the data in the recv_buf is not written from zero or the same field than in Msg.
I attached the DMA init and the code for the UART IRQ handler.

Please help me.

Sandra

Tags (3)
0 Kudos
Reply
1 Solution
3,105 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @12914A,

Have you read the register's value by debugging?

Julin_AragnM_0-1715026234807.pngJulin_AragnM_0-1715026234807.png

You can also test the example included with the example projects, which is based on the code in AN5413: S32K1xx Series Cookbook.

Julin_AragnM_1-1715026240510.pngJulin_AragnM_1-1715026240510.png

Best regards,
Julián

View solution in original post

0 Kudos
Reply
1 Reply
3,106 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @12914A,

Have you read the register's value by debugging?

Julin_AragnM_0-1715026234807.pngJulin_AragnM_0-1715026234807.png

You can also test the example included with the example projects, which is based on the code in AN5413: S32K1xx Series Cookbook.

Julin_AragnM_1-1715026240510.pngJulin_AragnM_1-1715026240510.png

Best regards,
Julián

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1858304%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWriting%20data%20from%20UART%20with%20DMA%20in%20a%20new%20Array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1858304%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20all%2C%3C%2FP%3E%3CP%3EI%20receive%20the%20data%2C%20but%20the%20problem%20is%2C%20that%20the%20CITER%20value%20from%20the%20ELINKNO%20register%20doesn't%20match%20with%20the%20value%20I%20got%2C%20when%20I%20write%20the%20registervalue%20in%20a%20variable.%3CBR%20%2F%3EAdditionally%20the%20data%20in%20the%20recv_buf%20is%20not%20written%20from%20zero%20or%20the%20same%20field%20than%20in%20Msg.%3CBR%20%2F%3EI%20attached%20the%20DMA%20init%20and%20the%20code%20for%20the%20UART%20IRQ%20handler.%3C%2FP%3E%3CP%3EPlease%20help%20me.%3C%2FP%3E%3CP%3ESandra%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1859938%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Writing%20data%20from%20UART%20with%20DMA%20in%20a%20new%20Array%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1859938%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F232799%22%20target%3D%22_blank%22%3E%4012914A%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EHave%20you%20read%20the%20register's%20value%20by%20debugging%3F%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Julin_AragnM_0-1715026234807.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Julin_AragnM_0-1715026234807.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277297iE211C36CA3084869%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Julin_AragnM_0-1715026234807.png%22%20alt%3D%22Julin_AragnM_0-1715026234807.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EJulin_AragnM_0-1715026234807.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EYou%20can%20also%20test%20the%20example%20included%20with%20the%20example%20projects%2C%20which%20is%20based%20on%20the%20code%20in%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN5413.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EAN5413%3A%20S32K1xx%20Series%20Cookbook.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Julin_AragnM_1-1715026240510.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Julin_AragnM_1-1715026240510.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F277298i9B59836ABE8C7F8E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Julin_AragnM_1-1715026240510.png%22%20alt%3D%22Julin_AragnM_1-1715026240510.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EJulin_AragnM_1-1715026240510.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E