diff --git a/configs/sama5d3-xplained/README.txt b/configs/sama5d3-xplained/README.txt index a721aa86bb..32abebc5df 100644 --- a/configs/sama5d3-xplained/README.txt +++ b/configs/sama5d3-xplained/README.txt @@ -642,6 +642,26 @@ Load NuttX with U-Boot on AT91 boards 2014-3-30: These instructions were adapted from the Linux4SAM website but have not yet been used. + Using JTAG + ---------- + + This description assumes that you have a JTAG debugger such as Segger + J-Link connected to the SAMA5D3-Xplained. + + 1. Start the GDB server + 2. Start GDB + 3. Use the 'target remote localhost:xxxx' command to attach to the GDG + server + 4. Do 'mon reset' then 'mon go' to start the internal boot loader (maybe + U-Boot). + 5. Let the boot loader run until it completes SDRAM initialization, then + do 'mon halt'. + 6. Now you have SDRAM initialized and you use 'load nuttx' to load the + ELF file into SDRAM. + 7. Use 'file nuttx' to load symbols + 8. Set the PC to the NuttX entry point 'mon pc 0x20008040' and start + nuttx using 'mon go'. + Buttons and LEDs ================ diff --git a/configs/sama5d3x-ek/README.txt b/configs/sama5d3x-ek/README.txt index 2dfd48ed37..f0d0df6d6a 100644 --- a/configs/sama5d3x-ek/README.txt +++ b/configs/sama5d3x-ek/README.txt @@ -458,6 +458,9 @@ Creating and Using NORBOOT Running NuttX from SDRAM ======================== + Executing from SDRAM + -------------------- + NuttX may be executed from SDRAM. But this case means that the NuttX binary must reside on some other media (typically NAND FLASH, Serial FLASH, or, perhaps even a TFTP server). In these cases, an intermediate @@ -477,6 +480,26 @@ Running NuttX from SDRAM advance but instead has to be calculated from the bootloader PLL configuration. See the TODO list at the end of this file for further information. + Using JTAG + ---------- + + This description assumes that you have a JTAG debugger such as Segger + J-Link connected to the SAMA5D3-Xplained. + + 1. Start the GDB server + 2. Start GDB + 3. Use the 'target remote localhost:xxxx' command to attach to the GDG + server + 4. Do 'mon reset' then 'mon go' to start the internal boot loader (maybe + U-Boot). + 5. Let the boot loader run until it completes SDRAM initialization, then + do 'mon halt'. + 6. Now you have SDRAM initialized and you use 'load nuttx' to load the + ELF file into SDRAM. + 7. Use 'file nuttx' to load symbols + 8. Set the PC to the NuttX entry point 'mon pc 0x20008040' and start + nuttx using 'mon go'. + NuttX Configuration ------------------- diff --git a/configs/sama5d4-ek/README.txt b/configs/sama5d4-ek/README.txt index 4a011a4b56..0413a728d3 100644 --- a/configs/sama5d4-ek/README.txt +++ b/configs/sama5d4-ek/README.txt @@ -855,6 +855,26 @@ Running NuttX from SDRAM 2014-3-30: These instructions were adapted from the Linux4SAM website but have not yet been used. + Using JTAG + ---------- + + This description assumes that you have a JTAG debugger such as Segger + J-Link connected to the SAMA5D3-Xplained. + + 1. Start the GDB server + 2. Start GDB + 3. Use the 'target remote localhost:xxxx' command to attach to the GDG + server + 4. Do 'mon reset' then 'mon go' to start the internal boot loader (maybe + U-Boot). + 5. Let the boot loader run until it completes SDRAM initialization, then + do 'mon halt'. + 6. Now you have SDRAM initialized and you use 'load nuttx' to load the + ELF file into SDRAM. + 7. Use 'file nuttx' to load symbols + 8. Set the PC to the NuttX entry point 'mon pc 0x20008040' and start + nuttx using 'mon go'. + SAMA4D44-MB RevC PIO Usage ==========================