<?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: LPC29xx JTAG protection</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721660#M29162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correct, Argentina might be too far away for sending boards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Look into the project &lt;EM&gt;\KEIL\IndexSector_Config&lt;/EM&gt;. The function &lt;EM&gt;FMC_WriteIndexPage&lt;/EM&gt; can be found in the file &lt;EM&gt;fmc.c&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;In the folder which includes the code belonging to the app note this function is also included in the file &lt;EM&gt;fmc.c&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;I didn't look into the folder FMC and what the example is supposed to do, but it seems it's not doing things with the index sector&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2018 15:15:40 GMT</pubDate>
    <dc:creator>bernhardfink</dc:creator>
    <dc:date>2018-05-03T15:15:40Z</dc:date>
    <item>
      <title>LPC29xx JTAG protection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721657#M29159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm trying to activate&amp;nbsp; the&amp;nbsp;JTAG security from my LPC29xx and I found here:&amp;nbsp;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/user-guide/UM10316.pdf" title="https://www.nxp.com/docs/en/user-guide/UM10316.pdf"&gt;https://www.nxp.com/docs/en/user-guide/UM10316.pdf&lt;/A&gt;&amp;nbsp; in page 481 an example but I doesn't work :/&lt;/P&gt;&lt;P&gt;Could someone help me or provide the sample code to activate the JTAG protection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this part in my startup code:&lt;/P&gt;&lt;P&gt;SEC_DIS EQU 0xE0001B00&lt;BR /&gt;SEC_Value EQU 0x00&amp;nbsp;&lt;BR /&gt; LDR R0, =SEC_DIS&lt;BR /&gt; LDR R1, =SEC_Value&lt;BR /&gt; STR R1, [R0, #0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read that I have to write 0x7FFFFFFF in some part of the flash but I cannot do it&amp;nbsp; :smileysad:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 17:30:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721657#M29159</guid>
      <dc:creator>fernandotheirs</dc:creator>
      <dc:date>2018-05-02T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: LPC29xx JTAG protection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721658#M29160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a first step, please look into the attached appnote, maybe it provides the missing piece of information.&lt;/P&gt;&lt;P&gt;If not, just come back and I'll look for more details. I'm missing the sample code the appnote is referring to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; I read that I have to write 0x7FFFFFFF in some part of the flash but I cannot do it&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Writing to flash" of course means that you need to program specific memory locations, I think in the index sector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Btw, if you have a need for LPC2900 boards (from Keil or Hitex) I have many of them in my office in Munich, more or less to be trashed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update:&amp;nbsp; found some code for the LPC2900 and attached it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 08:29:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721658#M29160</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2018-05-03T08:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC29xx JTAG protection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721659#M29161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bernhard,&lt;/P&gt;&lt;P&gt;Thanks once again to answer my question and thank you very much for the LPC boards but I'm living in Argentina and I think that the shipping cost will be really high :smileysad:&lt;/P&gt;&lt;P&gt;I read the PDF file and look at the examples (specially the one under FMC folder) but I'm still having some problems with the flash writing. I couldn't find the method&amp;nbsp;&lt;STRONG&gt;FMC_WriteIndexPage&lt;/STRONG&gt;, so I took &lt;STRONG&gt;FMC_WritePage&lt;/STRONG&gt; and I removed the part that completes the full page with 0xFF. I also changed&amp;nbsp;&lt;SPAN&gt; &lt;/SPAN&gt;&amp;nbsp; &lt;STRONG&gt;TestPage[15] = 0x7f; &lt;/STRONG&gt;(example value was 0xFF).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran first&amp;nbsp;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;FMC_Init();&amp;nbsp;&lt;/STRONG&gt; and then the part of the code that is under JTAG_SECURITY. However, the JTAG is never disabled :smileysad:&amp;nbsp;I checked SEC_DIS and it's always in zero, so the part that is written in the startup is setting the right value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea? Do I require any special consideration to write only the 128bit for JTAG security?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and ideas :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 14:10:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721659#M29161</guid>
      <dc:creator>fernandotheirs</dc:creator>
      <dc:date>2018-05-03T14:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPC29xx JTAG protection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721660#M29162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;correct, Argentina might be too far away for sending boards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Look into the project &lt;EM&gt;\KEIL\IndexSector_Config&lt;/EM&gt;. The function &lt;EM&gt;FMC_WriteIndexPage&lt;/EM&gt; can be found in the file &lt;EM&gt;fmc.c&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;In the folder which includes the code belonging to the app note this function is also included in the file &lt;EM&gt;fmc.c&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;I didn't look into the folder FMC and what the example is supposed to do, but it seems it's not doing things with the index sector&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bernhard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 15:15:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721660#M29162</guid>
      <dc:creator>bernhardfink</dc:creator>
      <dc:date>2018-05-03T15:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC29xx JTAG protection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721661#M29163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks!! I made it work! I've just compared the FMC_WirteIndexPage and the code that I modified and it's the same. I needed to add FS_ISS to&amp;nbsp; FCTR. Otherwise, the flash sector is hidden.&lt;/P&gt;&lt;P&gt;I will mark this as solved!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Fernando&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2018 15:57:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC29xx-JTAG-protection/m-p/721661#M29163</guid>
      <dc:creator>fernandotheirs</dc:creator>
      <dc:date>2018-05-03T15:57:42Z</dc:date>
    </item>
  </channel>
</rss>

