Get_mode()
Function
OTP_KEY=
0x005A
?
No
Yes
Mode=
SCI_BOOT
A
OTP_BMODE
=SCI_BOOT
?
Yes
No
Mode=
SPI_BOOT
OTP_BMODE
=SPI_BOOT
?
Yes
No
B
Return Mode
B
Mode=
I2C_BOOT
OTP_BMODE
=I2C_BOOT
?
Yes
No
Mode=
OTP_BOOT
OTP_BMODE
=OTP_BOOT
?
Yes
No
Mode=
FLASH_BOOT
A
OTP_BMODE
=CAN?
No
Mode=
CAN_BOOT
Yes
Figure 2-10. Overview of Get_mode() Function
2.2.15 CopyData Function
Each of the bootloaders uses the same function to copy data from the port to the device's SARAM. This function
is the CopyData() function. This function uses a pointer to a GetWordData function that is initialized by each of
the loaders to properly read data from that port. For example, when the SPI loader is evoked, the GetWordData
function pointer is initialized to point to the SPI-specific SPI_GetWordData function. Thus when the CopyData()
function is called, the correct port is accessed. The flow of the CopyData function is shown in
.
Note
BlockSize must be less than 0xFFFF for correct operation of the CopyData function. This means the
max possible value of BlockSize is 0xFFFE, not 0xFFFF.
Boot ROM
220
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Summary of Contents for TMS320 2806 Series
Page 2: ......