Boot Flash; Avoiding Program Flash Lockup - Texas Instruments UCD3138 Technical Reference Manual

Digital power supply controller
Hide thumbs Also See for UCD3138:
Table of Contents

Advertisement

Boot ROM Function
0x0000
2kB boot
Programmed once before sent to field
0x07FC
Boot flash checksum
30kB program
Can be updated in field by a host via 2kB
boot program and comms port
0x7FFC
User program checksum
Since the Boot Flash program is in Program Flash, the user of the chip is free to program it as desired.

13.1.4 Avoiding Program Flash Lockup

If either checksum is programmed correctly, the Boot ROM will turn control directly over to the Program
Flash. This is necessary for product startup in production units. It also provides security for the program,
because the Boot ROM cannot be used to read from the Program Flash.
Even in production programs a "backdoor" is often added to the program to enable clearing the checksum.
This permits firmware update. Normally on production programs, clearing of the checksum is protected by
a customer defined password. Or instead of clearing the checksum, the entire flash is cleared, preventing
a third party from examining the program.
This approach works fine for production, since the backdoor is thoroughly tested before the production
program is released.
In development, however, untested programs are often installed into the program flash. If the backdoor is
not at the very beginning of the program, a program bug could prevent it from working. So there are 2
options to avoid Program Flash Lockup:
1. Include a simple checksum clearing function at the very start of the program
2. Don't program the checksum until the backdoor has been tested with this version of the program.
More detailed information is available in
440
Boot ROM and Boot Flash
Boot flash program
must have a valid checksum @ address 0x07FC
x
should check the integrity of 30kB program at startup
x
if integrity check passes: give control to 30kB program
x
if integrity check fails: await further commands from
x
host via a comms port
contain functions that allow a host to erase and
x
program the other 30kB of program flash, via a
comms port
main program should
contain function to allow control to be returned to
x
boot flash program (for field updates)
allow this function to be invoked by a host via a
x
comms port
Figure 13-2. Boot Flash
Chapter
17.
Copyright © 2016, Texas Instruments Incorporated
SNIU028A – February 2016 – Revised April 2016
Submit Documentation Feedback
www.ti.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents