diff --git a/configs/sama5d4-ek/README.txt b/configs/sama5d4-ek/README.txt index b9515c76b4c..08f68ad8e7c 100644 --- a/configs/sama5d4-ek/README.txt +++ b/configs/sama5d4-ek/README.txt @@ -2944,6 +2944,28 @@ Configurations DataFlash, SD card or from a TFTPC sever via the Boot ROM. Data also is positioned in SDRAM. + Here are the steps that I use to execute this program in SRAM + using only the ROM Bootloader: + + a) Hold the DIS_BOOT button and + + b) With the DIS_BOOT button pressed, power cycle the board. + + c) The serial should show RomBOOT in a terminal window (at 115200 + 8N1) and nothing more. + + d) Press ENTER in the terminal window a few times to enable JTAG. + + e) Start the Segger GDB server. It should successfully connect to + the board via JTAG. + + f) Start GDB + gdb> target remote localhost:2331 + gdb> mon halt (don't do mon reset) + gdb> load nuttx + gdb> mon reg pc (make sure that the PC is 0x200040 + gdb> ... and debug ... + To-Do List ========== diff --git a/configs/sama5d4-ek/ramtest/defconfig b/configs/sama5d4-ek/ramtest/defconfig index 1e13336aa58..899ec9ab885 100644 --- a/configs/sama5d4-ek/ramtest/defconfig +++ b/configs/sama5d4-ek/ramtest/defconfig @@ -282,8 +282,8 @@ CONFIG_BOOT_RUNFROMISRAM=y # # Boot Memory Configuration # -CONFIG_RAM_START=0x00300000 -CONFIG_RAM_VSTART=0x00300000 +CONFIG_RAM_START=0x00200000 +CONFIG_RAM_VSTART=0x00200000 CONFIG_RAM_SIZE=114688 CONFIG_ARCH_HAVE_SDRAM=y # CONFIG_BOOT_SDRAM_DATA is not set diff --git a/configs/sama5d4-ek/scripts/ddram.ld b/configs/sama5d4-ek/scripts/ddram.ld index c6a2eb9fb86..b2f6349c8de 100644 --- a/configs/sama5d4-ek/scripts/ddram.ld +++ b/configs/sama5d4-ek/scripts/ddram.ld @@ -33,7 +33,7 @@ * ****************************************************************************/ -/* The SAMA5D4 has 128 KB of ISRAM beginning at virtual address 0x0030:0000. +/* The SAMA5D4 has 128 KB of ISRAM beginning at virtual address 0x0020:0000. * This memory configuration, however, loads into the 256MB SDRAM on board * the SAMA5D4-EK which lies at 0x2000:0000. An offset 0x00008000 is * reserved by the bootloader. @@ -44,7 +44,7 @@ MEMORY { - isram (W!RX) : ORIGIN = 0x300000, LENGTH = 128K - 16K + isram (W!RX) : ORIGIN = 0x00200000, LENGTH = 128K - 16K sdram (W!RX) : ORIGIN = 0x20008000, LENGTH = 256M - 32K } diff --git a/configs/sama5d4-ek/scripts/isram.ld b/configs/sama5d4-ek/scripts/isram.ld index f675615b1c1..85bc4dfc4f0 100644 --- a/configs/sama5d4-ek/scripts/isram.ld +++ b/configs/sama5d4-ek/scripts/isram.ld @@ -33,7 +33,7 @@ * ****************************************************************************/ -/* The SAMA5D44 has 128 KB of ISRAM beginning at virtual address 0x0030:0000. +/* The SAMA5D44 has 128 KB of ISRAM beginning at virtual address 0x0020:0000. * * Vectors in low memory are assumed and 16KB of ISRAM is reserved at the * high end of ISRAM for the page table. @@ -41,7 +41,7 @@ MEMORY { - isram (W!RX) : ORIGIN = 0x300000, LENGTH = 128K - 16K + isram (W!RX) : ORIGIN = 0x00200000, LENGTH = 128K - 16K } OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")