by karan_maverick » Thu Apr 09, 2015 1:54 pm
by karan_maverick
Thu Apr 09, 2015 1:54 pm
For thermal image acquisition I bought 2 RoBoard RM G-212. I am facing the following issues with the sensor:
1). The sensor is not communicating over the I2C protocol with the Arduino Nano microcomputer. I have tried compiling the attached code but have been unsuccessful so far. The error seems to be due to the i2cmaster.S file which is the assembler file. if I delete the file the code compiles successfully and we don't get the output on the serial monitor.
Error:-
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_init'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:94: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_start'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:113: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_start_wait'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:157: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_rep_start'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:132: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_stop'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:181: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_write'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:202: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_readAck'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:261: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_readNak'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:258: first defined here
collect2.exe: error: ld returned 1 exit status
Error compiling.
2). The RoBoard Sensor/ Melexis MLX 90620 is not recognized by Raspberry Pi2. Perhaps it is the driver issue or I2C incompatibility.
Please advise.
Best regards,
Karan Behar
For thermal image acquisition I bought 2 RoBoard RM G-212. I am facing the following issues with the sensor:
1). The sensor is not communicating over the I2C protocol with the Arduino Nano microcomputer. I have tried compiling the attached code but have been unsuccessful so far. The error seems to be due to the i2cmaster.S file which is the assembler file. if I delete the file the code compiles successfully and we don't get the output on the serial monitor.
Error:-
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_init'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:94: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_start'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:113: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_start_wait'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:157: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_rep_start'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:132: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_stop'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:181: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_write'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:202: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_readAck'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:261: first defined here
i2cmaster\twimaster.c.o: In function `i2c_init':
C:\Program Files (x86)\Arduino\libraries\i2cmaster/twimaster.c:31: multiple definition of `i2c_readNak'
i2cmaster\i2cmaster.S.o:C:\Program Files (x86)\Arduino\libraries\i2cmaster/i2cmaster.S:258: first defined here
collect2.exe: error: ld returned 1 exit status
Error compiling.
2). The RoBoard Sensor/ Melexis MLX 90620 is not recognized by Raspberry Pi2. Perhaps it is the driver issue or I2C incompatibility.
Please advise.
Best regards,
Karan Behar