LPC5536 MCAN RF0F Interrupt

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

LPC5536 MCAN RF0F Interrupt

571 Views
microcris
Contributor III

Hello,

Why am I getting this interrupt (IR:RF0F) if the IE:RF0FE is set to 0?

 

I'm trying to figure this out by monitoring the IE register and it is changing from 0x3800000 to 0x3800001, the bit number 3 is not being set at anytime.

 

Best regards,

Cristiano Rodrigues

 

 

0 Kudos
Reply
3 Replies

528 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @microcris 

Thanks for your question.

The flag (IR:RF0F) is automatically set by the hardware and has no relation to the interrupt enable register IE:RF0FE. The IE register notifies the CPU to execute the interrupt handler. Regarding the change of IE bit 0 from 0 to 1, please debug the code to check where this bit is being modified.

Thank you.

BR

Alice

0 Kudos
Reply

384 Views
microcris
Contributor III
Hello @Alice_Yang!

Thank you for your answer.
It is all fine with the IE register. I was just stating that the IE:RF0FE (it is the bit number 2 and not the bit number 3) was not being set and the and the IR:RF0F was being triggered. If it is an hardware thing, it is all right then.
It is just a little bit annoying to have a kStatus_MCAN_TxIdle and a kStatus_MCAN_UnHandled with result set to kMCAN_RxFifo0FullFlag for every received message.

0 Kudos
Reply

306 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @microcris 

The flag of kMCAN_RxFifo0FullFlag is to avoid Rx FIFO overflow.

 

Thank you.

Alice

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2127427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPC5536%20MCAN%20RF0F%20Interrupt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2127427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EWhy%20am%20I%20getting%20this%20interrupt%20(IR%3ARF0F)%20if%20the%20IE%3ARF0FE%20is%20set%20to%200%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI'm%20trying%20to%20figure%20this%20out%20by%20monitoring%20the%20IE%20register%20and%20it%20is%20changing%20from%26nbsp%3B0x3800000%20to%26nbsp%3B0x3800001%2C%20the%20bit%20number%203%20is%20not%20being%20set%20at%20anytime.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ECristiano%20Rodrigues%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2141349%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5536%20MCAN%20RF0F%20Interrupt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2141349%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%2F141639%22%20target%3D%22_blank%22%3E%40microcris%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20flag%20of%20kMCAN_RxFifo0FullFlag%20is%20to%20avoid%20Rx%20FIFO%20overflow.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EThank%20you.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2140365%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5536%20MCAN%20RF0F%20Interrupt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140365%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F27788%22%20target%3D%22_blank%22%3E%40Alice_Yang%3C%2FA%3E!%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20answer.%3CBR%20%2F%3EIt%20is%20all%20fine%20with%20the%20IE%20register.%20I%20was%20just%20stating%20that%20the%20IE%3ARF0FE%20(it%20is%20the%20bit%20number%202%20and%20not%20the%20bit%20number%203)%20was%20not%20being%20set%20and%20the%20and%20the%20IR%3ARF0F%20was%20being%20triggered.%20If%20it%20is%20an%20hardware%20thing%2C%20it%20is%20all%20right%20then.%3CBR%20%2F%3EIt%20is%20just%20a%20little%20bit%20annoying%20to%20have%20a%20kStatus_MCAN_TxIdle%20and%20a%20kStatus_MCAN_UnHandled%20with%20result%20set%20to%20kMCAN_RxFifo0FullFlag%20for%20every%20received%20message.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2128923%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LPC5536%20MCAN%20RF0F%20Interrupt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2128923%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%2F141639%22%20target%3D%22_blank%22%3E%40microcris%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThanks%20for%20your%20question.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThe%20flag%20(IR%3ARF0F)%20is%20automatically%20set%20by%20the%20hardware%20and%20has%20no%20relation%20to%20the%20interrupt%20enable%20register%20IE%3ARF0FE.%20The%20IE%20register%20notifies%20the%20CPU%20to%20execute%20the%20interrupt%20handler.%20Regarding%20the%20change%20of%20IE%20bit%200%20from%200%20to%201%2C%20please%20debug%20the%20code%20to%20check%20where%20this%20bit%20is%20being%20modified.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThank%20you.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%3C%2FLINGO-BODY%3E