EIM registers cannot be accessed

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

EIM registers cannot be accessed

Jump to solution
2,074 Views
Janeting123
Contributor I

When I try to inject faults using EIM, whenever the code accesses the EIM register (read or write), it will enter BusFault. At the same time, when I use the Jtag simulator to observe, I find that EIM is not read, while other registers are OK. Is there any special operation required when accessing the EIM register? I checked RM and I think I meet these conditions. Why can't even the debugger see the register value?

0 Kudos
Reply
1 Solution
2,041 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The reason is simple. You do not have clocks enabled for EIM in your uC.

petervlna_0-1728991544468.png

Please refer to the reference manual: chapter 46.1.5 Peripheral clock gating

petervlna_1-1728991597411.png

Best regards,

Peter

 

View solution in original post

0 Kudos
Reply
1 Reply
2,042 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The reason is simple. You do not have clocks enabled for EIM in your uC.

petervlna_0-1728991544468.png

Please refer to the reference manual: chapter 46.1.5 Peripheral clock gating

petervlna_1-1728991597411.png

Best regards,

Peter

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1973334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEIM%20registers%20cannot%20be%20accessed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1973334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhen%20I%20try%20to%20inject%20faults%20using%20EIM%2C%20whenever%20the%20code%20accesses%20the%20EIM%20register%20(read%20or%20write)%2C%20it%20will%20enter%20BusFault.%20At%20the%20same%20time%2C%20when%20I%20use%20the%20Jtag%20simulator%20to%20observe%2C%20I%20find%20that%20EIM%20is%20not%20read%2C%20while%20other%20registers%20are%20OK.%20Is%20there%20any%20special%20operation%20required%20when%20accessing%20the%20EIM%20register%3F%20I%20checked%20RM%20and%20I%20think%20I%20meet%20these%20conditions.%20Why%20can't%20even%20the%20debugger%20see%20the%20register%20value%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1974233%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20EIM%20registers%20cannot%20be%20accessed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1974233%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EThe%20reason%20is%20simple.%20You%20do%20not%20have%20clocks%20enabled%20for%20EIM%20in%20your%20uC.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22petervlna_0-1728991544468.png%22%20style%3D%22width%3A%20971px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22petervlna_0-1728991544468.png%22%20style%3D%22width%3A%20971px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304784i667209222CF9A11B%2Fimage-dimensions%2F971x443%3Fv%3Dv2%22%20width%3D%22971%22%20height%3D%22443%22%20role%3D%22button%22%20title%3D%22petervlna_0-1728991544468.png%22%20alt%3D%22petervlna_0-1728991544468.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20the%20reference%20manual%3A%20chapter%2046.1.5%20Peripheral%20clock%20gating%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22petervlna_1-1728991597411.png%22%20style%3D%22width%3A%20646px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22petervlna_1-1728991597411.png%22%20style%3D%22width%3A%20646px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304785i1FF0183ED0202B7A%2Fimage-dimensions%2F646x341%3Fv%3Dv2%22%20width%3D%22646%22%20height%3D%22341%22%20role%3D%22button%22%20title%3D%22petervlna_1-1728991597411.png%22%20alt%3D%22petervlna_1-1728991597411.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E