R-Engine-D
Chapter 4: Software
4-3
The C function prototypes supporting Am186ER hardware can be found in header file “
ae.h
”, in the
c:\tern\186\include
directory.
Sample programs can be found in the
c:\tern\186\samples\ae
and
c:\tern\186\samples\re
and
c:\tern\186\samples\rd
directories.
4.1.1
Steps for RE based product development
Preparation for Debugging
• Connect RD to PC via RS-232 link, 19,200, 8, N, 1
• Power on RD without STEP 2 jumper installed
• ACTF menu should be sent to PC terminal
• Use “D” command to download “l_debug.HEX” in SRAM
• “G04000” to run “l_debug.”
• Download “re40_115.HEX” to Flash starting at 0xfa000
• “GFA000” to setup EE and run debug kernel
• Install the STEP2 jumper (J2.38-40)
• Power-on or reset RE, Ready for Remote debugger
STEP 2:
Standalone Field Test
8
”G08000” setup EE Jump Address, points to application code
resides in battery backed SRAM
8
Install STEP2 jumper, then power on
8
Application program running in battery-backed SRAM
(Battery lasts 3-5 years under normal conditions.)
• Start Pa+, run“RE_test.ide”
• Download code to target SRAM.
• Edit, compile, link, locate, download, and remote-debug
STEP 1:
Debugging
STEP 3:
DV-P
Kit
• Generate application HEX file with DV-P
• ACTF “D” to download “L_29F40R.HEX” into SRAM
• Download application HEX file into FLASH
• Modify EE jump address to 0x80000
• Set STEP2 jumper
Production
There is no ROM socket on the RD. The user’s application program must reside in SRAM for debugging
in STEP1, reside in battery-backed SRAM for the standalone field test in STEP2, and finally be
programmed into Flash for a complete product.
The on-board Flash 29F400BT has 256K words of 16-bits each. It is divided into 11 sectors, comprised of
one 16KB, two 8KB, one 32KB, and seven 64KB sectors. The top one 16KB sector is pre-loaded with
ACTF boot strip, the one 8KB sector starting 0xfa000 is for loading remote debugger kernel, and the reset
all sectors are free for application use.