# Initialize the board

**URL:** <https://forums.digi.com/t/initialize-the-board/4560>\
**Category:** NET+OS\
**Created:** [May 25, 2003, 9:29am UTC](https://forums.digi.com/t/initialize-the-board/4560 "2003-05-25T09:29:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [May 25, 2003, 9:29am UTC](https://forums.digi.com/t/initialize-the-board/4560/1 "2003-05-25T09:29:09Z")

</div>

Would you please explain the codes below? Reset\_Handler\_ROM: # if ((\*NCC\_MEM).mem\_cs0\_csar.bits.v == 1) LDR R0, =MEM\_CS0\_CSAR LDR R1, [R0] ANDS R1, R1, #1 BEQ Reset\_Handler # if ((\*NCC\_MEM).mmcr.bits.refcnt != 0) LDR R0, =MEM\_MMCR LDR R1, =MEM\_MMCR\_m LDR R2, [R0] ANDS R2, R2, R1 BNE Reset\_Handler LDR R0, =0x2000000 CMP R0, PC BLT Reset\_Handler ADD R0, PC, R0 BX R0 # We now need to normalize the PC to the ROM Base address # if the ROM base address is cacheable. Cacheable ROM lives # above address 0x0a000000 LDR R0, ImageROBase LDR R1, =0x0a000000 CMP R0, R1 BNE Reset\_Handler LDR R1, =0x08000000 ADD R0, PC, R1 BX R0 # .size Reset\_Handler\_ROM,.-Reset\_Handler\_ROM .globl Reset\_Handler Reset\_Handler: # First we need to initialize the Mode and disable interrupts. There is my analysis.Please check! When the board powers up,it boot from the ROM. ROM and RAM are not mapped,so the base address of ROM is 0x0. LDR R0, =0x2000000 CMP R0, PC BLT Reset\_Handler ADD R0, PC, R0 BX R0 These codes make PC added by 0x2000000. Could you tell me what resides in 0x2000000? Thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/digi/original/1X/11da31a6a1fbcd03ef21d3f785c317c824009ae2.png) [@system](https://forums.digi.com/u/system)\
**Post date:** [June 9, 2003, 2:30pm UTC](https://forums.digi.com/t/initialize-the-board/4560/2 "2003-06-09T14:30:07Z")

</div>

when the boot process starts the “global Chipselect” mechanism is in place and the memmory map is very simple: only CS0 is enabled it’s mask set to 0x0 so it covers entire addressable memory space (0x00000000 - 0xffffffff) This is nessasary to start boot from flash the BSP is taking care of remaping the memmory to the run time values: CS0: 0x02000000 CS1: 0x00000000 CS3: 0x03000000 etc…
