Forum

BallInMaze for MF4? - why is not possible to debug?
Last Post 09 Apr 2010 01:41 PM by TimL. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
Richard
New Member
New Member
Posts:2

--
04 Mar 2010 09:40 AM
    Hi,

    I am trying to get the Ball In Maze V2 to run on TahoeII using MF4.

    I have made some minor changes to the code to accomodate MF4.0 (eg uses Random class). It builds and deploys without error.

    When I try run it, the application does nothing. Screen on Tahoe II is left with the message "Waiting for debug commands..." Appears to exit immediately.

    Visual Studio 2008 only displays the following in output Window.

    "The program '[4600] Micro Framework application: Managed' has exited with code 0 (0x0)."

    I have tried to set a breakpoint on the first line of code in Main(). It does not appear to get there.

    Suggestions?

    I have compiled and deployed two other applications under MF4 from the same PC and they appear to work.

    I have tried to run the ball in maze sample with the Microsoft and the TahoeII simulators and it does the same thing. i.e. simulator starts up and then just exits.

    Any suggestions appreciated as I am new to the .Net Micro Framework. I do have good experience with embedded systems and C# programming. Interested to understand why I cannot debug the application more than actaully running it as I am clearly missing some knowledge about "tricks" to catch funny debugging issues on MF projects.

    Tahnk you.

    Regards
    Richard






    mwelford
    Basic Member
    Basic Member
    Posts:298

    --
    04 Mar 2010 06:31 PM
    It sounds like one of the libraries you are using is not the same version as the others. This is the main cause of things just "not working".
    The ball-in-maze needs the FusionWare::SPOT library and I suspect this is your problem. This is available from http://codeplex.com/fusionwarespot. There is source for 4.0 and this works for talking to I2C devices, but there is no offical release of the complete package.
    Richard
    New Member
    New Member
    Posts:2

    --
    08 Mar 2010 04:14 PM
    Thanks for pointer to Fusionware.

    I have done a Checkout of the project. Also installd Wix. When I tried to build the V4.0 project, compiler finds errors and fails to build.

    There are possibly missing bits from SVN or updates that have not been applied to SVN? Do you have v4.0.x that builds? As an example I have the following missing project file.

    ---------------------------
    Microsoft Visual Studio
    ---------------------------
    The project file 'C:\...\FusionWare\FusionWareSPOT\FusionWare.SPOT.V4.0.x\Device\FusionWare.SPOT\Wix\FusionWare.SPOT.Install.wixproj' has been moved, renamed or is not on your computer.
    ---------------------------
    OK
    ---------------------------

    example of a build error:

    Error 1 'FusionWare.SPOT.EmulatorComponents.SimpleSPIDevice' does not contain a definition for 'ChipSelectPin' and no extension method 'ChipSelectPin' accepting a first argument of type 'FusionWare.SPOT.EmulatorComponents.SimpleSPIDevice' could be found (are you missing a using directive or an assembly reference?) C:\...\FusionWare\FusionWareSPOT\FusionWare.SPOT.V4.0.x\Emulator\FusionWare.SPOT.EmulatorComponents\SimpleSPIDevice.cs 85 54 FusionWare.SPOT.EmulatorComponents


    Any thoughts on getting Fusionware to build?
    mwelford
    Basic Member
    Basic Member
    Posts:298

    --
    08 Mar 2010 04:19 PM
    I ignored everything else (including the wix stuff) and just built the FusionWare.SPOT firmware assembly for v4.
    TimL
    New Member
    New Member
    Posts:35

    --
    09 Apr 2010 01:41 PM
    Sorry to ask but I am trying to get the ballInMaze up and running on v4

    Can you please tell me how to change this line of code

    DispatcherOperation op = this.Dispatcher.BeginInvoke(new VoidProc(this.Maze.UpdateTick));

    Thanks

    Tim
    You are not authorized to post a reply.


    Active Forums 4.3