-->
Page 1 of 1

move from "i2c.cpp" to "si2c.c"

PostPosted: Sun May 03, 2015 11:38 am
by martinayotte
I've upgraded my Arduino IDE with the latest tree Arduino-esp8266 from github.
When trying to compile my SketchBuffet, I've faced some undefined at link time.
I've figured out that the new file "si2c.c" should be renamed "si2c.cpp" to satisfy the linker ... :o

Edit :

But after success at link time, I've faced another issue with esptool :

/home/martin/esp8266/arduino-1.6.1/hardware/tools/esp8266/esptool -eo /tmp/build7809035453887228528.tmp/Sketch_Buffet.cpp.elf -bo /tmp/build7809035453887228528.tmp/Sketch_Buffet.cpp_00000.bin -bm qio -bf 40 -bz 512K -bs .text -bs .data -bs .rodata -bc -ec -eo /tmp/build7809035453887228528.tmp/Sketch_Buffet.cpp.elf -es .irom0.text /tmp/build7809035453887228528.tmp/Sketch_Buffet.cpp_40000.bin -ec
/home/martin/esp8266/arduino-1.6.1/hardware/tools/esp8266/esptool returned 255
Error compiling.

... and the *40000.bin isn't generated at all, and the *00000.bin is only 16 bytes ... :?

Edit2 :

I got it ! I've updated my esptool from IGRR tree from https://github.com/igrr/esptool-ck ... ;)
But, unfortunately, it seems that the I2C is broken at runtime ... :(