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

Netduino Plus 2, SPI not working, .NET Toolbox,


  • Please log in to reply
44 replies to this topic

#41 pjnowak

pjnowak

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 12 February 2013 - 01:53 PM

What device are you connecting to? What speed?

Chris

 

I am connected to two [color=rgb(0,0,0);font-family:verdana;font-size:13px;]74HC595 with speed of 1000.[/color]

 

 ChipSelect_Port: LatchPin,

 ChipSelect_ActiveState: false,
 ChipSelect_SetupTime: 0,
 ChipSelect_HoldTime: 0,
 Clock_IdleState: false,
 Clock_Edge: true,
 Clock_RateKHz: [color=rgb(0,0,0);font-family:verdana;font-size:13px;]1000[/color],


#42 stotech

stotech

    Advanced Member

  • Members
  • PipPipPip
  • 143 posts
  • LocationAustralia

Posted 07 July 2013 - 05:32 AM

OK, This is a bit strange. I recently updated to the latest firmware and haven't tried the LCD in a while. Tried it over the last few days and I think it's bugged. After tons of trying and fretting that it was a bit shifting issue again I finally chucked the shield I was using and copied the website example. Still no go. So i thought the LCD might be dead and got a new one today. But know neither work at the moment so I'm thinking that I might be missing something or the Hd44780Lcd class doesn't work with the latest firmware? Here is what I've tried.

using System;using System.Net;using System.Net.Sockets;using System.Threading;using Microsoft.SPOT;using Microsoft.SPOT.Hardware;using SecretLabs.NETMF.Hardware;using SecretLabs.NETMF.Hardware.Netduino;using Toolbox.NETMF.Hardware;namespace screentest{    public class Program    {        public static void Main()        {            Hd44780Lcd Display = new Hd44780Lcd(                Data4: Pins.GPIO_PIN_D4,                Data5: Pins.GPIO_PIN_D5,                Data6: Pins.GPIO_PIN_D6,                Data7: Pins.GPIO_PIN_D7,                ClockEnablePin: Pins.GPIO_PIN_D8,                RegisterSelectPin: Pins.GPIO_PIN_D9,                Columns: 20,                Rows: 4            );            Thread.Sleep(2000);            Display.ClearDisplay();            Display.Write("Hello World!");            Debug.Print("done");        }    }}
Found debugger!Create TS. Loading start at 806a988, end 8085288Assembly: mscorlib (4.2.0.0)Assembly: Microsoft.SPOT.Native (4.2.0.0)Assembly: Microsoft.SPOT.Hardware (4.2.0.0)Assembly: Microsoft.SPOT.Net (4.2.0.0)Assembly: System (4.2.0.0)Assembly: Microsoft.SPOT.Hardware.SerialPort (4.2.0.0)Assembly: Microsoft.SPOT.IO (4.2.0.0)Assembly: System.IO (4.2.0.0)Assembly: Microsoft.SPOT.Hardware.PWM (4.2.0.1)Assembly: Microsoft.SPOT.Hardware.Usb (4.2.0.0)Assembly: SecretLabs.NETMF.Diagnostics (4.2.0.0)Assembly: SecretLabs.NETMF.Hardware.Netduino (4.2.1.0)Assembly: Microsoft.SPOT.Hardware.OneWire (4.2.0.0)Assembly: Microsoft.SPOT.Time (4.2.0.0)Loading Deployment Assemblies.Attaching deployed file.Assembly: Toolbox.NETMF.Core (4.2.0.0)Attaching deployed file.Assembly: Toolbox.NETMF.Hardware.Hd44780Lcd (4.2.0.0)Attaching deployed file.Assembly: Toolbox.NETMF.Hardware.Core (4.2.0.0)Attaching deployed file.Assembly: SecretLabs.NETMF.Hardware (4.2.0.0)Attaching deployed file.Assembly: screentest (1.0.0.0)Resolving.The debugging target runtime is loading the application assemblies and starting execution.Ready.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2Assemblieslemscorlib.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Native.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Net.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleSystem.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.SerialPort.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.IO.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleSystem.IO.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.PWM.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.Usb.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2leSecretLabs.NETMF.Diagnostics.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2leSecretLabs.NETMF.Hardware.Netduino.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Hardware.OneWire.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Microsoft .NET Micro Frameworkv4.2AssembliesleMicrosoft.SPOT.Time.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Netmftoolbox.com.NET Micro Framework ToolboxAssembliesv4.2leToolbox.NETMF.Core.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Netmftoolbox.com.NET Micro Framework ToolboxAssembliesv4.2leToolbox.NETMF.Hardware.Core.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Netmftoolbox.com.NET Micro Framework ToolboxAssembliesv4.2leToolbox.NETMF.Hardware.Hd44780Lcd.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'C:Program Files (x86)Secret LabsNetduino SDKAssembliesv4.2leSecretLabs.NETMF.Hardware.dll', Symbols loaded.'Microsoft.SPOT.Debugger.CorDebug.dll' (Managed): Loaded 'D:FamilySkyDriveDocumentsProgrammingNetduinoscreentestscreentestbinDebuglescreentest.exe', Symbols loaded.The thread '<No Name>' (0x2) has exited with code 0 (0x0).doneThe thread '<No Name>' (0x1) has exited with code 0 (0x0).Done.Waiting for debug commands...The program '[5] Micro Framework application: Managed' has exited with code 0 (0x0).

And the debug output?

 

Any suggestions?



#43 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 07 July 2013 - 07:24 AM

grant: you need/want a thread.sleep(timeout.infinite) after

Debug.Print("done");

 

its unknown what happens when you "close" the main loop.



#44 stotech

stotech

    Advanced Member

  • Members
  • PipPipPip
  • 143 posts
  • LocationAustralia

Posted 07 July 2013 - 07:55 AM

Thanks for the quick reply. I've changed it but still no go.



#45 stotech

stotech

    Advanced Member

  • Members
  • PipPipPip
  • 143 posts
  • LocationAustralia

Posted 07 July 2013 - 12:44 PM

After some looking around, it might be related to the speed difference between my N+2 and older netduino. I haven't got my old one to test anymore though? Can anyone else confirm using mftoolbox LCD class with netduino 2 on 4.2.2






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.