<?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: Access Flash at runtime in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-Flash-at-runtime/m-p/1486672#M63541</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Is it possible to access code at run time?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;yes.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;How can we access code stored at flash at runtime in NXP MK60?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;uint32_t *p = (uint32_t*)main;
uint32_t startOfMainCode = *p;&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;At what address code is store in flash, how to check that?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As in above example, if you want to access the code of a known symbol/function.&lt;/P&gt;&lt;P&gt;Otherwise check your linker file and linker map file: You can use these symbols too. I wrote a while back an article on that topic: &lt;A href="https://mcuoneclipse.com/2016/11/01/getting-the-memory-range-of-sections-with-gnu-linker-files/" target="_blank"&gt;https://mcuoneclipse.com/2016/11/01/getting-the-memory-range-of-sections-with-gnu-linker-files/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2022 07:44:31 GMT</pubDate>
    <dc:creator>ErichStyger</dc:creator>
    <dc:date>2022-07-08T07:44:31Z</dc:date>
    <item>
      <title>Access Flash at runtime</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-Flash-at-runtime/m-p/1486634#M63539</link>
      <description>&lt;P&gt;Hi.....&lt;/P&gt;&lt;P&gt;Is it possible to access code at run time?&lt;/P&gt;&lt;P&gt;How can we access code stored at flash at runtime in NXP MK60?&lt;/P&gt;&lt;P&gt;At what address code is store in flash, how to check that?&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 06:50:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-Flash-at-runtime/m-p/1486634#M63539</guid>
      <dc:creator>Arpit_Jain</dc:creator>
      <dc:date>2022-07-08T06:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Access Flash at runtime</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-Flash-at-runtime/m-p/1486672#M63541</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;Is it possible to access code at run time?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;yes.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;How can we access code stored at flash at runtime in NXP MK60?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;uint32_t *p = (uint32_t*)main;
uint32_t startOfMainCode = *p;&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;At what address code is store in flash, how to check that?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As in above example, if you want to access the code of a known symbol/function.&lt;/P&gt;&lt;P&gt;Otherwise check your linker file and linker map file: You can use these symbols too. I wrote a while back an article on that topic: &lt;A href="https://mcuoneclipse.com/2016/11/01/getting-the-memory-range-of-sections-with-gnu-linker-files/" target="_blank"&gt;https://mcuoneclipse.com/2016/11/01/getting-the-memory-range-of-sections-with-gnu-linker-files/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 07:44:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Access-Flash-at-runtime/m-p/1486672#M63541</guid>
      <dc:creator>ErichStyger</dc:creator>
      <dc:date>2022-07-08T07:44:31Z</dc:date>
    </item>
  </channel>
</rss>

