Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Alex W

Member Since 01 Jan 2013
Offline Last Active Apr 17 2013 01:08 AM
-----

Topics I've Started

I2C works under the debugger, but not standalone?

08 January 2013 - 03:39 PM

I have a N+2 with the latest firmware (which I know has I2C fixes).

 

I'm using an Adafruit LSM303 compass/accelerometer module.

 

When I run my program under the Visual Studio debugger everything works great.  When I run it standalone all calls to I2CDevice.Execute return 0 bytes transferred.  Has anyone run into this?  Any ideas of how to fix it?  Even if the device was working fine under the debugger and I press the reset button (while still attached to the debugger) it will stop working.  Does the debugger somehow to a I2C reset?

 

I'm not sure if the Adafruit LSM303 has the proper pullup resistors or not (they don't publish their schematic, and on the board I just see two transistors on the SCL/SDA lines).  However since it is working while running my code under the debugger I don't think it is a pullup resistor issue. 

 

I've attached my two I2C related files.  The CompassSensor module is clearly not done and is doing things like invalid linear math for computing angles, I'm just playing around at this stage.

 

thanks,

alex


home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.