<?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: SWO pins was disabled, cannot program NHS3152 in NFC</title>
    <link>https://community.nxp.com/t5/NFC/SWO-pins-was-disabled-cannot-program-NHS3152/m-p/733799#M3064</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are multiple options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do you have CRP enabled? Have a look at the documentation in your SDK: &lt;EM&gt;docs/FirmwareDevelopmentDocumentation/index.html&lt;/EM&gt; &amp;gt; &lt;EM&gt;SW Debug Considerations&lt;/EM&gt;, there is paragraph that talks about CRP.&lt;/LI&gt;&lt;LI&gt;Exactly when do you disable the SWD functionality? Immediately after a reset when &lt;EM&gt;main&lt;/EM&gt; gets control? Or a few milliseconds later? You may be able to re-flash your IC by using FlashMagic, which prior to a flash operation, resets the IC and tries to hold the ARM as quickly as possible. It is much faster than the LPCXpresso IDE.&lt;/LI&gt;&lt;LI&gt;Is there a way in the application logic of the firmware currently flashed in the chip, that will cause it to re-enable SWD debugging?&amp;nbsp;Can that be provoked, after which you can flash again?&lt;/LI&gt;&lt;LI&gt;Did you include the &lt;EM&gt;msg&lt;/EM&gt; module in your application and enable the diversity setting &lt;EM&gt;MSG_ENABLE_PREPAREDEBUG&lt;/EM&gt;? Then you can force enabling the SWD functionality and halting the ARM core by sending an NDEF message with 1 MIME record using the payload &lt;EM&gt;08h 00h&lt;/EM&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all this fails, or is not possible, then the only way out is&amp;nbsp;to solder a new IC to your board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Dries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Mar 2018 10:30:47 GMT</pubDate>
    <dc:creator>driesmoors</dc:creator>
    <dc:date>2018-03-26T10:30:47Z</dc:date>
    <item>
      <title>SWO pins was disabled, cannot program NHS3152</title>
      <link>https://community.nxp.com/t5/NFC/SWO-pins-was-disabled-cannot-program-NHS3152/m-p/733798#M3063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I disabled P0.10 and P0.11 on NHS3152. It cannot be connected,&amp;nbsp;programmed and debug via LPC-Link 2. Anyone can help me? Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Mar 2018 13:40:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/SWO-pins-was-disabled-cannot-program-NHS3152/m-p/733798#M3063</guid>
      <dc:creator>wenyangxie</dc:creator>
      <dc:date>2018-03-25T13:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: SWO pins was disabled, cannot program NHS3152</title>
      <link>https://community.nxp.com/t5/NFC/SWO-pins-was-disabled-cannot-program-NHS3152/m-p/733799#M3064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are multiple options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Do you have CRP enabled? Have a look at the documentation in your SDK: &lt;EM&gt;docs/FirmwareDevelopmentDocumentation/index.html&lt;/EM&gt; &amp;gt; &lt;EM&gt;SW Debug Considerations&lt;/EM&gt;, there is paragraph that talks about CRP.&lt;/LI&gt;&lt;LI&gt;Exactly when do you disable the SWD functionality? Immediately after a reset when &lt;EM&gt;main&lt;/EM&gt; gets control? Or a few milliseconds later? You may be able to re-flash your IC by using FlashMagic, which prior to a flash operation, resets the IC and tries to hold the ARM as quickly as possible. It is much faster than the LPCXpresso IDE.&lt;/LI&gt;&lt;LI&gt;Is there a way in the application logic of the firmware currently flashed in the chip, that will cause it to re-enable SWD debugging?&amp;nbsp;Can that be provoked, after which you can flash again?&lt;/LI&gt;&lt;LI&gt;Did you include the &lt;EM&gt;msg&lt;/EM&gt; module in your application and enable the diversity setting &lt;EM&gt;MSG_ENABLE_PREPAREDEBUG&lt;/EM&gt;? Then you can force enabling the SWD functionality and halting the ARM core by sending an NDEF message with 1 MIME record using the payload &lt;EM&gt;08h 00h&lt;/EM&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all this fails, or is not possible, then the only way out is&amp;nbsp;to solder a new IC to your board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Dries.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 10:30:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/SWO-pins-was-disabled-cannot-program-NHS3152/m-p/733799#M3064</guid>
      <dc:creator>driesmoors</dc:creator>
      <dc:date>2018-03-26T10:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: SWO pins was disabled, cannot program NHS3152</title>
      <link>https://community.nxp.com/t5/NFC/SWO-pins-was-disabled-cannot-program-NHS3152/m-p/733800#M3065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just simple run the blinky demo, but I set PIO10 or PIO 11 to OUTPUT pin after board_init() and then it died.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't enable CRP and try to erase flash by FlashMagic, but they don't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2018 18:56:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/SWO-pins-was-disabled-cannot-program-NHS3152/m-p/733800#M3065</guid>
      <dc:creator>wenyangxie</dc:creator>
      <dc:date>2018-03-30T18:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: SWO pins was disabled, cannot program NHS3152</title>
      <link>https://community.nxp.com/t5/NFC/SWO-pins-was-disabled-cannot-program-NHS3152/m-p/733801#M3066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I'm afraid the IC looks thoroughly bricked and beyond recovery.&lt;/P&gt;&lt;P&gt;Replace the IC - or the entire board, and adapt your firmware:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Either just add&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;Chip_Clock_System_BusyWait_ms(50);&lt;/BLOCKQUOTE&gt;before doing something possibly dangerous. This will give you a minimum window of opportunity of 50 ms to break in.&lt;/LI&gt;&lt;LI&gt;Better seems to have a look at the implementation of&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;void ResetISR(void)&lt;/BLOCKQUOTE&gt;in the tlogger application firmware (look in SDK 11 ALPHA), and copy the extra break-in possibility, conditional to the state of the wake-up push button: i.e. wait during startup for as long as the WAKEUP pin is low.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 16:20:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/SWO-pins-was-disabled-cannot-program-NHS3152/m-p/733801#M3066</guid>
      <dc:creator>driesmoors</dc:creator>
      <dc:date>2018-04-02T16:20:23Z</dc:date>
    </item>
  </channel>
</rss>

