<?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: MC1321x problems in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179542#M12875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; I might try one of the SMAC examples that use the Sensor Reference Boards (SRBs) just to verify that your development environment is working well.&amp;nbsp; Might be worth trying the latest version of BeeKit to generate your application.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; The code is reading the IRQ_Status register in the 1321x, and specifically&amp;nbsp;waiting for&amp;nbsp;the attn_irq bit to be set.&amp;nbsp;&amp;nbsp; The manual says it is waiting for a power up complete condition before setting the attn_irq bit.&amp;nbsp; Are you running off of batteries?&amp;nbsp; Maybe they are old and the voltage is down.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you tell if IRQFLAG is set to a value of 1?&amp;nbsp; If not, you are stuck in the forever loop.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; Rick&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2008 10:05:20 GMT</pubDate>
    <dc:creator>RickN</dc:creator>
    <dc:date>2008-01-23T10:05:20Z</dc:date>
    <item>
      <title>MC1321x problems</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179541#M12874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a new NCB board wich I have the following problem: The BDM correctly sees the MCU and allows me to program the flash. When I program the flash with any of the SMAC applications using MC13213-NCB as target, BDM is ok and when I selec run, it says STARTIN, and then RUNNING.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But it seems to die in this loop&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (u8AttnIrq == FALSE) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (IRQFLAG == 1) { /* Check to see if IRQ is asserted */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;u16IrqReg = SPIDrvRead(0x24); /*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Clear MC13192 interrupts and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* check for ATTN IRQ from 13192&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;u16IrqReg &amp;amp;= 0x400;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (u16IrqReg == 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;u8AttnIrq = FALSE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;u8AttnIrq = TRUE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 2;"&gt;Any help?&lt;BR /&gt;&lt;BR /&gt;I saw others messages, but I didnt solve my problem.&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fforums.freescale.com%2Ffreescale%2Fboard%2Fmessage%3Fboard.id%3D8BITCOMM%26message.id%3D3886%23M3886" rel="nofollow" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=3886#M3886&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fforums.freescale.com%2Ffreescale%2Fboard%2Fmessage%3Fboard.id%3D8BITCOMM%26message.id%3D5024%26query.id%3D71468" rel="nofollow" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=5024&amp;amp;query.id=71468&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fabiano&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 08:15:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179541#M12874</guid>
      <dc:creator>Fabiano</dc:creator>
      <dc:date>2008-01-15T08:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: MC1321x problems</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179542#M12875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; I might try one of the SMAC examples that use the Sensor Reference Boards (SRBs) just to verify that your development environment is working well.&amp;nbsp; Might be worth trying the latest version of BeeKit to generate your application.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; The code is reading the IRQ_Status register in the 1321x, and specifically&amp;nbsp;waiting for&amp;nbsp;the attn_irq bit to be set.&amp;nbsp;&amp;nbsp; The manual says it is waiting for a power up complete condition before setting the attn_irq bit.&amp;nbsp; Are you running off of batteries?&amp;nbsp; Maybe they are old and the voltage is down.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you tell if IRQFLAG is set to a value of 1?&amp;nbsp; If not, you are stuck in the forever loop.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; Rick&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 10:05:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179542#M12875</guid>
      <dc:creator>RickN</dc:creator>
      <dc:date>2008-01-23T10:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: MC1321x problems</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179543#M12876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi Fabiano,&lt;BR /&gt;&lt;BR /&gt;I have a similar problem than yours, please, look at the description of my problem at:&lt;BR /&gt;&lt;A href="http://forums.freescale.com/message?board.id=8BITCOMM&amp;amp;message.id=8876&amp;amp;jump=true#M8876" rel="nofollow" target="_blank"&gt;http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=8876&amp;amp;jump=true#M8876&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I would like to know how did you solve your problem? and how can I look at the value of IRQ_Status Register with the debugger?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Rubén.&lt;BR /&gt;&lt;A href="http://forums.freescale.com/../view_profile?user.id=5506" rel="nofollow" target="_blank"&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2008 19:50:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179543#M12876</guid>
      <dc:creator>UC3MZigbeeGroup</dc:creator>
      <dc:date>2008-02-04T19:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: MC1321x problems</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179544#M12877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;I forgot comment that I have observed with the debugger (True-Time Simulator &amp;amp; Real-Time Debugger v6.1Build 6124) that while the application is running in the device, the clock sometimes changes to 16MHz, and sometimes to 8MHz and sometimes to 58KHz. I found a message with a similar problem in Freescale Forums (http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&amp;amp;message.id=6486&amp;amp;query.id=450311#M6486)but it didn't say how resolve the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And some devices die in the loop of ICG_Setup function (in icg.c), see the picture attached for more details about it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like somebody answer me these questions:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I look at the value of IRQ_Status Register with the debugger?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What reason can cause that the clock changes its frequency of this way?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Why do some devices die in the loop of ICG_Setup funciton?&lt;/SPAN&gt;&lt;/P&gt;Thanks in advance.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 16:25:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179544#M12877</guid>
      <dc:creator>UC3MZigbeeGroup</dc:creator>
      <dc:date>2008-02-05T16:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: MC1321x problems</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179545#M12878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I apologize cause I had problems to upload the attached file before. Now I upload it.&lt;BR /&gt;&lt;BR /&gt;Best Regards.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2008 18:27:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC1321x-problems/m-p/179545#M12878</guid>
      <dc:creator>UC3MZigbeeGroup</dc:creator>
      <dc:date>2008-02-05T18:27:11Z</dc:date>
    </item>
  </channel>
</rss>

