<?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>Kinetis Microcontrollers中的主题 Re: LCF .data changes at reboot</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LCF-data-changes-at-reboot/m-p/210847#M3471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have this straightened out now.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The fact that the program stopped working after a hard reset was an indicator that my DATA segment wasn't being handled appropriately. The part of the startup code that was copying my DATA segment from Flash to RAM had a few issues. I ended up splitting my DATA and BSS segments up into protected and non-protected segments. This required me to re-write parts of the start-up code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I said before, this is my first bootloader. I'd be interested in reading or discussing pros/cons to various strategies.&lt;/P&gt;&lt;P&gt;My bootloader needs SPI, UART, driver for LCD display, driver for External Flash, etc, etc... So, instead of duplicating code, I decided to share this common code between application and bootloader. This also allowed me to use a single project for application and bootloader. Normally, I see this split-up as two separate projects which seemed like a headache to me. I feel my solution is safe, but a bit on the complicated side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Oct 2012 19:55:18 GMT</pubDate>
    <dc:creator>ignisuti</dc:creator>
    <dc:date>2012-10-07T19:55:18Z</dc:date>
    <item>
      <title>LCF .data changes at reboot</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LCF-data-changes-at-reboot/m-p/210845#M3469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create my first bootloader and have assigned specific objects to specific memory addresses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program seems to have a problem where it stops working once I reboot the unit. It works fine if I download code to it and then I can reset as many times as I want. If I kill the power and return it the unit starts having issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've narrowed this down to specific .data section in my RAM. I export this section before powering down. Then, if I import this section after I reboot, it fixes the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me understand why this is an issue and perhaps provide a suggestion for fixing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 04:36:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LCF-data-changes-at-reboot/m-p/210845#M3469</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2012-10-06T04:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: LCF .data changes at reboot</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LCF-data-changes-at-reboot/m-p/210846#M3470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you mean by:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I export this section before powering down.&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Then, if I import this section after I reboot, it fixes the problem.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;What do you mean by import and export in this context?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 02:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LCF-data-changes-at-reboot/m-p/210846#M3470</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2012-10-07T02:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: LCF .data changes at reboot</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/LCF-data-changes-at-reboot/m-p/210847#M3471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have this straightened out now.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The fact that the program stopped working after a hard reset was an indicator that my DATA segment wasn't being handled appropriately. The part of the startup code that was copying my DATA segment from Flash to RAM had a few issues. I ended up splitting my DATA and BSS segments up into protected and non-protected segments. This required me to re-write parts of the start-up code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like I said before, this is my first bootloader. I'd be interested in reading or discussing pros/cons to various strategies.&lt;/P&gt;&lt;P&gt;My bootloader needs SPI, UART, driver for LCD display, driver for External Flash, etc, etc... So, instead of duplicating code, I decided to share this common code between application and bootloader. This also allowed me to use a single project for application and bootloader. Normally, I see this split-up as two separate projects which seemed like a headache to me. I feel my solution is safe, but a bit on the complicated side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 19:55:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/LCF-data-changes-at-reboot/m-p/210847#M3471</guid>
      <dc:creator>ignisuti</dc:creator>
      <dc:date>2012-10-07T19:55:18Z</dc:date>
    </item>
  </channel>
</rss>

