<?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 MCF52259 Software Reset Problem in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-Software-Reset-Problem/m-p/220146#M11219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a MCF52259 with mqx 3.8.1. I am trying to use the reset control register to do a software reset, and when I do I get a some weird stack trace (below) and the processor locks up. Location 0x8 hex is the illegal instruction vector address, but I am not using interrupts for this program, and they are disabled. The code runs fine, until the reset where I get these problems. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the only code I have for the reset, and its all the manual shows that I should need.&lt;/P&gt;&lt;P&gt;MCF_RCM_RCR |= MCF_RCM_RCR_SOFTRST;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help you might be able to give, &lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;3 0x00000008 (0x00000008)()&amp;nbsp; 0x00000008&lt;/TD&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;2 0x20007FFC (0x20007FFC)()&amp;nbsp; 0x20007ffc&lt;/TD&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;1 _startup() startup.c:55 0x00000010&lt;/TD&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 14:46:17 GMT</pubDate>
    <dc:creator>kdavis</dc:creator>
    <dc:date>2012-10-17T14:46:17Z</dc:date>
    <item>
      <title>MCF52259 Software Reset Problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-Software-Reset-Problem/m-p/220146#M11219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a MCF52259 with mqx 3.8.1. I am trying to use the reset control register to do a software reset, and when I do I get a some weird stack trace (below) and the processor locks up. Location 0x8 hex is the illegal instruction vector address, but I am not using interrupts for this program, and they are disabled. The code runs fine, until the reset where I get these problems. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the only code I have for the reset, and its all the manual shows that I should need.&lt;/P&gt;&lt;P&gt;MCF_RCM_RCR |= MCF_RCM_RCR_SOFTRST;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help you might be able to give, &lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;3 0x00000008 (0x00000008)()&amp;nbsp; 0x00000008&lt;/TD&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;2 0x20007FFC (0x20007FFC)()&amp;nbsp; 0x20007ffc&lt;/TD&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;1 _startup() startup.c:55 0x00000010&lt;/TD&gt;&lt;TD style="vertical-align: baseline;font-family: arial, helvetica, sans-serif;background-color: transparent;text-align: left;color: #575757;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 14:46:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-Software-Reset-Problem/m-p/220146#M11219</guid>
      <dc:creator>kdavis</dc:creator>
      <dc:date>2012-10-17T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 Software Reset Problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-Software-Reset-Problem/m-p/220147#M11220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should say that there is a boot loader and an application&amp;nbsp; and I am trying to go back to the bootloader from the application by resetting the chip. So when I say I am not using interrupts I mean in the bootloader.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 16:34:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-Software-Reset-Problem/m-p/220147#M11220</guid>
      <dc:creator>kdavis</dc:creator>
      <dc:date>2012-10-17T16:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 Software Reset Problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-Software-Reset-Problem/m-p/220148#M11221</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;For example, to reset MCF, I use the following code (from &lt;A href="http://www.fnet.sf.net/"&gt;www.fnet.sf.net&lt;/A&gt; project):&lt;/P&gt;&lt;P&gt;fnet_mcf.c:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void fnet_cpu_reset (void)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;#if FNET_CFG_MCF_RCM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FNET_MCF_RCM_RCR = FNET_MCF_RCM_RCR_SOFTRST | FNET_MCF_RCM_RCR_FRCRSTOUT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;#else&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned long address = *((unsigned long *)(0x4));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (( void(*)() )address)(); /* Jump. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;&lt;SPAN style="font-size: 8pt; font-family: 'courier new', courier;"&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will help,&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;Andrey Butok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 07:36:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-Software-Reset-Problem/m-p/220148#M11221</guid>
      <dc:creator>butok</dc:creator>
      <dc:date>2012-10-18T07:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: MCF52259 Software Reset Problem</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-Software-Reset-Problem/m-p/220149#M11222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did get it working they was Andrey suggested, but when using the RCR it would never succesfully restart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 19:35:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52259-Software-Reset-Problem/m-p/220149#M11222</guid>
      <dc:creator>kdavis</dc:creator>
      <dc:date>2012-11-13T19:35:22Z</dc:date>
    </item>
  </channel>
</rss>

