<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Why disable/enable CAN interrupt will make not working abnormally in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Why-disable-enable-CAN-interrupt-will-make-not-working/m-p/802829#M15732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a CAN stack project integrated with CanNM.(S12G128 with Trace32 debugger)&lt;/P&gt;&lt;P&gt;And I add CAN DisInterrupt/EnInterrupt in exclusive area like this:&lt;/P&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;FUNC(&lt;/CODE&gt;&lt;CODE class="" style="color: aqua !important; background: 0px center; border: 0px; font-weight: bold; font-size: 14px;"&gt;void&lt;/CODE&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;, RTE_CODE) SchM_Enter_CanNm_SCHM_CANNM_EXCLUSIVE_AREA_0 (&lt;/CODE&gt;&lt;CODE class="" style="color: aqua !important; background: 0px center; border: 0px; font-weight: bold; font-size: 14px;"&gt;void&lt;/CODE&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;)&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;{&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&lt;CODE class="" style="color: #ff7d27 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;/* disable&amp;nbsp;*/&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0U&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_TIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0U&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;}&amp;nbsp;&lt;/CODE&gt;&lt;CODE class="" style="color: #ff7d27 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;/* FUNC(void, RTE_CODE) SchM_Enter_Nm_SCHM_NM_EXCLUSIVE_AREA_0 (void) */&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;FUNC(&lt;/CODE&gt;&lt;CODE class="" style="color: aqua !important; background: 0px center; border: 0px; font-weight: bold; font-size: 14px;"&gt;void&lt;/CODE&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;, RTE_CODE) SchM_Exit_CanNm_SCHM_CANNM_EXCLUSIVE_AREA_0 (&lt;/CODE&gt;&lt;CODE class="" style="color: aqua !important; background: 0px center; border: 0px; font-weight: bold; font-size: 14px;"&gt;void&lt;/CODE&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;)&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;{&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;SPAN style="color: #3f3f3f;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff7d27;"&gt;/* enable */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;SPAN style="color: #ff7d27;"&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#if (CAN_RX_MODE &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt; CAN_INTERRUPT_MODE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* The CAN interrupts defines have been specified to correspond with */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* the CANRIER and CANTIER registers */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* CANRIER : 7 : WAKE-UP */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 6 : CAN status change */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 5..4 : Rx status change */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 3..2 : Tx status change */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 1 : Overrun */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 0 : RxOK */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* CANTIER : 7..3 : unused */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 2 : TxOK mailbox 2 */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 1 : TxOK mailbox 1 */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 0 : TxOK mailbox 0 */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;|=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER_RXFIE;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* TxOK interrupts are enabled before each frame transmission. */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* They must be disabled if any frame transmission is in progress */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* to prevent from a TxOK interrupt which is not due to a frame transmission */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_TIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0U&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#endif&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* Generate CSCIF interrupt in Bus-off state both in interrupt and polling mode */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;|=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER_TSTATE_BOF;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#if (CAN_ERROR_STATUS_MODE &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt; CAN_INTERRUPT_MODE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* Generate an error interrupt request when CSCIF bit is set */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;|=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER_CSCIE;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#endif&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;}&amp;nbsp;&lt;/CODE&gt;&lt;CODE class="" style="color: #ff7d27 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;/* FUNC(void, RTE_CODE) SchM_Exit_Nm_SCHM_NM_EXCLUSIVE_AREA_0 (void) */&lt;/CODE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I run this program, it will not working normally.&lt;/P&gt;&lt;P&gt;It should send period frames but only send several times and stop sending.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program is still running, not fleeting.&lt;/P&gt;&lt;P&gt;I referred to S12XHY128 and S12G192, but I didn't find breakpoint.&lt;/P&gt;&lt;P&gt;Does anyone have suggestions about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2018 11:21:45 GMT</pubDate>
    <dc:creator>kimchan_eb</dc:creator>
    <dc:date>2018-08-20T11:21:45Z</dc:date>
    <item>
      <title>Why disable/enable CAN interrupt will make not working abnormally</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Why-disable-enable-CAN-interrupt-will-make-not-working/m-p/802829#M15732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a CAN stack project integrated with CanNM.(S12G128 with Trace32 debugger)&lt;/P&gt;&lt;P&gt;And I add CAN DisInterrupt/EnInterrupt in exclusive area like this:&lt;/P&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;FUNC(&lt;/CODE&gt;&lt;CODE class="" style="color: aqua !important; background: 0px center; border: 0px; font-weight: bold; font-size: 14px;"&gt;void&lt;/CODE&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;, RTE_CODE) SchM_Enter_CanNm_SCHM_CANNM_EXCLUSIVE_AREA_0 (&lt;/CODE&gt;&lt;CODE class="" style="color: aqua !important; background: 0px center; border: 0px; font-weight: bold; font-size: 14px;"&gt;void&lt;/CODE&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;)&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;{&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&lt;CODE class="" style="color: #ff7d27 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;/* disable&amp;nbsp;*/&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0U&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_TIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0U&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;}&amp;nbsp;&lt;/CODE&gt;&lt;CODE class="" style="color: #ff7d27 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;/* FUNC(void, RTE_CODE) SchM_Enter_Nm_SCHM_NM_EXCLUSIVE_AREA_0 (void) */&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;FUNC(&lt;/CODE&gt;&lt;CODE class="" style="color: aqua !important; background: 0px center; border: 0px; font-weight: bold; font-size: 14px;"&gt;void&lt;/CODE&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;, RTE_CODE) SchM_Exit_CanNm_SCHM_CANNM_EXCLUSIVE_AREA_0 (&lt;/CODE&gt;&lt;CODE class="" style="color: aqua !important; background: 0px center; border: 0px; font-weight: bold; font-size: 14px;"&gt;void&lt;/CODE&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;)&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;{&lt;/CODE&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;SPAN style="color: #3f3f3f;"&gt;&lt;CODE class="" style="background: 0px center; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/CODE&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ff7d27;"&gt;/* enable */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;SPAN style="color: #ff7d27;"&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#if (CAN_RX_MODE &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt; CAN_INTERRUPT_MODE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* The CAN interrupts defines have been specified to correspond with */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* the CANRIER and CANTIER registers */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* CANRIER : 7 : WAKE-UP */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 6 : CAN status change */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 5..4 : Rx status change */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 3..2 : Tx status change */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 1 : Overrun */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 0 : RxOK */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* CANTIER : 7..3 : unused */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 2 : TxOK mailbox 2 */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 1 : TxOK mailbox 1 */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* 0 : TxOK mailbox 0 */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;|=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER_RXFIE;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* TxOK interrupts are enabled before each frame transmission. */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* They must be disabled if any frame transmission is in progress */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* to prevent from a TxOK interrupt which is not due to a frame transmission */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_TIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;0U&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#endif&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* Generate CSCIF interrupt in Bus-off state both in interrupt and polling mode */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;|=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER_TSTATE_BOF;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#if (CAN_ERROR_STATUS_MODE &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;==&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt; CAN_INTERRUPT_MODE)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #608b4e;"&gt;/* Generate an error interrupt request when CSCIF bit is set */&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER &lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;|=&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; CAN_RIER_CSCIE;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;#endif&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #3f3f3f; background-color: black !important; border: 0px; font-size: 14px; padding: 0px 1em;"&gt;&lt;CODE class="" style="color: #d3d3d3 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;}&amp;nbsp;&lt;/CODE&gt;&lt;CODE class="" style="color: #ff7d27 !important; background: 0px center; border: 0px; font-size: 14px;"&gt;/* FUNC(void, RTE_CODE) SchM_Exit_Nm_SCHM_NM_EXCLUSIVE_AREA_0 (void) */&lt;/CODE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I run this program, it will not working normally.&lt;/P&gt;&lt;P&gt;It should send period frames but only send several times and stop sending.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program is still running, not fleeting.&lt;/P&gt;&lt;P&gt;I referred to S12XHY128 and S12G192, but I didn't find breakpoint.&lt;/P&gt;&lt;P&gt;Does anyone have suggestions about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Kim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 11:21:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Why-disable-enable-CAN-interrupt-will-make-not-working/m-p/802829#M15732</guid>
      <dc:creator>kimchan_eb</dc:creator>
      <dc:date>2018-08-20T11:21:45Z</dc:date>
    </item>
  </channel>
</rss>

