<?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: internal EEPROM programming through SWD/JTAG and/or ISP</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515894#M1409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Sat Dec 12 09:20:34 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Whatever works for you.&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However note that the (physical) flash is divided into sectors (regardless of how few bytes you assign).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Programming the 4 (or whatever) bytes causes the entire sector (32K, 64K?) to be erased.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:20:53 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:20:53Z</dc:date>
    <item>
      <title>internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515879#M1394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by giusloq on Wed Jul 22 07:00:22 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to program some values in the internal EEPROM of LPC1778 part, during SWD/JTAG and/or ISP programming?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it isn't possible, but I'd like a confirmation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515879#M1394</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515880#M1395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Wed Jul 22 07:51:04 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You could very easily download a small code image to &lt;/SPAN&gt;&lt;I&gt;SRAM&lt;/I&gt;&lt;SPAN&gt; via ISP or JTAG/SWD and execute that to program the EEPROM or anything else for that matter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515880#M1395</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515881#M1396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by giusloq on Wed Jul 22 08:31:02 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;You could very easily download a small code image to SRAM via ISP or JTAG/SWD and execute that to program the EEPROM or anything else for that matter.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good suggestion. But I need some help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a reference for an "all in RAM" LPCXpresso starting project?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515881#M1396</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515882#M1397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Jul 22 08:41:20 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;SImplest way to do this is to use the Memory editor and delete all of the flash!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515882#M1397</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515883#M1398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by giusloq on Wed Jul 22 09:04:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;SImplest way to do this is to use the Memory editor and delete all of the flash!&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your suggestion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How the linker know where to put the code? Does it automatically put the code in RAM when there isn't Flash memory sections?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What will be the address of the entry point of the application in RAM? Is it 0x10000000, the first location of RAM in LPC1788?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515883#M1398</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515884#M1399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Wed Jul 22 09:26:49 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - In the same way that it knows where to place it when flash is defined - read the linker script...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515884#M1399</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515885#M1400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by giusloq on Wed Jul 22 11:39:09 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, ok.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if I use SWD to program this EEPROM manager in RAM, must I switch to another port (UART) for communixations between host and target? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to use SWD to exchange data between the appication running from RAM in the target MCU and the PC?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I need to switch to a regular UART, I implement the code to write in EEPROM directly in the final application that uses that port.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515885#M1400</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515886#M1401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by giusloq on Thu Dec 10 04:31:39 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;But if I use SWD to program this EEPROM manager in RAM, must I switch to another port (UART) for communixations between host and target? &lt;BR /&gt;Is it possible to use SWD to exchange data between the appication running from RAM in the target MCU and the PC?&lt;BR /&gt;&lt;BR /&gt;If I need to switch to a regular UART, I implement the code to write in EEPROM directly in the final application that uses that port.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No one answered to this question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is to write a serial number in EEPROM during Flash programming. I use SWD debugger/programmer (J-Link) to program Flash memory. I'd like to use the same connection to program the serial number too, without using another communication port.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible? Any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515886#M1401</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515887#M1402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Thu Dec 10 06:51:23 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;At our place, we use the UART and ISP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially I wrote a PC app that uses the ISP command set to handle the same functions that FlashMagic would.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is tailored to get the flash image automatically (there is only one we use) and to 'patch in' a serial number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on the fly for every download.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The next serial nbr was maintained in an ini file with the 1st version, now we use a SQLite database with&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that and other info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515887#M1402</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515888#M1403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by giusloq on Thu Dec 10 07:20:10 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Essentially I wrote a PC app that uses the ISP command set to handle the same functions that FlashMagic would.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Isn't ISP much slower than SWD in Flash programming?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;and to 'patch in' a serial number&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean with "patch in"? Is your final application responsible to read/accept the serial number from UART at first power up, using a proprietary protocol?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515888#M1403</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515889#M1404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Thu Dec 10 18:40:51 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We do not consider speed to be an issue (no measurements were made) as this is a one-off operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'Patch in' simply means the a defiined address of the download image (set to all FF's in the source code)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is overwritten with a 'value' before the download process begins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;'Value' is just that -- a number -- and can mean whatever you want. In our case a serial number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This 'value' can be read at any time by simply forming a pointer to the address and de-referencing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just like any constant coded in to flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
#define SerialAddr&amp;nbsp;&amp;nbsp; 0x0100
unsigned long *pSerial = (unsigned long *) SerialAddr;
mySerial = *pSerial;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is just basic "C".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The actual address (0x100) is just an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had a small assembler module to define the value (as 0xFFFFFFFF) and used the linker script&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to place it at a defined location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Read the docs if that is unclear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515889#M1404</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515890#M1405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by giusloq on Fri Dec 11 02:56:08 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;We do not consider speed to be an issue (no measurements were made) as this is a one-off operation.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If your market is low-volume high-profit, this is right. When you work with high-volume and low-profit devices, a fast programming procedure means money.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;'Patch in' simply means the a defiined address of the download image (set to all FF's in the source code)&lt;BR /&gt;is overwritten with a 'value' before the download process begins.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I understand, you use Flash to store serial number, not EEPROM. It is a good solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you use any tool to 'patch' the download image file (I think you use output .bin)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;I had a small assembler module to define the value (as 0xFFFFFFFF) and used the linker script&lt;BR /&gt;to place it at a defined location.&lt;BR /&gt;&lt;BR /&gt;Read the docs if that is unclear.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the method you use, but I don't know how to make it. Please, could you share your assembler and linker script? Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515890#M1405</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515891#M1406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Fri Dec 11 09:27:22 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No tool to patch as such,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The actual patching is done in the code that downloads to the device&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after reading the input (un-serialised) download image and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;before transferring to ram prior to copy-ram-to-flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515891#M1406</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515892#M1407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Fri Dec 11 09:39:12 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have given all the techniques; you will have to handle the details yourself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because I cannot show any details as they are company confidential.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well here is a sample assembler module&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in .section, "a" means allocatable, "%progbits" means generate output (not just space)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;See the GNU assembler manual via the IDE help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can probably do the same thing in "C" via the various &lt;/SPAN&gt;&lt;I&gt;pragmas&lt;/I&gt;&lt;SPAN&gt;. There even threads here if you search.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I prefer the assembler route, so have no details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;File: Serial.s:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
.file"Serial.s"
.globalSerialNumber

.section .serial, "a", %progbits
.align 4,0

.type SerialNumber, %object
.size SerialNumber, 4

SerialNumber:.word 0xFFFFFFFF
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference section '.serial' in your linker script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is also a linker (ld) manual via the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515892#M1407</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515893#M1408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by giusloq on Sat Dec 12 08:42:09 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Well here is a sample assembler module&lt;BR /&gt;[...]&lt;BR /&gt;Reference section '.serial' in your linker script.&lt;BR /&gt;There is also a linker (ld) manual via the help.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use LPCXpresso that manages automatically the linker script. So I obtained the same result changing the memory layout from Memory Editor Window (or a similar name) reached with Project-&amp;gt;Properties...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I split the Flash section in two sections. The second section occupy only the last 4 bytes of the Flash memory and it is where the serial number will be saved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In C code, I use macros in &amp;lt;cr_sections_macro.h&amp;gt; to specify the section of a const uint32_t variable. See &lt;/SPAN&gt;&lt;A href="http://https://www.lpcware.com/content/faq/lpcxpresso/coderodata-different-flash-blocks"&gt;this link&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the programming script, after obtaining a new serial number (I'm using a simple .csv file), I create the image file from the original image file using the powerful &lt;/SPAN&gt;&lt;A href="http://http://srecord.sourceforge.net/"&gt;SRecord tool&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515893#M1408</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515894#M1409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Sat Dec 12 09:20:34 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Whatever works for you.&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However note that the (physical) flash is divided into sectors (regardless of how few bytes you assign).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Programming the 4 (or whatever) bytes causes the entire sector (32K, 64K?) to be erased.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515894#M1409</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: internal EEPROM programming through SWD/JTAG and/or ISP</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515895#M1410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by giusloq on Mon Dec 14 00:58:25 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: MikeSimmonds&lt;/STRONG&gt;&lt;BR /&gt;However note that the (physical) flash is divided into sectors (regardless of how few bytes you assign).&lt;BR /&gt;Programming the 4 (or whatever) bytes causes the entire sector (32K, 64K?) to be erased.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's the problem? I write the serial number together with the application (and maybe the bootloader), so the first operation is a "chip erase".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:20:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/internal-EEPROM-programming-through-SWD-JTAG-and-or-ISP/m-p/515895#M1410</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:20:54Z</dc:date>
    </item>
  </channel>
</rss>

