English
Language : 

AN3995 Datasheet, PDF (18/49 Pages) STMicroelectronics – Getting started tutorial
e200z4d initialization and example code
AN3995
Figure 9. Startup file: __ghs_board_memory_init
#/**************************************************************************/
#/* RCHW Configuration (and referencing of start label for linker) */
#/**************************************************************************/
.section .rchw
.LONG 0x015A0000
#/* RCHW: VLE bit, Valid Bood Identifier 0x5A */
.LONG _start
.file "crt0_corez4_Flash.s"
.section .vletext_boot, "vax"
.vle
#.global _start
.global__ghs_board_memory_init
.global asm_init_cache
.equ
.equ
.equ
.equ
.equ
.equ
.equ
.equ
.equ
.equ
.equ
.equ
.equ
.equ
.equ
MPR0ADDR, 0xFFF04000
MPR0VALUE, 0x76543210 #/* Flash PORT1: Priority to corez4(instruct.)*/
SGPCR0VALUE, 0x0
MPR1ADDR, 0xFFF04100
MPR1VALUE, 0x76543201 #/* Flash PORT1: Priority to corez4(data)*/
SGPCR1VALUE, 0x1
MPR2ADDR, 0xFFF04200
MPR2VALUE, 0x54376201 #/* PRAM0: Priority to corez4(data)*/
SGPCR2VALUE, 0x1
MPR3ADDR, 0xFFF04300
MPR3VALUE, 0x54301276 #/* PRAM1: Priority to corez0(data)*/
SGPCR3VALUE, 0x4
MPR7ADDR, 0xFFF04700
MPR7VALUE, 0x54327106 #/* PBRIDGE: Priority to corez4(data)*/
SGPCR7VALUE, 0x1
#/*_start: */
#/* uncomment this line and comment the following one */
#/* you don't use GHS libraries (take care to */
#/* configure SDA/Stack/..pointers */
__ghs_board_memory_init:
Figure 10. Startup file: branch to GHS startup libraries
se_blr
#/* Jump to Caller */
#e_bl main
#/* Use this Branch and comment the previous if you not
#/* use GHS crt0.ppc */
.type __ghs_board_memory_init,@function
.size __ghs_board_memory_init,$-__ghs_board_memory_init
18/49
Doc ID 022384 Rev 2