nnico

Hi
Impossible for me to flash the sample code to the device :
- I did a backup of the orginal flash in the device
- I try to program the device doing this :
1/ unpack the 16 MHz version code http://www.sparkfun.com/datasheets/Sensors/IMU/9DOF-v11_firmware.zip
2/ replace main.c by the 8 MHz version provided above
3/ make
4/ Program the device : avrdude -F -p m328p -P /dev/ttyUSB0 -c arduino -b 19200 -U flash:w:main.hex
Step 1/ and 2/ are needed because the complete source code of the 8MHz version is not provided but only the main.c (why ???)
–> After the device is not working anymore. I have tried to modified the code to only make the LED blinking and it works.
Function i2Cinit seems to lock the device
- When I flash back the orginal hex, the device works.
Any idea ?
Anyone succeed any re-compiling the provided source ?
Thanks
Nicolas

SparkFun is an online retail store that sells the bits and pieces to
make your electronics projects possible. Whether it's a robot that can
cook your breakfast or a GPS cat tracking device, our products and
resources are designed to make the world of electronics more accessible.

In addition to products, SparkFun also offers
classes and online tutorials to help educate
individuals in the wonderful world of embedded electronics.