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.
Photo

I2C problem

I2C

  • Please log in to reply
7 replies to this topic

#1 Delkrak

Delkrak

    New Member

  • Members
  • Pip
  • 4 posts

Posted 16 July 2014 - 07:59 PM

Hi, i'm inexperienced with the Netduino platform but have some experience I2C.

 

Failing to get I2C up and running on my brand spanking new Netduino Plus 2, I try looking at the logic level.

 

Setup: A scope connected to "SD" and "SC" with a 4k7 pull up resistor connected to 3.3v rail.

 

Funny enough "SC" is around 1V constantly (odd value), while "SD" is at the expected 3.3v by default.

Could the problem be with the chip?

 

 

Regarding software, i have among others, tried to use: http://forums.netduino.com/index.php?/topic/563-i2cbus/#entry4156.

 

Heat: After a closer visual inspection, I noticed poor quality soldering on the top side of the enc28j60 and cortex chip that make it appear as if some pins could be shorted. A quick investigation with the old continuity checker did not support my suspicion. However, as both of the ships get rather hot I would like to know what normal idle temperatures could be, in order to rule out potentially malfunctioning chips.

 



#2 Juzzer

Juzzer

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts
  • LocationHertfordshire, UK

Posted 18 July 2014 - 01:10 PM

The STM should run cool to the touch....If it gets warm/hot then its not happy///



#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 19 July 2014 - 01:15 AM

Hi Delkrak,

What version of firmware are you using? Are you able to create a simple "blinking LED" program using the onboard LED? Can you drive the voltage of the I2C pins high/low using OutputPort?

Chris

#4 Delkrak

Delkrak

    New Member

  • Members
  • Pip
  • 4 posts

Posted 19 July 2014 - 10:29 AM

The STM should run cool to the touch....If it gets warm/hot then its not happy///

Are you running it in a special power saving ect.?

I noticed that it does not get hot in bootloader mode, odd.

 

What version of firmware are you using? Are you able to create a simple "blinking LED" program using the onboard LED? Can you drive the voltage of the I2C pins high/low using OutputPort?

Firmware: 4.2.1.1 (currently)

I am able to change pin state off SDA, SCA and the LED. 

In addition, I am able to change the logic level of the pull down resistor using the OutputPort command.



#5 Juzzer

Juzzer

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts
  • LocationHertfordshire, UK

Posted 19 July 2014 - 12:57 PM

The STM should not get hot at all...



#6 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 20 July 2014 - 01:48 AM

Hi Delkrak,

The STM32F405 chips do get a bit warm (either by themselves or courtesy of heat dissipated throughout the PCB from LDO power regulators, etc.). If it feels hot then something is wrong. If it just feels warmer than the air conditioning...that's pretty normal (at least when the chip is running at 168MHz constantly).

On I2C: do you have a logic analyzer handy by any chance? If you can drive the pins high and low (using OutputPort) and read logic levels correctly with InputPort, then this is most likely not a hardware issue.

If it is a hardware issue and you picked up your Netduino in the last 30 days, we can arrange for a replacement :) We test each board pretty thoroughly before we ship them, though...so we hardly ever get RMAs.

Chris

#7 Delkrak

Delkrak

    New Member

  • Members
  • Pip
  • 4 posts

Posted 21 July 2014 - 05:32 AM

 

The STM32F405 chips do get a bit warm (either by themselves or courtesy of heat dissipated throughout the PCB from LDO power regulators, etc.). If it feels hot then something is wrong. If it just feels warmer than the air conditioning...that's pretty normal (at least when the chip is running at 168MHz constantly).

STM32F405 get significantly hotter than the voltage regulator, just to add a reference.

The Ethernet chip physically almost hurts to touch after a minute of run-time. (i was able to hook it up and receive packages through it, which indicate that it should be working)

 

On I2C: do you have a logic analyzer handy by any chance? If you can drive the pins high and low (using OutputPort) and read logic levels correctly with InputPort, then this is most likely not a hardware issue.

Think I found the problem, as SCA is constantly read as low. Now the next question is what can cause this to happen?

 

Still, it is wired that no change occur at SCD during I2C transfer, which should be independent of the read state of the clock line(SCA). Maybe there is something wrong within the I2C module of the chip as well.

I would love to get my hands on a sample code that for sure will change the I2C pins, just to make sure.

 



#8 Delkrak

Delkrak

    New Member

  • Members
  • Pip
  • 4 posts

Posted 10 August 2014 - 11:57 AM

Looks like this thread died, guess I have to buy a new one then.

 

Thanks for the help regardless of the outcome  :)







Also tagged with one or more of these keywords: I2C

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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.