
16
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.
3.1.9 Can I modify the User Mode kernels to work for a different clock frequency?
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.
The User Mode kernels need to be rebuilt if a different clock frequency is going to be used. The initial
Bit Rate Register value is held in the ‘gentest.h’ file and is compiled into the User Mode Test
Program; this allows the kernel initialise the serial communications interface to 9600 baud. If the
clock frequency changes from the default supplied value, the initial Bit Rate Register setting in
‘gentest.h’ [normally MA_BRR_SCI or MA_BRR_SCI1] will need to be modified and the kernel
recompiled. Refer to the device hardware manual for details of how to calculate the Bit Rate Register
value.
Comentários a estes Manuais