Hi everyone,
I'm quite new to the CC3200 and I'm trying to get MLX90614 (IR temperature sensor) working, but no success so far. Currently I'm using one of the SDK sample apps: http://processors.wiki.ti.com/index.php/CC32xx_I2C_Application
cmd#readreg 0x5A 0x07 2
which is meant to read 2 bytes from 0x07 register of 0x5A device, I've got this:
Error in processing command
I have tested it in couple configurations:
- built-in sensors connected (J2 & J3 closed, MLX90614 SCL and SDA to P01 & P02 without external pull-ups)
- built-in sensors disconnected (J2 & J3 open, MLX90614 SCL and SDA to P01 & P02 with external pull-ups)
The whole UART output looks like this:
Command Usage ------------- write <dev_addr> <wrlen> <<byte0> [<byte1> ... ]> <stop> . - Write data to the specified i2c device read <dev_addr> <rdlen> . - Read data frpm the specified i2c device writereg <dev_addr> <reg_offset> <wrlen> <<byte0> [<byte1> ... ]> . - Write data to the specified register of the i2c device readreg <dev_addr> <reg_offset> <rdlen> . - Read data from the specified register of the i2c device Parameters ---------- dev_addr - slave address of the i2c device, a hex value preceeded by '0x' reg_offset - register address in the i2c device, a hex value preceeded by '0x' wrlen - number of bytes to be written, a decimal value rdlen - number of bytes to be read, a decimal value bytex - value of the data to be written, a hex value preceeded by '0x' stop - number of stop bits, 0 or 1 ----------------------------------------------------------------------------- cmd# cmd#readreg 0x5A 0x07 2 Error in processing command
Shouldn't it work like that in either or both of those? Or am I forgetting something important?
I've even tested MLX90614 sensor with Arduino to check if everything's fine with it, and it works perfectly.
documents: