Addressing on SAMA5D2 Xplained

Moderator: nferre

3F800000
Posts: 2
Joined: Wed Apr 25, 2018 6:36 pm

Addressing on SAMA5D2 Xplained

Wed Apr 25, 2018 6:53 pm

I'm entirely new to the SAMA5D2 and the eval board.

With the XULT running the provided Linux kernel (blue LED blinking) I used the IDE (IAR EW) to break into debug. The code appears to be running in the address range of 0xC01XXXXX. (Based on the Program Counter and disassembly listings.)

The kernel is identified as: Linux version 4.9.87-linux4sam_5.8 (gcc version 7.3.0 (GCC)

Can someone explain the address space? The data sheet suggests 0xC0000000 is mapped to the "NFC command Register". I was expecting the code to be running in RAM, since U-Boot loads the kernel from flash to 0x22000000. (Even though the datasheet lists that address as in the region of "DDR Chip Select", which also isn't clear.)

Perhaps the answer is the part is using it's MMU and a virtual memory scheme?

Thanks for any insight you can provide.
blue_z
Location: USA
Posts: 1713
Joined: Thu Apr 19, 2007 10:15 pm

Re: Addressing on SAMA5D2 Xplained

Wed Apr 25, 2018 11:29 pm

3F800000 wrote:The code appears to be running in the address range of 0xC01XXXXX.
...
Perhaps the answer is the part is using it's MMU and a virtual memory scheme?
Yes, the addresses you are looking at refer to virtual memory.
When using an "address" you need to be cognizant of which address space it belongs to.
E.G. during the Linux boot, you could be dealing with addresses for NAND flash, physical memory, and virtual memory .

Regards
Trilok
Posts: 3
Joined: Mon Jul 23, 2018 7:59 am

Re: Addressing on SAMA5D2 Xplained

Fri Aug 03, 2018 5:57 am

Hi @blue_z,

I'm new to this processor. I want to start without OS using some IDE like IAR Embeddded studio, Keil DS-MDK. But I'm unable to get started. I researched many online tutorials, no one is is giving the clear picture about any of IDEs. Many of community people saying that IAR embedded workbench will support SAMA5D2. But, this tool is not giving the clear picture about How to get started with SAMA5D2.

Hoping for response, I appreciate your valuable feedback/response.

Thanks/Regards

Trilok
tsvoipio
Posts: 55
Joined: Wed Aug 19, 2015 9:44 pm

Re: Addressing on SAMA5D2 Xplained

Fri Aug 03, 2018 2:13 pm

For starters, you need the datasheet of the chip from:
<http://ww1.microchip.com/downloads/en/D ... 01476B.pdf>

It is somewhat heavy reading (little over 2600 pages).

For the virtual addressing in Linux, get e.g. the book 'Understanding the Linux Kernel'.

--

-TV
blue_z
Location: USA
Posts: 1713
Joined: Thu Apr 19, 2007 10:15 pm

Re: Addressing on SAMA5D2 Xplained

Fri Aug 03, 2018 11:15 pm

Trilok,

I have not used any IDE, and therefore cannot offer any specific advice.

Trilok wrote:Many of community people saying that IAR embedded workbench will support SAMA5D2. But, this tool is not giving the clear picture about How to get started with SAMA5D2.
The IAR website clearly claims to support the SAMA5D2.
If you're also using the Microchip Software Package, then be sure to study the README.md file and inspect the scripts/ directory.

Regards

Return to “SAMA5-based”

Who is online

Users browsing this forum: No registered users and 3 guests