Simple Read/Write Examples
MOTOROLA
Bootstrap Mode Operation
9-5
Note that all b-records start at the same address, 0x00000004, which is the starting address of the
instruction buffer. B-records 1, 2, and 3 are very similar and can be used as prototype b-records for
general-purpose register initialization.
Therefore, the resulting b-record file will be as follows:
Code Example 9-3. Bootloader B-Record
00000004 08E3A04F40E1A0F004
initialize r4 to 0x00000100 (bootloader start)
0000000400
execute and return to bootloader
00000004 08E3A019C4E1A0F004
initialize r1 to 0x00310000 (start)
0000000400
execute and return to bootloader
00000004 08E3A02F40E1A0F004
initialize r2 to 0x100 (length)
0000000400
execute and return to bootloader
00000004 0CE59F3000E1A0F00412345678
initialize r3 to 0x12345678 (content)
0000000400
execute and return to bootloader
00000004 0FE7813002E25220041AFFFFFCE1A0F004
memory fill
0000000400
execute and return to bootloader
9.4 Simple Read/Write Examples
Table 9-5 provides examples demonstrating how to perform memory and register reads/writes of various
data sizes. Code Example 9-4 shows an example of the code used for Vector Tables
Code Example 9-4.
NOP
; 0x00
NOP
; 0x04 (programmable buffer)
NOP
; 0x08 (programmable buffer)
IRQ_Addr
DCD
C_IRQ_Handler
; 0x0C (programmable buffer)
FIQ_Addr
DCD
C_FIQ_Handler
; 0x10 (programmable buffer)
NOP
; 0x14 (programmable buffer)
LDR
PC, IRQ_Addr
; 0x18 (programmable buffer)
LDR
PC, FIQ_Addr
; 0x1C (programmable buffer)
DCD
0
; 0x20 (programmable buffer)
5
00000004 0FE7813002E25220041AFFFFFCE1A0F004
0000000400
Table 9-5. Read/Write Examples
Example Type
B-Record
Return Value
Read 3 bytes starting
from location
0x00310000
0031000023
0031000003XXYYZZ/
(where XX, YY, and ZZ are data in byte)
Read 3 half-words
starting from location
0x00310000
0031000066
(6 bytes = 3 half-words)
0031000066XXXXYYYYZZZZ/
(where XXXX, YYYY, and ZZZZ are data in
half-word)
Table 9-4. Resulting B-Records (Continued)
B-Record Number
B-Record
Содержание DragonBall MC9328MX1
Страница 68: ...1 12 MC9328MX1 Reference Manual MOTOROLA Introduction ...
Страница 86: ...2 18 MC9328MX1 Reference Manual MOTOROLA Signal Descriptions and Pin Assignments ...
Страница 116: ...3 30 MC9328MX1 Reference Manual MOTOROLA Memory Map ...
Страница 126: ...4 10 MC9328MX1 Reference Manual MOTOROLA ARM920T Processor ...
Страница 160: ...8 8 MC9328MX1 Reference Manual MOTOROLA System Control ...
Страница 272: ...13 32 MC9328MX1 Reference Manual MOTOROLA DMA Controller ...
Страница 281: ...Programming Model MOTOROLA Watchdog Timer Module 14 9 ...
Страница 282: ...14 10 MC9328MX1 Reference Manual MOTOROLA Watchdog Timer Module ...
Страница 300: ...15 18 MC9328MX1 Reference Manual MOTOROLA Analog Signal Processor ASP ...
Страница 438: ...18 16 MC9328MX1 Reference Manual MOTOROLA Serial Peripheral Interface Modules SPI 1 and SPI 2 ...
Страница 478: ...19 40 MC9328MX1 Reference Manual MOTOROLA LCD Controller ...
Страница 542: ...20 64 MC9328MX1 Reference Manual MOTOROLA Multimedia Card Secure Digital Host Controller Module MMC SD ...
Страница 574: ...21 32 MC9328MX1 Reference Manual MOTOROLA Memory Stick Host Controller MSHC Module ...
Страница 598: ...23 16 MC9328MX1 Reference Manual MOTOROLA Real Time Clock RTC ...
Страница 670: ...24 72 MC9328MX1 Reference Manual MOTOROLA SDRAM Memory Controller ...
Страница 726: ...25 56 MC9328MX1 Reference Manual MOTOROLA SmartCard Interface Module SIM ...
Страница 736: ...26 10 MC9328MX1 Reference Manual MOTOROLA General Purpose Timers ...
Страница 854: ...29 18 MC9328MX1 Reference Manual MOTOROLA I2C Module ...
Страница 900: ...30 46 MC9328MX1 Reference Manual MOTOROLA Synchronous Serial Interface SSI ...
Страница 942: ...32 26 MC9328MX1 Reference Manual MOTOROLA GPIO Module and I O Multiplexer IOMUX ...