<?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: Invalid function pointer exception</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-function-pointer-exception/m-p/845548#M50892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudeep,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your interest in NXP kinetis product, I would like to provide service for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next time, please let us know the kinetis chip part number, as you know, K20 have a lot of series, 50Mhz, 72Mhz, 100Mhz etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In your PE configuration, don't just enable the hardfault, you can enable all the fault interrupt:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74349i80899504A317BAAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think you especially need to enable the usage fault.&lt;/P&gt;&lt;P&gt;&amp;nbsp; From the ARM cortex-M4 device generic user guide, we can know these exception types:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74403iD1165B590F6C82EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74440iA30540B3871FE7A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, enable all the fault interrupt, then try it again.&lt;/P&gt;&lt;P&gt;If you still have problems, you can send me your test project, I will help you to check it.&lt;/P&gt;&lt;P&gt;You also can stop the running during debugging after you run the exceptions, just to check where the code is stopping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any updated information, just let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Fri, 12 Oct 2018 06:34:26 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2018-10-12T06:34:26Z</dc:date>
    <item>
      <title>Invalid function pointer exception</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-function-pointer-exception/m-p/845547#M50891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to write a exception handler to catch invalid function pointer calls for Uc MK20DX256(cortex M4). I was assuming a hard fault exception would be raised for such calls unfortunately that doesn't seem to be the case. I had enabled the hard fault in the PE cpu components. PE created a hard fault exception catch routine. Tried catching this exception by enabling a breakpoint in the exception catch routine but this break point was never hit. It would be great if anyone could give clarity on the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Does Hard fault exception get raised during invalid function pointer calls ?&lt;/P&gt;&lt;P&gt;2. If Yes, whats it that I am doing wrong ?&lt;/P&gt;&lt;P&gt;3. If no, whats a good way to catch invalid function pointer calls ?@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:06:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-function-pointer-exception/m-p/845547#M50891</guid>
      <dc:creator>sudeepchandrase</dc:creator>
      <dc:date>2018-10-10T06:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid function pointer exception</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-function-pointer-exception/m-p/845548#M50892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudeep,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your interest in NXP kinetis product, I would like to provide service for you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next time, please let us know the kinetis chip part number, as you know, K20 have a lot of series, 50Mhz, 72Mhz, 100Mhz etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; In your PE configuration, don't just enable the hardfault, you can enable all the fault interrupt:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74349i80899504A317BAAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think you especially need to enable the usage fault.&lt;/P&gt;&lt;P&gt;&amp;nbsp; From the ARM cortex-M4 device generic user guide, we can know these exception types:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74403iD1165B590F6C82EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74440iA30540B3871FE7A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So, enable all the fault interrupt, then try it again.&lt;/P&gt;&lt;P&gt;If you still have problems, you can send me your test project, I will help you to check it.&lt;/P&gt;&lt;P&gt;You also can stop the running during debugging after you run the exceptions, just to check where the code is stopping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any updated information, just let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Fri, 12 Oct 2018 06:34:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-function-pointer-exception/m-p/845548#M50892</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-10-12T06:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid function pointer exception</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-function-pointer-exception/m-p/845549#M50893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. RESOLVED.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 10:46:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-function-pointer-exception/m-p/845549#M50893</guid>
      <dc:creator>sudeepchandrase</dc:creator>
      <dc:date>2018-10-12T10:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid function pointer exception</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-function-pointer-exception/m-p/845550#M50894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudeep Chandrasekaran,&lt;/P&gt;&lt;P&gt;You are welcome!&lt;/P&gt;&lt;P&gt;&amp;nbsp;If your problem is solved, could you help to mark the correct answer? Just to close the case, thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Tue, 16 Oct 2018 07:06:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Invalid-function-pointer-exception/m-p/845550#M50894</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-10-16T07:06:27Z</dc:date>
    </item>
  </channel>
</rss>

