Hi all,
i m using tm4c1294Ncpdt
can anyone worked on cli to i2c converter, i need some example for this.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all,
i m using tm4c1294Ncpdt
can anyone worked on cli to i2c converter, i need some example for this.
Hello Chester
I believe the poster is looking for a "Command Line Interface".
In which case the source code for the EVMK2H BMC inside http://wfcache.advantech.com/www/support/TI-EVM/Rev4_0/BMC/BMC_EVMK2K_1_0_2_6-20160330.zip may be useful. That program has a serial port command line interface, where the i2c command is used to communicate with I2C devices connected to the MCU. The help text for the i2c command is:Amit Ashara said:I believe the poster is looking for a "Command Line Interface".
[00:01:09] BMC>help i2c
[00:01:09] Executing command "help"
i2c port.address [value|'r']
-Performs an I2C operation on the specified i2c port and address. A string of
values and the character 'r' are used to determine whether to send a value to
the device or read from the device. The address and value are to be given in
hexadecimal. Upon completion The operation will print any errors it encountered,
and the results of any reads it performed.
Example: i2c 1.FA 0F B8 r r r
BMC>
While the program was written for a LM3S2D93 making use of SYS/BIOS and the StellarisWare driverlib, it could provide a starting port for creating a similar I2C Command Line Interface for a TM4C129 device.