<?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 Re: MSCAN12 Usage without BDM-Debugging enabled. in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN12-Usage-without-BDM-Debugging-enabled/m-p/143424#M3560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Ciao Andrea,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The common cause for this kind of effect is the COP (Computer Operating Properly) = Watchdog.&lt;/DIV&gt;&lt;DIV&gt;In Special Single Chip Mode (SSCM), the COP is disabled by default.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Look at the Reset pin and if you see it going up and down it is likely to be the reason.&lt;/DIV&gt;&lt;DIV&gt;To solve this, you go to the COP Chapter and there is one register to write to.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2007 02:28:09 GMT</pubDate>
    <dc:creator>Alban</dc:creator>
    <dc:date>2007-01-23T02:28:09Z</dc:date>
    <item>
      <title>MSCAN12 Usage without BDM-Debugging enabled.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN12-Usage-without-BDM-Debugging-enabled/m-p/143423#M3559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi guys!&lt;/DIV&gt;&lt;DIV&gt;Several weeks ago I've post a query about MSCAN12 Configuration. All these matter are fixed but unfortunately a I've gotta new one.&lt;/DIV&gt;&lt;DIV&gt;Well:&lt;/DIV&gt;&lt;DIV&gt;I tryed to flash my uC by using Metrowerks CW debugger editor, and the loaded&amp;nbsp;application works good.&lt;/DIV&gt;&lt;DIV&gt;I stopped this one and I removed&amp;nbsp;BDM connector in by uC board&lt;/DIV&gt;&lt;DIV&gt;As soon i pushed Reset Button into demo board:...Chil-Out!&lt;/DIV&gt;&lt;DIV&gt;No signals coming out from Transmitting MSCAN12 Controller.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;PS:&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;Demo board it's a startes kit (ZK-S12-B By SofTec Microsystems).&lt;/LI&gt;&lt;LI&gt;All template of the application&amp;nbsp;It's done and filled&amp;nbsp;by Processor Expert Except (Except for MSCAN12 controller Sw. Which&amp;nbsp;template&amp;nbsp;It's been&amp;nbsp;done by Processor Expert but it's been&amp;nbsp;filled by me).&lt;/LI&gt;&lt;LI&gt;Of course I've connected a receiving node (I'm shure I've done it correctly).&lt;/LI&gt;&lt;LI&gt;I've just read Processor Expert Manual. It say that for advanced beans it doesn't work cause my licencing. but it does not said nothing about an applications where basic beans sre developed by PE Tool and advanced beans SW it's done by user.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Have U got a solution for me? please!...&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Andrea Olivieri. (In Italy I'ts a male name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 01:42:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN12-Usage-without-BDM-Debugging-enabled/m-p/143423#M3559</guid>
      <dc:creator>andrea_olivieri</dc:creator>
      <dc:date>2007-01-23T01:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN12 Usage without BDM-Debugging enabled.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN12-Usage-without-BDM-Debugging-enabled/m-p/143424#M3560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Ciao Andrea,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The common cause for this kind of effect is the COP (Computer Operating Properly) = Watchdog.&lt;/DIV&gt;&lt;DIV&gt;In Special Single Chip Mode (SSCM), the COP is disabled by default.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Look at the Reset pin and if you see it going up and down it is likely to be the reason.&lt;/DIV&gt;&lt;DIV&gt;To solve this, you go to the COP Chapter and there is one register to write to.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Cheers,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 02:28:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN12-Usage-without-BDM-Debugging-enabled/m-p/143424#M3560</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-01-23T02:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: MSCAN12 Usage without BDM-Debugging enabled.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN12-Usage-without-BDM-Debugging-enabled/m-p/143425#M3561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I realized that Peripheral initialization start up correctly up to CAM module initialization&amp;nbsp;end, but&amp;nbsp;it fail &amp;nbsp;as soon tried to get out by init mode.&amp;nbsp; To be more precise,&amp;nbsp; the code section where&amp;nbsp;the app fail is thath:&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;/*Init Mode exit Request*/&lt;BR /&gt;CAN0CTL0_INITRQ = 0;&lt;BR /&gt;/*Waiting for Init Mode exit ACK*/&lt;/DIV&gt;&lt;DIV&gt;while(CAN0CTL1_INITAK != 0){};&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;=========== FAILURE IS HERE!&lt;/DIV&gt;&lt;DIV&gt;...&lt;/DIV&gt;&lt;DIV&gt;Basically,&amp;nbsp;uC doesn't reach out&amp;nbsp;the Init Mode for MSCAN (But Just only if Debugger is not active.)&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Which kind of trouble rise up COP with my app?&lt;/DIV&gt;&lt;DIV&gt;Does it possible that it let to start my application since MSCAN12 tryed to leave out by initialization mode?&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;See U.&lt;/DIV&gt;&lt;DIV&gt;Thanks in advance!&lt;/DIV&gt;&lt;DIV&gt;Andrea Olivieri (In Italy It's a male name)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jan 2007 00:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN12-Usage-without-BDM-Debugging-enabled/m-p/143425#M3561</guid>
      <dc:creator>andrea_olivieri</dc:creator>
      <dc:date>2007-01-24T00:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Re: MSCAN12 Usage without BDM-Debugging enabled.</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN12-Usage-without-BDM-Debugging-enabled/m-p/143426#M3562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had an identical issue on a MC9S12XDP on a &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SofTec Microsystems&lt;/SPAN&gt; dev board.&amp;nbsp; Everything is fine with the BDM connected.&amp;nbsp; Remove the BDM and reset, the MSCAN init function hangs while waiting for the "Init Mode Exit ACK".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution for me was the CANE flag in the CANCTL1 register.&amp;nbsp; I found a line of code that was disabling CAN during startup init, then with the BDM detached my CAN init function could not turn CAN back on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the manual:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;The MSCAN enable bit (CANE) is writable only once in normal system operation modes, which&lt;/P&gt;
&lt;P&gt;provides further protection against inadvertently disabling the MSCAN.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meaning that while the BDM debugger is connected, the CANE can be set to Disabled then later Enabled. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;However, with the BDM is disconnected, CANE can only be written once.&amp;nbsp; If disabled, is stuck disabled and will refuse the "Init Mode Exit Request".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Special thanks for your thread for leading me in the right direction.&amp;nbsp; This guy also helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;A href="https://community.nxp.com/thread/68912" target="_blank"&gt;9S12XE CAN initialization&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 08:43:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MSCAN12-Usage-without-BDM-Debugging-enabled/m-p/143426#M3562</guid>
      <dc:creator>dustinwestaby</dc:creator>
      <dc:date>2020-10-29T08:43:57Z</dc:date>
    </item>
  </channel>
</rss>

