Renesas HS6400FDIW3S Computer Hardware User Manual


 
16
for changing settings such as fine tuning of timeouts, requires the Local Machine Administrator rights to
save the settings. Password administration also requires Local PC Administrator rights.
3.2.7 How do I recompile a kernel?
It is recommended that the original kernel is copied to another directory and that this copy is edited, thus
leaving the original kernel unmodified. When using the kernel for the first time, you will need to browse to
the alternate location to find the fcf file.
If the kernel has been written using Hew, there will be a Hew workspace file in the project subdirectory of
the kernel. This should be opened from Hew.
If the kernel has been written based upon compilation from the command line, you will need to run the
buildall.bat file from a Dos shell session after setting up the environment variables for the compiler so that
it can be run from the command line. Please refer to the compiler manual for full details of how to do this.
An example environment batch file used to set the environment settings for the Renesas H8 compiler
version 4.0a is shown below:
Setenv.bat:
SET CH38=C:\hew\tools\Renesas\h8\4_0_A\INCLUDE
PATH=%PATH%;C:\hew\tools\Renesas\h8\4_0_A\bin
set DOS16M= @1M-31M
SET CH38TMP=c:\TEMP
Notes:
From some operating systems (eg Windows 2000), cmd.exe should be used rather than command.com.
The above batch file should be modified to reflect the path of your compiler.
Ensure that the specified temporary directory exists and is writeable.
3.2.8
How do I use the supplied demonstration User Mode Kernels?
To use the demonstration User Mode kernels, you must first add the User Mode Micro Kernel and User
Mode Test Program from the kernel directory (“uGenU.mot” and xxxxtest.mot”) to a Boot Mode
Project and build the User Area Device Image. Next, connect in Boot Mode and program the image to the
device, disconnect and reset the device into User Mode. Create another project in the workspace, but this
time set it as a User Mode Connection Type, and connect in User Mode. FDT will start communications
with the User Mode Test Program at 9600bps and then change to the baud rate set in the project. Note that
the device does not automatically erase during connections in User Mode. It is not possible to reprogram
the FLASH whilst the reprogramming code is executing from the FLASH so all of the kernel modules
needed to keep the connection to FDT are copied into the RAM to leave the FLASH ROM available for
reprogramming. Because of this, it is possible to erase the entire flash and reprogram it in user mode, but
note that if the device is reset after erasure and before it is reprogrammed, it will not be possible to
reconnect in User Mode until the device has had the User Mode Micro Kernel and User Mode Test
Program reprogrammed into it Boot Mode.