<?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のトピックCreating a custom task to run at the start of the debugger (so you can add address offset when downloading file)</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Creating-a-custom-task-to-run-at-the-start-of-the-debugger-so/m-p/312398#M13530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a K70FN1M0VMJ12 Tower Module. When I try to program flash, I get an error about writing to the security area. It appears that offsetting by 0x500 fixes this issue. Unfortunately, from some simple test code, I found that I must be running the debugger in order for my code to run successfully (programming using the flash programmer then hitting reset doesn't work?). When I run the debugger, I get a similar error referring to the secure memory area. To resolve this, I created a custom RunAndDebug task that will erase the device, run a blank check on all sectors, program flash, and verify the write. I set my debug configuration to run this custom task instead of the standard one. I am getting a "Error downloading program". Below are the settings I used for the custom task:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device: FTFE_PFlash1M0 (128Kx64x1)&lt;/P&gt;&lt;P&gt;Erase: Base Addr = 0x0&lt;/P&gt;&lt;P&gt;Blank Check: Base Addr = 0x0&lt;/P&gt;&lt;P&gt;Program and Verify: File Type = Auto; Addr Offset = 0x500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on anything I mentioned is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;darsnack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 May 2014 15:10:55 GMT</pubDate>
    <dc:creator>darsnack</dc:creator>
    <dc:date>2014-05-08T15:10:55Z</dc:date>
    <item>
      <title>Creating a custom task to run at the start of the debugger (so you can add address offset when downloading file)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Creating-a-custom-task-to-run-at-the-start-of-the-debugger-so/m-p/312398#M13530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a K70FN1M0VMJ12 Tower Module. When I try to program flash, I get an error about writing to the security area. It appears that offsetting by 0x500 fixes this issue. Unfortunately, from some simple test code, I found that I must be running the debugger in order for my code to run successfully (programming using the flash programmer then hitting reset doesn't work?). When I run the debugger, I get a similar error referring to the secure memory area. To resolve this, I created a custom RunAndDebug task that will erase the device, run a blank check on all sectors, program flash, and verify the write. I set my debug configuration to run this custom task instead of the standard one. I am getting a "Error downloading program". Below are the settings I used for the custom task:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Device: FTFE_PFlash1M0 (128Kx64x1)&lt;/P&gt;&lt;P&gt;Erase: Base Addr = 0x0&lt;/P&gt;&lt;P&gt;Blank Check: Base Addr = 0x0&lt;/P&gt;&lt;P&gt;Program and Verify: File Type = Auto; Addr Offset = 0x500&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on anything I mentioned is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;darsnack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 15:10:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Creating-a-custom-task-to-run-at-the-start-of-the-debugger-so/m-p/312398#M13530</guid>
      <dc:creator>darsnack</dc:creator>
      <dc:date>2014-05-08T15:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a custom task to run at the start of the debugger (so you can add address offset when downloading file)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Creating-a-custom-task-to-run-at-the-start-of-the-debugger-so/m-p/312399#M13531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Flash configuration address 0x40C is Flash security byte, which will be loaded to FTFE_FSEC register during the chip reset.&lt;/P&gt;&lt;P&gt;If the chip was secured, the debugger couldn't use JTAG interface access Kinetis internal register and memory.&lt;/P&gt;&lt;P&gt;And I also recommend customer to refer C90TFS_FLASH_DRIVER (&lt;SPAN style="color: #51626f; font-family: arial, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background-color: #cccccc;"&gt;&lt;SPAN class="Apple-converted-space"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; font-family: arial, sans-serif; font-size: 12px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background-color: #cccccc;"&gt;TFS Flash Driver Software for Kinetis and ColdFire+ Microcontrollers&lt;/SPAN&gt;), which provides example demo for Flash operations.&lt;/P&gt;&lt;P&gt;More detailed info, please refer below link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe?fasp=1&amp;amp;WT_TYPE=Device%20Drivers&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads" title="http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe?fasp=1&amp;amp;WT_TYPE=Device%20Drivers&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads"&gt;http://cache.freescale.com/files/32bit/software/C90TFS_FLASH_DRIVER.exe&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 03:21:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Creating-a-custom-task-to-run-at-the-start-of-the-debugger-so/m-p/312399#M13531</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2014-05-12T03:21:59Z</dc:date>
    </item>
  </channel>
</rss>

