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.

yogotie's Content

There have been 7 items by yogotie (Search limited from 20-March 23)


By content type

See this member's

Sort by                Order  

#56885 I2C Bus Problem - Debugging

Posted by yogotie on 18 March 2014 - 01:47 AM in General Discussion

gismo,

 

My original fix is only applied to when the device is initialized.  It looks like your problem is occurring at some time later during a transaction.

 

If you are able to get a debugger, cost is $21.25 at mouser, you can check to see if the busy bit is set when the bus locks up.  If that is true then you will need to create a more sophisticated way of reseting the I2C module make this work.  You maybe able to hack something in at the start or stop call and have something spin on the busy bit and cause a reset if it takes too long.

 

If you do get the debugger and find this is the case I'm sure that would be interesting to Chris as well.




#56614 Compiling Custom Netduino Firmware: Step-By-Step Instructions - Help

Posted by yogotie on 04 March 2014 - 03:59 AM in General Discussion

The 'PORT' parameter is not used in NETMF 4.3, you should call setenv_gcc.cmd:

 

setenv_gcc.cmd 4.6.2 C:\Yagarto-4.6.2

 

The version number (4.6.2) must match the directory name in lib\gcc\arm-none-eabi.

 

I didn't pay attention to the fact that they changed the setenv commands.  Thanks for pointing that out.

 

Now I get the 114 errors like Kip got.




#56569 Compiling Custom Netduino Firmware: Step-By-Step Instructions - Help

Posted by yogotie on 02 March 2014 - 05:03 AM in General Discussion

I still have not made a successful build.  However, I cannot recreate your issue with msbuild.

 

 In my case I followed ziggurat29's tutorial to get the the 4.2 QFE1 with netduino plus 2 4.2.2.0 firmware to build.  I then downloaded the PK and 4.3 firmware from the links posted.  After extracting the PK I copied the netduino firmware into the PK directory in the same way that ziggurat29 did in the tutorial.

 

I opened my command line from the directory in which the PK resides.  I did not use the VS2012 command prompt.

 

I then ran the following :

 

setenv_base.cmd GCC4.6 PORT c:\yagarto-4.6.0
 
which returned 'Compiler: GCC4.6 PORT c:\yagarto-4.6.0'
 
and then ran
 
Msbuild Solutions\NetduinoPlus2\dotnetmf.proj /T:rebuild /p:flavor=release;tcp_ip_stack=lwip /filelogger
 
which ended in 2 errors 
 
"C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\Solutions\NetduinoPlus2\dotnetmf.proj" (rebuild target) (1) ->
"C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\Solutions\NetduinoPlus2\TinyBooter\TinyBooter.proj" (Build target) (2) ->
"C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\Application\TinyBooter\TinyBooterLib.proj" (Build target) (3) ->
"C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\Framework\Tools\CreateCLRDefines.proj" (Build target) (8:2) -> (BuildClrDefines target) ->
  C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\Framework\Tools\CreateCLRDefines.proj(12,5): error : Value cannot be null.\r
C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\Framework\Tools\CreateCLRDefines.proj(12,5): error : Parameter name: path
 
 
"C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\Solutions\NetduinoPlus2\dotnetmf.proj" (rebuild target) (1) ->
"C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\Solutions\NetduinoPlus2\TinyCLR\TinyCLR.proj" (Build target) (124) ->
"C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\clr\core\InteropAssembliesTable.proj" (Build target) (135) -> (GenerateInteropTable target) ->
  C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\clr\core\InteropAssembliesTable.proj(91,5): error MSB3491: Could not write lines to file "\\Solutions\NetduinoPlus2\TinyCLR\CLR_RT_InteropAssembliesTable.cpp". The network path was not found.\r
C:\Projects\DotNetMf\NetduinoPlus2_4.3_QFE1\clr\core\InteropAssembliesTable.proj(91,5): error MSB3491:
 

I'll continue to investigate my compile issues




#55316 I2C Bus not working

Posted by yogotie on 12 January 2014 - 04:21 PM in Netduino Plus 2 (and Netduino Plus 1)

Hardware mode for the Plus 2 has an issue where it is possible for the I2C module in the micro to become locked up.

 

You can look through my debugging post here, http://forums.netdui...sue/#entry49515, and see if this looks like what you maybe seeing.

 

If this is your issue and you don't want to use my firmware the try using a lower value pullup resistor, such as 1k, to reduce the probability of the lockup condition.




#50001 I2C LCD not working on Netduino Plus 2

Posted by yogotie on 27 May 2013 - 03:11 AM in Netduino Plus 2 (and Netduino Plus 1)

I found some odd issues with I2C logic in the controller used for the NP2+.  The I2C state machine in this part has a locking condition, which is stated in the datasheet and errata for this part, but without and debugger and a scope it can be hard to determine if this is the issue.  I did verified that this is in fact a real issue with the latest firmware, thanks to ziggurat29's posts about how to compile the source.

 

http://forums.netdui...c-lockup-issue/




#49515 I2C lockup issue

Posted by yogotie on 17 May 2013 - 06:46 PM in Netduino Plus 2 (and Netduino Plus 1)

Thanks, I'm glad that it worked for you.




#49494 Apparent N+ and N+2 I2C differences

Posted by yogotie on 16 May 2013 - 04:17 PM in Netduino Plus 2 (and Netduino Plus 1)

I'm not familiar with the Adafruit NFC sheild however I have been able to verify that the firmware, 4.2.2.2, does not properly handle the I2C errata for this part.

 

You can look at my thread and my solution to this particular I2C issue with this board and see if this is of any use to you.

 

http://forums.netdui...c-lockup-issue/





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.