<?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>LPC MicrocontrollersのトピックRe: Semihosted behavior when no jtag</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Semihosted-behavior-when-no-jtag/m-p/905286#M36286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread should help you&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/424925"&gt;https://community.nxp.com/thread/424925&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2019 16:06:22 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2019-05-08T16:06:22Z</dc:date>
    <item>
      <title>Semihosted behavior when no jtag</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Semihosted-behavior-when-no-jtag/m-p/905285#M36285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I use semihosted (on lpcxpresso1769) for do a log of my application in a file.&lt;/P&gt;&lt;P&gt;That work fine when i run from mcuxpresso.&lt;/P&gt;&lt;P&gt;But if i reset me board I want me aplication continue to work witouth log. But&amp;nbsp;my&amp;nbsp;&lt;SPAN&gt;application&lt;/SPAN&gt; do a&amp;nbsp;hardFault in fopen()&lt;/P&gt;&lt;P&gt;is possible to test if we are connected in jtag or not?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2019 12:10:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Semihosted-behavior-when-no-jtag/m-p/905285#M36285</guid>
      <dc:creator>simonfourquier</dc:creator>
      <dc:date>2019-05-08T12:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Semihosted behavior when no jtag</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Semihosted-behavior-when-no-jtag/m-p/905286#M36286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This thread should help you&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/424925"&gt;https://community.nxp.com/thread/424925&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2019 16:06:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Semihosted-behavior-when-no-jtag/m-p/905286#M36286</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-05-08T16:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Semihosted behavior when no jtag</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Semihosted-behavior-when-no-jtag/m-p/905287#M36287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a modification of the hard fault handler.&lt;/P&gt;&lt;P&gt;Have a look at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/MCUXpresso/FRDM-K64F/FRDM-K64F_McuOnEclipseLib/McuLib/src/McuHardFault.c" title="https://github.com/ErichStyger/mcuoneclipse/blob/master/Examples/MCUXpresso/FRDM-K64F/FRDM-K64F_McuOnEclipseLib/McuLib/src/McuHardFault.c"&gt;mcuoneclipse/McuHardFault.c at master · ErichStyger/mcuoneclipse · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for McuHardFault_CONFIG_SETTING_SEMIHOSTING.&lt;/P&gt;&lt;P&gt;It basically continues in case you get a hard fault because no debugger is attached.&lt;/P&gt;&lt;P&gt;For background on the handler see &lt;A class="link-titled" href="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" title="https://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;Debugging Hard Faults on ARM Cortex-M | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for detecting if a debugger is attached: I think there is a bit in the ARM DWT (see &lt;A class="link-titled" href="https://mcuoneclipse.com/2017/01/30/cycle-counting-on-arm-cortex-m-with-dwt/" title="https://mcuoneclipse.com/2017/01/30/cycle-counting-on-arm-cortex-m-with-dwt/"&gt;Cycle Counting on ARM Cortex-M with DWT | MCU on Eclipse&lt;/A&gt; ), but I would have to check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 03:55:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Semihosted-behavior-when-no-jtag/m-p/905287#M36287</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2019-05-09T03:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Semihosted behavior when no jtag</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Semihosted-behavior-when-no-jtag/m-p/905288#M36288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks you&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #51626f; border: 0px;"&gt;if ((CoreDebug-&amp;gt;DHCSR &amp;amp; CoreDebug_DHCSR_C_DEBUGEN_Msk)==CoreDebug_DHCSR_C_DEBUGEN_Msk) {
work fine&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 17:35:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Semihosted-behavior-when-no-jtag/m-p/905288#M36288</guid>
      <dc:creator>simonfourquier</dc:creator>
      <dc:date>2019-05-09T17:35:16Z</dc:date>
    </item>
  </channel>
</rss>

