An electronic device and a booting method thereof are provided, wherein
the method includes the steps of copying the boot image from the first
non-volatile memory to the internal RAM when a booting operation of the
electronic device begins, setting a stack pointer in the internal RAM by
executing a control code to set the stack pointer among control codes of
the boot image, and activating the main memory by executing a control
code to initialize the main memory controller and activate the main
memory among the control codes of the boot image, the control code to
initialize the main memory controller and activate the main memory using
the stack pointer. Accordingly, since the control code to initialize the
main memory controller to activate the main memory is written in a
high-level programming language instead of assembly language, the display
device can be driven before the main memory is activated.