<?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>CodeWarrior Development ToolsのトピックWhy does my 5566 bootloader fail if power cycled?</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-does-my-5566-bootloader-fail-if-power-cycled/m-p/1031729#M8204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application running on a 5566 processor that will reset the processor into the flexcan bootload mode if it receives a specific CAN message. The application clears the RCHW and performs a soft reset.&lt;/P&gt;&lt;P&gt;At this point, I can use the BAM process to send a bootloader over CAN, then the 5566 will then start running that program which periodically sends out CAN messages.&lt;/P&gt;&lt;P&gt;If I power off the 5566 while loading the bootloader image, then power back on, the 5566 is still using BAM and accepting images. I can go through the entire protocol of loading the same bootloader over CAN, but at the end, I never see any CAN messages from my bootloader.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would the BAM process work when an application put it into BAM using a soft reset, but it does not work when I perform a hard power cycle?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2019 21:20:59 GMT</pubDate>
    <dc:creator>pking</dc:creator>
    <dc:date>2019-11-22T21:20:59Z</dc:date>
    <item>
      <title>Why does my 5566 bootloader fail if power cycled?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-does-my-5566-bootloader-fail-if-power-cycled/m-p/1031729#M8204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an application running on a 5566 processor that will reset the processor into the flexcan bootload mode if it receives a specific CAN message. The application clears the RCHW and performs a soft reset.&lt;/P&gt;&lt;P&gt;At this point, I can use the BAM process to send a bootloader over CAN, then the 5566 will then start running that program which periodically sends out CAN messages.&lt;/P&gt;&lt;P&gt;If I power off the 5566 while loading the bootloader image, then power back on, the 5566 is still using BAM and accepting images. I can go through the entire protocol of loading the same bootloader over CAN, but at the end, I never see any CAN messages from my bootloader.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why would the BAM process work when an application put it into BAM using a soft reset, but it does not work when I perform a hard power cycle?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 21:20:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-does-my-5566-bootloader-fail-if-power-cycled/m-p/1031729#M8204</guid>
      <dc:creator>pking</dc:creator>
      <dc:date>2019-11-22T21:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my 5566 bootloader fail if power cycled?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-does-my-5566-bootloader-fail-if-power-cycled/m-p/1031730#M8205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem appears to be that my bootloader application is using SRAM outside of what is specified in the image.&lt;/P&gt;&lt;P&gt;In the soft reset, this is probably okay because the SRAM is still initialized from the flash image that was running. But after a hard power cycle, nothing was initializing the SRAM.&lt;/P&gt;&lt;P&gt;I couldn't figure out how to get Codewarrior to initialize all of SRAM, so I ended up padding my image to 128,000 bytes before sending to BAM. Once I did that, the bootloader runs and sends out CAN messages even when loaded after a power cycle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Nov 2019 19:51:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-does-my-5566-bootloader-fail-if-power-cycled/m-p/1031730#M8205</guid>
      <dc:creator>pking</dc:creator>
      <dc:date>2019-11-23T19:51:30Z</dc:date>
    </item>
  </channel>
</rss>

