![Artesyn COMX-P40x0 ENP2 Manual Download Page 100](http://html1.mh-extra.com/html/artesyn/comx-p40x0-enp2/comx-p40x0-enp2_manual_2977668100.webp)
BSP
COMX-P40x0 ENP2 Installation and Use (6806800R95B
)
100
7.15 I2C
There are a total of four I2C buses in the COMX-P40x0, labeled as I2C<1/2/3/4>. For more
information, see
.
U-Boot provides the following utilities for I2C bus and devices.
nand write
Addr off|partition size
Read/write ’size’ bytes starting at offset ’off’ to/from memory
address ’addr’, skipping bad blocks.
nand erase [clean] [off size]
Erase ’size’ bytes from offset ’off’ (will erase on the entire device if it
is not specified)
nand bad
Shows bad blocks
nand dump[.oob] off
Dumps page
nand scrub
Cleans NAND by erasing bad blocks. Considered unsafe.
nand markbad off [...]
Marks bad block or blocks at offset. Considered unsafe.
nand biterr off
Makes a bit error at offset. Considered unsafe.
Table 7-7 NAND Flash Command Usage (continued)
Command
Description
Table 7-8 U-Boot I2C Utilities
Utility
Description
i2c crc32 chip address[.0, .1, .2] count
Compute CRC32 checksum
i2c dev [dev]
Shows or sets current I2C bus
i2c loop chip address[.0, .1, .2] [# of objects]
[# of delay(us)]
Loops reading of device
i2c md chip address[.0, .1, .2] [# of objects]
Reads from I2C device
i2c mm chip address[.0, .1, .2]
Writes to I2C device (auto-incrementing)
i2c mw chip address[.0, .1, .2] value [count]
Writes to I2C device (fill)
i2c nm chip address[.0, .1, .2]
Writes to I2C device (constant address)
i2c probe
Shows devices on the I2C bus
Summary of Contents for COMX-P40x0 ENP2
Page 1: ...COMX P40x0 ENP2 Installation and Use P N 6806800R95B August 2014...
Page 8: ...COMX P40x0 ENP2 Installation and Use 6806800R95B 8 List of Tables...
Page 10: ...COMX P40x0 ENP2 Installation and Use 6806800R95B 10 List of Figures...
Page 26: ...Introduction COMX P40x0 ENP2 Installation and Use 6806800R95B 26...
Page 56: ...Controls LEDs and Connectors COMX P40x0 ENP2 Installation and Use 6806800R95B 56...
Page 78: ...Functional Description COMX P40x0 ENP2 Installation and Use 6806800R95B 78...
Page 126: ...Related Documentation COMX P40x0 ENP2 Installation and Use 6806800R95B 126...
Page 128: ...COMX P40x0 ENP2 Installation and Use 6806800R95B Safety Notes 128...
Page 129: ......