![Abatron bdiAccess BDI1000 User Manual Download Page 27](http://html.mh-extra.com/html/abatron/bdiaccess-bdi1000/bdiaccess-bdi1000_user-manual_450807027.webp)
bdi
RDI
JTAG interface for RDI Debuggers, BDI1000
User Manual
27
© Copyright 1999-2003 by ABATRON AG
V 1.10
5.2.2 Flash.Setup
In order to support loading into flash memory, the BDI needs some information about the used flash
devices. Before any other flash related command can be used, this direct command must be execut-
ed.
Syntax:
flash.setup type=am29f size=0x80000 bus=32 workspace=0x1000
type
This parameter defines the type of flash used. It is used to select the correct program-
ming algorithm. The following flash types are supported:
AM29F, AM29BX8, AM29BX16, I28BX8, I28BX16, AT49, AT49X8, AT49X16
STRATAX8, STRATAX16, MIRROR, MORRORX8, MIRRORX16,
I28BX32, AM29DX16, AM29DX32, CFM32, CFM16
size
The size of one flash chip in bytes (e.g. AM29F010 = 0x20000). This value is used to
calculate the starting address of the current flash memory bank.
bus
The width of the memory bus that leads to the flash chips. Do not enter the width of
the flash chip itself. The parameter TYPE carries the information about the number of
data lines connected to one flash chip. For example, enter 16 if you are using two
AM29F010 to build a 16bit flash memory bank.
workspace
If a workspace is defined, the BDI uses a faster programming algorithm that run out of
RAM on the target system. Otherwise, the algorithm is processed within the BDI. The
workspace is used for a 1kByte data buffer and to store the algorithm code. There must
be at least 2kBytes of RAM available for this purpose.
MAC7100 internal flash (CFM32, CFM16):
To erase and program the MAC7100 Program Flash Module (CFM32) you have to access it via the
programming interface address (0xFC100000). This programming interface address has to be used
for erase and program commands. Before you can erase/program the Program or Data Flash Mod-
ule, the CFM Clock Divider needs to be setup via an init list entry. Check the MAC7100 user’s manual
about how to setup the CFMCLKD. Keep in mind that the input frequency for the flash module is the
IP clock with a frequency of
∫
fsys. If for example the system clock is 8 MHz, the clock input to the
flash is 4MHz and the correct value for CFMCKLD is 19 (0x13)..
WM8
0xFC0F0002
0x13
;CFMCLKD: set clock divider for 8.0 MHz system clock
Syntax:
flash.setup type=cfm32 workspace=0x40000000
type
This parameter defines the type of flash used. Enter CFM32 when programming the
Program flash. For the Data flash use CFM16.
workspace
If a workspace is defined, the BDI uses a faster programming algorithm that run out of
RAM on the target system. Otherwise, the algorithm is processed within the BDI. The
workspace is used for a to store the algorithm code. There must be at least 256 Bytes
of RAM available for this purpose.
;Use internal SRAM for workspace
bdi
flash.setup type=cfm32 workspace=0x40000000