Prog_Flash.prc; Set_Eva_Mode.prc - Fujitsu FR Series Application Note

32-bit microcontroller
Hide thumbs Also See for FR Series:
Table of Contents

Advertisement

set memory/byte H'484=00
set memory/byte 484=44
set memory/byte 484=46
set memory/byte 486=01
set memory/byte 487=10

5.2.4 prog_flash.prc

# THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU
# MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
# ELIGIBILITY FOR ANY PURPOSES.
#
batch prc\start_flash.prc
batch prc\flash.prc,abs\Template,0x80000

5.2.5 set_EVA_mode.PRC

# THIS SAMPLE CODE IS PROVIDED AS IS AND IS SUBJECT TO ALTERATIONS. FUJITSU
# MICROELECTRONICS ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
# ELIGIBILITY FOR ANY PURPOSES.
#
# set_EVA_mode.PRC
# ===========
#
# Procedurefile for the FR-Emulator - Target : MB91FV360.
# initialisation for evalution with memory instead of flash
# 1: mode vector is set to work with external ROM
# 2: reset vector is set to F4000
#
remark:
boot rom is not executed!
#
# CS0 is used for memory access
#
# V1.0 by JR
# last modification : 21.10.2002
#
printf "\nprocedure file : set_EVA_mode.prc\n\n"
#--------------------------------------------------------------------------
--
# variables
set variable MODE_REG = 0x1FFFF8
set variable RESET_VECTOR = 0x1FFFFC
#--------------------------------------------------------------------------
--
# set CS0
batch prc\CS0_ADR_180000h.prc
#--------------------------------------------------------------------------
--
# set mode register and reset vector
set memory/byte MODE_REG=H'02
32bit
set memory/word RESET_VECTOR=H'F4000
if %ERRNUM != 0
printf "invalid mode register settings, RAM not accesable, "
printf "go with power on sequence!\n"
© Fujitsu Microelectronics Europe GmbH
Chapter 5 Appendix
# reset PLL
# set 32MHz (64=48MHz,74=64MHz)
# enable
# RBus/2
# extBus/2
(C) Fujitsu Microelectronics Europe GmbH
(C) Fujitsu Microelectronics Europe GmbH
(66
,76
(03
,04
# Mode register : external rom mode /
# reset vector
- 25 -
)
)
AN-910011-18

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91360

Table of Contents