SAMA5D4: Fix ISRAM base address: 0x00200000, not like the SAMA5D3 SRAM at 0x00300000
This commit is contained in:
parent
b013a0fa48
commit
151d84709f
@ -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
|
||||
==========
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user