On some Rabbit core modules, such as the RCM4200, the PB1 (CLKA) signal is either not available or not
pulled up on the programming port, the master can be forced to invoke cloning support by setting
CL_FORCE_MASTER_MODE to 1. This will cause the BIOS to assume a cloning cable is attached on
every startup, assuring that only the cloning code will run.
While compiling to the target with CL_FORCE_MASTER_MODE set to 1, the loss of target communica-
tion is expected and unavoidable. After the program has loaded and target communication is lost the clone
master will still correctly perform its cloning function after a cloning cable is attached.
Since the BIOS supports a variety of flash types, the flash EPROM on the two controllers do not have to
be identical. Cloning works between master and target controllers that have different-sized flash chips
because the master copies its own universal flash driver to the target. The flash driver determines the par-
ticulars of the flash chip on which it is running.
The master controller’s BIOS must allocate a memory buffer sufficiently large to work on the target. Prior
to Dynamic C version 7.02, the cloning software used root memory for this buffer, which reduces the root
memory available to the application program. The size of the buffer is given by the macro
MAX_FLASH_SECTORSIZE . This macro is defined near the top of the
LIB\BIOSLIB\FLASHWR.LIB file. The default value is 1024 (4096 in older versions). The user can
reduce this buffer size to the maximum of the master and target’s sector sizes if root data space is a prob-
lem, or increase it to 4096 if needed.
Starting with Dynamic C version 7.02, the cloning implementation uses xmem for the buffer, so root data
space will not be a problem; and no changes should be made to FLASHWR.LIB .
Cloning Macros
The following macros are in the source code of the BIOS ( BIOS\RABBITBIOS.C ) or in
Lib\BIOSLIB\cloneconfig.lib , depending on the version of Dynamic C. The default values
may be changed there. In later versions of Dynamic C you can change the defaults by defining the macros
in the “Defines” tab located in the Options | Project Options dialog. If a particular macro is not defined in
the BIOS file or the configuration library, then the associated option is not available in the version of
Dynamic C you are using. The exception to this are the fast cloning options enabled by the FC_* macros
in fastclone.lib .
ENABLE_CLONING
Default is 0: cloning is not enabled. Set to 1 to enable cloning. The cloning implementation in
Dynamic C version 7.10 requires that ENABLE_FAST_CLONING and ENABLE_CLONING be set to
1 to enable cloning.
If PB1 is either not available or not pulled in the design, CL_FORCE_MASTER_MODE should be set
to 1 to force the board to assume that a cloning cable is always attached.
CLONE_WHOLE_FLASH
Default is 0: only compiled program will be copied. Set to 1 to copy entire flash device, which
excludes the system ID block unless CL_INCLUDE_ID_BLOCKS is set to 1 also. Excludes second-
ary flash device, but if the program being cloned extends into the second flash, it will be copied
regardless of this setting.
TN207
5
相关PDF资料
101-0688 CARD D/A EXPANSION RN1300
101-0954 KIT DEV RABBIT RCM3360/3370 INTL
101-1050-BE-00025 ADPT USB 2 A FEMALE-2 5PIN .25M
10112627-101LF MINI-SAS HD 1X2 EXT PCB
10112628-101LF MINI-SAS HD 1X4 EXT PCB
10136-3000PC CONN MINI-D 36POS SOLDER PLUG
10136-6000EC CONN MDR PLUG 36POS IDC GOLD
10150-4CZ3PL CONN MDR PLUG 50POS VERT T/H
相关代理商/技术参数
101-0590 功能描述:模块配件 BL2010 Btm Mnt RoHS:否 制造商:Lantronix 产品: 用于:
101-0591 功能描述:单板计算机 BL2010 Fri Lock RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
101-0592 功能描述:单板计算机 BL2010 IDC Headers RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
10105928-1 功能描述:环形MIL规格工具、五金与附件 RoHS:否 制造商:Amphenol Industrial MIL 类型:MIL-DTL-5015 系列:97 产品类型:Dummy Receptacles 用于:97 Series Plugs
10105928-2 功能描述:环形MIL规格工具、五金与附件 RoHS:否 制造商:Amphenol Industrial MIL 类型:MIL-DTL-5015 系列:97 产品类型:Dummy Receptacles 用于:97 Series Plugs
101-0593 功能描述:单板计算机 BL2020 Btm Mnt RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
101-0594 功能描述:单板计算机 BL2020 Fri Lock RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm
101-0595 功能描述:单板计算机 BL2020 IDC Headers RoHS:否 制造商:Ampro By ADLINK 外观尺寸:EPIC 处理器类型:Intel Atom D510 频率:1.66 GHz 存储容量:2 GB (max) 存储类型:DDR2, L2 Cache 接口类型:Ethernet, PS/2, SATA, Serial, USB 工作电源电压:5 V, 12 V 功耗:13 W 最大工作温度:+ 70 C 尺寸:165.1 mm x 114.3 mm