<?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 DSC 56F82746 Software Reset / Bootloader Problem in Digital Signal Controllers</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/DSC-56F82746-Software-Reset-Bootloader-Problem/m-p/848775#M1433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Having a problem with doing a Software Reset on a 56F82746 in order to jump to my bootloader.&lt;/P&gt;&lt;P&gt;I tried a number of things but would think the SWRst flag in SIM_CTRL would work.&lt;/P&gt;&lt;P&gt;I do the following code to disable things and then do the software reset.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-family: courier new,courier,monospace; font-size: small;"&gt;//Disable timer and interrupts, pjb114.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;TimerInterruptGP_Disable();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;asm&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; { nop; nop; nop; nop; nop; nop; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Cpu_DisableInt();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;asm&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; { nop; nop; nop; nop; nop; nop; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: small;"&gt;&amp;nbsp;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//&lt;SPAN style="text-decoration: underline;"&gt;asm&lt;/SPAN&gt; { &lt;SPAN style="text-decoration: underline;"&gt;jmp&lt;/SPAN&gt; 0x7800 }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; SIM_CTRL &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;|= SIM_CTRL_SWRst_MASK; //TEST Full reset to get to &lt;SPAN style="text-decoration: underline;"&gt;bootloader&lt;/SPAN&gt;, pjb114&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;while&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; (1) {} &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//&lt;SPAN style="text-decoration: underline;"&gt;asm&lt;/SPAN&gt; { &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It just locks up the processor somewhere and it is hard to troubleshoot since it is between normal code and bootloader.&lt;/P&gt;&lt;P&gt;Any thoughts on what might be happening?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2018 23:04:01 GMT</pubDate>
    <dc:creator>dynapb</dc:creator>
    <dc:date>2018-10-29T23:04:01Z</dc:date>
    <item>
      <title>DSC 56F82746 Software Reset / Bootloader Problem</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/DSC-56F82746-Software-Reset-Bootloader-Problem/m-p/848775#M1433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;Having a problem with doing a Software Reset on a 56F82746 in order to jump to my bootloader.&lt;/P&gt;&lt;P&gt;I tried a number of things but would think the SWRst flag in SIM_CTRL would work.&lt;/P&gt;&lt;P&gt;I do the following code to disable things and then do the software reset.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-family: courier new,courier,monospace; font-size: small;"&gt;//Disable timer and interrupts, pjb114.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;TimerInterruptGP_Disable();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;asm&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; { nop; nop; nop; nop; nop; nop; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;Cpu_DisableInt();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;asm&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; { nop; nop; nop; nop; nop; nop; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: small;"&gt;&amp;nbsp;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//&lt;SPAN style="text-decoration: underline;"&gt;asm&lt;/SPAN&gt; { &lt;SPAN style="text-decoration: underline;"&gt;jmp&lt;/SPAN&gt; 0x7800 }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; SIM_CTRL &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;|= SIM_CTRL_SWRst_MASK; //TEST Full reset to get to &lt;SPAN style="text-decoration: underline;"&gt;bootloader&lt;/SPAN&gt;, pjb114&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace;"&gt;&lt;SPAN style="font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #7f0055; font-size: small;"&gt;&lt;STRONG&gt;while&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small;"&gt; (1) {} &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: small;"&gt;//&lt;SPAN style="text-decoration: underline;"&gt;asm&lt;/SPAN&gt; { &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; &lt;SPAN style="text-decoration: underline;"&gt;nop&lt;/SPAN&gt;; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It just locks up the processor somewhere and it is hard to troubleshoot since it is between normal code and bootloader.&lt;/P&gt;&lt;P&gt;Any thoughts on what might be happening?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2018 23:04:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/DSC-56F82746-Software-Reset-Bootloader-Problem/m-p/848775#M1433</guid>
      <dc:creator>dynapb</dc:creator>
      <dc:date>2018-10-29T23:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: DSC 56F82746 Software Reset / Bootloader Problem</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/DSC-56F82746-Software-Reset-Bootloader-Problem/m-p/848776#M1434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just an update for anyone interested.&lt;/P&gt;&lt;P&gt;I made&amp;nbsp;the bootloader for the 56F82746 by modifying the one from AN4759.&lt;/P&gt;&lt;P&gt;The problem with the Software Reset occurs when I try to run the bootloader after running it previously.&lt;/P&gt;&lt;P&gt;I can start my program directly&amp;nbsp;at power-up without going through the bootloader (main change I made), then start the bootloader by command (asm{jmp 0x7800}), download a new set of code and run that code.&amp;nbsp; All that works fine.&amp;nbsp; If I try to run the bootloader again is when it locks up and need a to resest the board.&lt;/P&gt;&lt;P&gt;There must be something set differently after running the bootloader or with the new code download&amp;nbsp;so that it does not run again but have not found what that might be.&lt;/P&gt;&lt;P&gt;For this application it is not a problem since the bootloader does run without a problem the first time so I will use it as is since I have spent enough time on this.&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 16:58:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/DSC-56F82746-Software-Reset-Bootloader-Problem/m-p/848776#M1434</guid>
      <dc:creator>dynapb</dc:creator>
      <dc:date>2018-11-01T16:58:33Z</dc:date>
    </item>
  </channel>
</rss>

