<?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のトピックHitex 4350 external flash boot</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hitex-4350-external-flash-boot/m-p/559838#M15953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gregUR on Tue Dec 04 07:16:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everyone&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem while loading binary into flash on Hitex eval board(LPC 4350). I am using GNUARM toolchain to compile, and JLink GDB server to load/debug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can load .elf file to ram through JlinkGDB server and arm-none-eabi-gdb (target remote :2331). I run the program, everything works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I want to load it to flash, I build my elf so text goes to 0x1c000000 (static external memory CS0), data follows it in flash, and on startup data is copied to 0x20000000 (RAM).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to load it with GDB by setting "monitor flash device LPC4350" (not recognized), "monitor flash device Cortex-M4" (no complains), then "monitor flash download 1" and then load main.elf, here is the output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) load main.elf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section vectors, size 0x114 lma 0x1c000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .text, size 0xd6f8 lma 0x1c000118&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .ARM.exidx, size 0x8 lma 0x1c00d810&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .data, size 0x64 lma 0x1c00d818&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start address 0x1c00035d, load size 55416&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transfer rate: 82 KB/sec, 7916 bytes/write.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to read adresses, nothing changes, it seems like it is not written. When I reset the board, preflashed demo starts, I can never overwrite it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried by JLink.exe and it is similar, here is the output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J-Link&amp;gt;loadbin main.bin 0x1c000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading binary file... [main.bin]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Writing bin data into target memory @ 0x1C000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;J-Link&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the general procedure while loading to flash ? Is it enough to set those commands ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jlink software version V456. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:43:50 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:43:50Z</dc:date>
    <item>
      <title>Hitex 4350 external flash boot</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Hitex-4350-external-flash-boot/m-p/559838#M15953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by gregUR on Tue Dec 04 07:16:13 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi everyone&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a problem while loading binary into flash on Hitex eval board(LPC 4350). I am using GNUARM toolchain to compile, and JLink GDB server to load/debug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can load .elf file to ram through JlinkGDB server and arm-none-eabi-gdb (target remote :2331). I run the program, everything works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I want to load it to flash, I build my elf so text goes to 0x1c000000 (static external memory CS0), data follows it in flash, and on startup data is copied to 0x20000000 (RAM).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to load it with GDB by setting "monitor flash device LPC4350" (not recognized), "monitor flash device Cortex-M4" (no complains), then "monitor flash download 1" and then load main.elf, here is the output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb) load main.elf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section vectors, size 0x114 lma 0x1c000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .text, size 0xd6f8 lma 0x1c000118&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .ARM.exidx, size 0x8 lma 0x1c00d810&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading section .data, size 0x64 lma 0x1c00d818&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Start address 0x1c00035d, load size 55416&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Transfer rate: 82 KB/sec, 7916 bytes/write.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(gdb)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to read adresses, nothing changes, it seems like it is not written. When I reset the board, preflashed demo starts, I can never overwrite it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried by JLink.exe and it is similar, here is the output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;J-Link&amp;gt;loadbin main.bin 0x1c000000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Loading binary file... [main.bin]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Writing bin data into target memory @ 0x1C000000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;J-Link&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the general procedure while loading to flash ? Is it enough to set those commands ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jlink software version V456. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:43:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Hitex-4350-external-flash-boot/m-p/559838#M15953</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:43:50Z</dc:date>
    </item>
  </channel>
</rss>

