Site Tools


documentation:protocols:i2c:i2c-tools_shell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:protocols:i2c:i2c-tools_shell [2026/10/09 10:40] – [i2cdetect] chrisdocumentation:protocols:i2c:i2c-tools_shell [2026/10/09 11:11] (current) – [i2cdump] chris
Line 22: Line 22:
   * ''-F'' displays the list of functionalities available on the bus.   * ''-F'' displays the list of functionalities available on the bus.
 ===== i2cdump ===== ===== i2cdump =====
-2 
  
 +Examines registers on the I2C bus. Use: ''i2cdump [options] i2cbus address [mode [bank [bankreg]]]''
 +
 +  * ''i2cbus'': One of the buses represented by the number or string name from ''i2cdetect -l''.
 +  * ''-r first-last'': Limit the range of registers being accessed. Incompatible with ''s''.
 +  * ''address'': The address of the IC chip on the bus.
 +  * ''mode'': Chooses the mode to access the register as a single byte, a double byte word or a block. If not provided, defaults to single byte without PEC. Options are listed below:
 +    * ''b'': Single byte (default).
 +    * ''w'': Word.
 +    * ''i'': I2C block.
 +    * ''c'': Consecutive block. Useful for ICs with automatic increment, like EEPROMs.
 +    * ''W'': Word, but the command will only be issued on even addresses. Also useful for EEPROMs.
 +    * ''s'': SMBus block. Avoid it, it's deprecated.
 +    * ''p'': Can be appended on the mode parameter (not on ''i'' and ''W'') to enable Packet Error Checking (PEC).
 +  * ''bank''/''bankreg'': Used on Winbond and Asus chips. ''bank'' is an integer from 0 to 7, and ''bankreg'' an integer from 0x00 to 0xff with a default of 0x4e.
 +
 +Use of ''i2cdump'' is not advised unless you have intimate knowledge of the IC you're accessing. It's very easy to corrupt stuff.
 ===== i2cget ===== ===== i2cget =====
 3 3
documentation/protocols/i2c/i2c-tools_shell.1791542435.txt.gz · Last modified: by chris