<?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 Re: Which flash regions can I access with flashx? in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251580#M7279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello martinpi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This topic might answer your question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/301566"&gt;flex memory in debug&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Mar 2013 08:44:25 GMT</pubDate>
    <dc:creator>c0170</dc:creator>
    <dc:date>2013-03-16T08:44:25Z</dc:date>
    <item>
      <title>Which flash regions can I access with flashx?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251577#M7276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the K60F120 Tower, I loaded and ran the flashx example. It is working fine.&lt;/P&gt;&lt;P&gt;However, the example uses only the last 32 Bytes of flash.&lt;/P&gt;&lt;P&gt;It moves to the location with an fseek command.&lt;/P&gt;&lt;P&gt;When I run the example in RAM under control of the IDE, I think that I can reprogram the whole flash area without harm. Is this right?&lt;/P&gt;&lt;P&gt;By single-stepping, I saw that the write access is broken down to sectors by the driver, so it seems that I do not have to care about that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do something more useful, I modified the example and tried to write a recognizable pattern and see if I can read it back.&lt;/P&gt;&lt;P&gt;I know that you have to erase the flash before programming ist, but as the example does not do that I assume that the flashx driver takes care of it.&lt;/P&gt;&lt;P&gt;I left all instructions for cache and unprotecting in place.&lt;/P&gt;&lt;P&gt;It seems that I can access only the last 2K of flash which is definitely not enough.&lt;/P&gt;&lt;P&gt;Furthermore, I was able to write my pattern once, but when I changed the pattern and re-wrote the flash, I still get the old pattern so it seems to have been written only once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What rules apply for accessing the flash with flashx?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 16:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251577#M7276</guid>
      <dc:creator>martinpi</dc:creator>
      <dc:date>2013-02-07T16:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Which flash regions can I access with flashx?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251578#M7277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rule 1&lt;/P&gt;&lt;P&gt;Use MQX 4.0 or later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rule 2&lt;/P&gt;&lt;P&gt;Don't overlap your application flash image (instructions, read only data, initialized data) with the internal flash sectors that the same application erases/programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this in mind, you can customize the flashx initialization data structures &lt;/P&gt;&lt;P&gt;(FLASHX_FILE_BLOCK, FLASHX_INIT_STRUCT in &lt;/P&gt;&lt;P&gt;c:\Freescale\Freescale_MQX_4_0\mqx\source\bsp\twrk60f120m\init_flashx.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or even FLASHX_BLOCK_INFO_STRUCT &lt;/P&gt;&lt;P&gt;c:\Freescale\Freescale_MQX_4_0\mqx\source\io\flashx\freescale\flash_ftfe.c)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to meet your application needs. The flashx chapter in MQX I/O User's Guide is worth reading.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 07:14:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251578#M7277</guid>
      <dc:creator>Martin_</dc:creator>
      <dc:date>2013-02-11T07:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Which flash regions can I access with flashx?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251579#M7278</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;I found out something new!&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave up on the flashx driver and programmed the write sequence "by hand", writing directly to the FTFE registers.&lt;/P&gt;&lt;P&gt;I had pretty much the same effects, i.e. I saw the data written to the flash in the memory browser, but when I powered the K60 tower down and up again, and restarted the debugger, the data was gone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Until I tried, for some reason, to run my program without debugger and, voila, the data was still there after power down and up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apart from the knowledge, not to try writing to flash while debugging, there is the question why is that so and is there a way to overcome it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Martin &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 14:37:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251579#M7278</guid>
      <dc:creator>martinpi</dc:creator>
      <dc:date>2013-03-15T14:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Which flash regions can I access with flashx?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251580#M7279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello martinpi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This topic might answer your question:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/301566"&gt;flex memory in debug&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;MartinK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Mar 2013 08:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251580#M7279</guid>
      <dc:creator>c0170</dc:creator>
      <dc:date>2013-03-16T08:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Which flash regions can I access with flashx?</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251581#M7280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, this seems to do the trick.&lt;/P&gt;&lt;P&gt;In the advanced programming options, I set the flash region which I want to preserve.&lt;/P&gt;&lt;P&gt;On the downside, it makes starting the debugger extremely slow.&lt;/P&gt;&lt;P&gt;I mean, it is always slow, but now I am waiting for the debugger to start,&lt;/P&gt;&lt;P&gt;it still says "Download using 3rd party component.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Okay, it is done, it took 12 minutes and I missed my train.&lt;/P&gt;&lt;P&gt;And this is not limited to debugging, when I click on Run instead of Debug, it takes very long time again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 20:01:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Which-flash-regions-can-I-access-with-flashx/m-p/251581#M7280</guid>
      <dc:creator>martinpi</dc:creator>
      <dc:date>2013-03-18T20:01:17Z</dc:date>
    </item>
  </channel>
</rss>

