We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all,
I have try to use Ethernet bootloader on Cortex-M3 LPC1768. The bootloader sample code used was provided by Flash Magic. I have try to upload the blinky sample code through Ethernet, it is work well. However, i have try to upload http_demo sample code(with modification) through Ethernet, the application code does not work at all.
I have set the start address to 0x2000 and remapping the interrupt vector table to alternate locations in the memory map
SCB->VTOR = 0x2007C000;
But, it didn't help also. Anybody can help on this problem?
Below is the part of memory map contents of http_demo sample code(with modification).
============================================================================== Memory Map of the image Image Entry point : 0x000020cd Load Region LR_IROM1 (Base: 0x00002000, Size: 0x000107fc, Max: 0x00080000, ABSOLUTE, COMPRESSED[0x000106cc]) Execution Region ER_IROM1 (Base: 0x00002000, Size: 0x0001068c, Max: 0x00080000, ABSOLUTE) Base Addr Size Type Attr Idx E Section Name Object 0x00002000 0x000000cc Data RO 231 RESET startup_lpc17xx.o 0x000020cc 0x00000000 Code RO 630 * .ARM.Collect$$$$00000000 mc_w.l(entry.o) 0x000020cc 0x00000004 Code RO 924 .ARM.Collect$$$$00000001 mc_w.l(entry2.o) 0x000020d0 0x00000004 Code RO 927 .ARM.Collect$$$$00000004 mc_w.l(entry5.o) 0x000020d4 0x00000008 Code RO 928 .ARM.Collect$$$$00000007 mc_w.l(entry7.o) 0x000020dc 0x00000004 Code RO 925 .ARM.Collect$$$$00002712 mc_w.l(entry2.o) 0x000020e0 0x000049a8 Code RO 2 .text http_demo.o 0x00006a88 0x00000f3c Code RO 81 .text http_cgi.o 0x000079c4 0x00000308 Code RO 131 .text i2c.o 0x00007ccc 0x00000128 Code RO 164 .text eeprom.o 0x00007df4 0x000001d0 Code RO 184 .text timer0.o 0x00007fc4 0x00000060 Code RO 209 .text net_config.o 0x00008024 0x0000001c Code RO 233 .text startup_lpc17xx.o 0x00008040 0x00000648 Code RO 280 .text emac_lpc17xx.o 0x00008688 0x00000224 Code RO 305 .text system_lpc17xx.o 0x000088ac 0x00000024 Code RO 633 .text . . . . . . . Execution Region RW_IRAM1 (Base: 0x10000000, Size: 0x00005530, Max: 0x00008000, ABSOLUTE, COMPRESSED[0x00000040]) Base Addr Size Type Attr Idx E Section Name Object 0x10000000 0x00000088 Data RW 5 .data http_demo.o 0x10000088 0x00000028 Data RW 83 .data http_cgi.o 0x100000b0 0x00000024 Data RW 133 .data i2c.o 0x100000d4 0x00000034 Data RW 185 .data timer0.o 0x10000108 0x0000002a Data RW 212 .data net_config.o 0x10000132 0x00000002 PAD 0x10000134 0x00000005 Data RW 282 .data emac_lpc17xx.o 0x10000139 0x00000003 PAD 0x1000013c 0x00000004 Data RW 306 .data system_lpc17xx.o 0x10000140 0x00000004 Data RW 383 .data TCP_CM3.lib(at_tcp.o) 0x10000144 0x0000000c Data RW 461 .data TCP_CM3.lib(at_http.o) 0x10000150 0x00000008 Data RW 502 .data TCP_CM3.lib(at_ethernet.o) 0x10000158 0x00000004 Data RW 563 .data TCP_CM3.lib(at_mem.o) 0x1000015c 0x00000008 Data RW 573 .data TCP_CM3.lib(at_system.o) 0x10000164 0x00000002 Data RW 590 .data TCP_CM3.lib(at_arp.o) 0x10000166 0x00000004 Data RW 608 .data TCP_CM3.lib(at_ip.o) 0x1000016a 0x00000002 PAD 0x1000016c 0x00000004 Data RW 939 .data mc_w.l(errno.o) 0x10000170 0x00000087 Zero RW 3 .bss http_demo.o 0x100001f7 0x00000014 Zero RW 132 .bss i2c.o 0x1000020b 0x00000001 PAD 0x1000020c 0x00002400 Zero RW 210 .bss net_config.o 0x1000260c 0x00000004 PAD 0x10002610 0x00002a64 Zero RW 281 .bss emac_lpc17xx.o 0x10005074 0x00000080 Zero RW 500 .bss TCP_CM3.lib(at_ethernet.o) 0x100050f4 0x0000003c Zero RW 572 .bss TCP_CM3.lib(at_system.o) 0x10005130 0x00000400 Zero RW 229 STACK startup_lpc17xx.o Load Region LR$$.ARM.__at_0x02FC (Base: 0x000002fc, Size: 0x00000004, Max: 0x00000004, ABSOLUTE) Execution Region ER$$.ARM.__at_0x02FC (Base: 0x000002fc, Size: 0x00000004, Max: 0x00000004, ABSOLUTE, UNINIT) Base Addr Size Type Attr Idx E Section Name Object 0x000002fc 0x00000004 Code RO 232 .ARM.__at_0x02FC startup_lpc17xx.o ==============================================================================