LINFlexD UART Rx FIFO sofreset

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

LINFlexD UART Rx FIFO sofreset

1,181 Views
smp9
Contributor I

Hello,

 

I'm trying to setup the LINFlexD_9 in UART Mode using TX and RX FIFO buffers. The TX FIFO works fine, but when I enable the RX FIFO to exit init mode (LINCR1[INIT] = 0) causes a soft reset.

 

These are the values of the registers just before setting LINCR1[INIT] to 0.

smp9_0-1761154305537.png

smp9_1-1761154324634.png

smp9_2-1761154344468.png

 

Any idea what could be happening?

0 Kudos
Reply
3 Replies

1,154 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @smp9,

Thanks for contacting us again. I am assuming you are still using the S32E2. I checked how it is done in the RTD and it seems that it is needed to write both SLEEP and INIT bits at the same time:

alejandro_e_0-1761186480759.png

 

Are you performing the your configuration in that way?

If that is not the problem, can you share a complete dump of the LLCE registers just before writing 0 to LINCR1[INIT]? address range 0x42980000 - 0x4298005C

So I can compare with an example.

 

Thanks 

0 Kudos
Reply

1,137 Views
smp9
Contributor I

Hello @alejandro_e ,

 

I tried to write the SLEEP and WRITE bits at the same time, but the issue is still present.

I have attached a dump of the register values using 'Watch Registers' > 'Export' because 'Memory' > 'Export' does not work for those addresses.

 

Thanks.

0 Kudos
Reply

1,118 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @smp9,

Sorry for the late reply. You can just select all the registers in the Watch registers and copy them as coma separated data. However, since there few registers for LIN you can compare them by sight with the followin:

I sopped the program here, just before going to normal mode:

alejandro_e_0-1761343395436.png

With the following callstack:

alejandro_e_1-1761343406721.png

And the registers were as follows:

UARTCR 0x00000027
LINSR 0x00002000
LINOCR 0x0000FFFF
UARTPTO 0x00000FFF
BDRL 0x00000000
DMARXE 0x00000000
LINTOCR 0x00000E2C
LINFBRR 0x0000000B
LINCR1 0x00000080
BDRM 0x00000000
LINESR 0x00000000
LINCR2 0x00006000
UARTCTO 0x000009FE
UARTSR 0x00000048
LINCFR 0x00000000
BIDR 0x00000000
DMATXE 0x00000000
LINTCSR 0x00000200
GCR 0x00000000
LINIER 0x00000000
LINIBRR 0x00000015

 

Let me know if you find any significant differences 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2190921%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELINFlexD%20UART%20Rx%20FIFO%20sofreset%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190921%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI'm%20trying%20to%20setup%20the%20LINFlexD_9%20in%20UART%20Mode%20using%20TX%20and%20RX%20FIFO%20buffers.%20The%20TX%20FIFO%20works%20fine%2C%20but%20when%20I%20enable%20the%20RX%20FIFO%20to%20exit%20init%20mode%20(LINCR1%5BINIT%5D%20%3D%200)%20causes%20a%20soft%20reset.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThese%20are%20the%20values%20of%20the%20registers%20just%20before%20setting%26nbsp%3BLINCR1%5BINIT%5D%20to%200.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22smp9_0-1761154305537.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22smp9_0-1761154305537.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362157iF82791CA5DB845F9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22smp9_0-1761154305537.png%22%20alt%3D%22smp9_0-1761154305537.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22smp9_1-1761154324634.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22smp9_1-1761154324634.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362158i69FC7FCAD3B7175B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22smp9_1-1761154324634.png%22%20alt%3D%22smp9_1-1761154324634.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22smp9_2-1761154344468.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22smp9_2-1761154344468.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362159i4D839C4A1B2280AB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22smp9_2-1761154344468.png%22%20alt%3D%22smp9_2-1761154344468.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAny%20idea%20what%20could%20be%20happening%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2192784%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LINFlexD%20UART%20Rx%20FIFO%20sofreset%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2192784%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F254838%22%20target%3D%22_blank%22%3E%40smp9%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ESorry%20for%20the%20late%20reply.%20You%20can%20just%20select%20all%20the%20registers%20in%20the%20%3CEM%3EWatch%20registers%3C%2FEM%3E%26nbsp%3Band%20copy%20them%20as%20coma%20separated%20data.%20However%2C%20since%20there%20few%20registers%20for%20LIN%20you%20can%20compare%20them%20by%20sight%20with%20the%20followin%3A%3C%2FP%3E%0A%3CP%3EI%20sopped%20the%20program%20here%2C%20just%20before%20going%20to%20normal%20mode%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22alejandro_e_0-1761343395436.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22alejandro_e_0-1761343395436.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362548iF7CAED08A41023DB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22alejandro_e_0-1761343395436.png%22%20alt%3D%22alejandro_e_0-1761343395436.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWith%20the%20following%20callstack%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22alejandro_e_1-1761343406721.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22alejandro_e_1-1761343406721.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362549i10CDCA9FBA7E5C0A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22alejandro_e_1-1761343406721.png%22%20alt%3D%22alejandro_e_1-1761343406721.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAnd%20the%20registers%20were%20as%20follows%3A%3C%2FP%3E%0A%3CTABLE%20style%3D%22border-collapse%3A%20collapse%3B%20width%3A%20124pt%3B%22%20border%3D%220%22%20width%3D%22166%22%20cellspacing%3D%220%22%20cellpadding%3D%220%22%3E%3CCOLGROUP%3E%3CCOL%20style%3D%22width%3A%2062pt%3B%22%20span%3D%222%22%20width%3D%2283%22%20%2F%3E%20%3C%2FCOLGROUP%3E%0A%3CTBODY%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20width%3D%2283%22%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%20width%3A%2062pt%3B%22%3EUARTCR%3C%2FTD%3E%0A%3CTD%20width%3D%2283%22%20style%3D%22width%3A%2062pt%3B%22%3E0x00000027%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINSR%3C%2FTD%3E%0A%3CTD%3E0x00002000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINOCR%3C%2FTD%3E%0A%3CTD%3E0x0000FFFF%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3EUARTPTO%3C%2FTD%3E%0A%3CTD%3E0x00000FFF%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3EBDRL%3C%2FTD%3E%0A%3CTD%3E0x00000000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3EDMARXE%3C%2FTD%3E%0A%3CTD%3E0x00000000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINTOCR%3C%2FTD%3E%0A%3CTD%3E0x00000E2C%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINFBRR%3C%2FTD%3E%0A%3CTD%3E0x0000000B%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINCR1%3C%2FTD%3E%0A%3CTD%3E0x00000080%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3EBDRM%3C%2FTD%3E%0A%3CTD%3E0x00000000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINESR%3C%2FTD%3E%0A%3CTD%3E0x00000000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINCR2%3C%2FTD%3E%0A%3CTD%3E0x00006000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3EUARTCTO%3C%2FTD%3E%0A%3CTD%3E0x000009FE%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3EUARTSR%3C%2FTD%3E%0A%3CTD%3E0x00000048%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINCFR%3C%2FTD%3E%0A%3CTD%3E0x00000000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3EBIDR%3C%2FTD%3E%0A%3CTD%3E0x00000000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3EDMATXE%3C%2FTD%3E%0A%3CTD%3E0x00000000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINTCSR%3C%2FTD%3E%0A%3CTD%3E0x00000200%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3EGCR%3C%2FTD%3E%0A%3CTD%3E0x00000000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINIER%3C%2FTD%3E%0A%3CTD%3E0x00000000%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%20style%3D%22height%3A%2014.4pt%3B%22%3E%0A%3CTD%20height%3D%2219%22%20style%3D%22height%3A%2014.4pt%3B%22%3ELINIBRR%3C%2FTD%3E%0A%3CTD%3E0x00000015%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CBR%20%2F%3E%0A%3CP%3ELet%20me%20know%20if%20you%20find%20any%20significant%20differences%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2191657%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LINFlexD%20UART%20Rx%20FIFO%20sofreset%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2191657%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F238460%22%20target%3D%22_blank%22%3E%40alejandro_e%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20tried%20to%20write%20the%20SLEEP%20and%20WRITE%20bits%20at%20the%20same%20time%2C%20but%20the%20issue%20is%20still%20present.%3C%2FP%3E%3CP%3EI%20have%20attached%20a%20dump%20of%20the%20register%20values%20using%20'Watch%20Registers'%20%26gt%3B%20'Export'%20because%20'Memory'%20%26gt%3B%20'Export'%20does%20not%20work%20for%20those%20addresses.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2191081%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LINFlexD%20UART%20Rx%20FIFO%20sofreset%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2191081%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F254838%22%20target%3D%22_blank%22%3E%40smp9%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20contacting%20us%20again.%20I%20am%20assuming%20you%20are%20still%20using%20the%20S32E2.%20I%20checked%20how%20it%20is%20done%20in%20the%20RTD%20and%20it%20seems%20that%20it%20is%20needed%20to%20write%20both%20SLEEP%20and%20INIT%20bits%20at%20the%20same%20time%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22alejandro_e_0-1761186480759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22alejandro_e_0-1761186480759.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362187i9C71206B08A6509F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22alejandro_e_0-1761186480759.png%22%20alt%3D%22alejandro_e_0-1761186480759.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAre%20you%20performing%20the%20your%20configuration%20in%20that%20way%3F%3C%2FP%3E%0A%3CP%3EIf%20that%20is%20not%20the%20problem%2C%20can%20you%20share%20a%20complete%20dump%20of%20the%20LLCE%20registers%20just%20before%20writing%200%20to%20LINCR1%5BINIT%5D%3F%20address%20range%200x42980000%20-%26nbsp%3B0x4298005C%3C%2FP%3E%0A%3CP%3ESo%20I%20can%20compare%20with%20an%20example.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E