To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 7020
7019  |  7021
Subject: 
building a remote debugger for win32 -- need help
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Tue, 2 Nov 1999 23:00:57 GMT
Reply-To: 
hw@xsAVOIDSPAM4all.nl
Viewed: 
869 times
  
Hi everybody,

As a part of a project at my university we're building a
crossdevelopment environment for the Windows environment. As a part of
this programming environment we want to build a remote debugger. So,
we will have to incorporate a downloader and a remote debugging
mechanism that works over the serial interface.
In the end we hope to have a fullblown Borland-C like programming
environment for the 68HC11, with both simulated debugging and remote
debugging. (Yup, we're ambitious:-))

And right at the beginning of all this i'm walking into problems. I
can't find anywhere in the extensive documentation that is available
on the web how to communicate with the 68hc11 over the serial line,
other than with Interactive C. This is not an option for us:-(.

So right now I'm writing a C++ object that will communicate with the
board. When instantiated it should install the talker that comes with
pcbug11 (talkeree.s19) on the board and then wait for commands that
are transmitted over the serial line.

Right now i've come as far as to open the serial comport on the pc to
talk to the board but i have no idea where to go from there. Can
anybody help me?

For the c++ literate, here's the interface of the C++ object:

class SerialCommunicator
{
public:
    SerialCommunicator(int port, int speed);
   //the constructor should automatically install the talker
    int open(); //opens the comport
    int close(); //closes the comport
    int read(); //should read from the serial line. Stores what it
                   //reads in private datamember Data
    int write(char *Data);//should send data to the board
    int readStatus(){ return status;}
    //this is just to keep the state
private:
    SerialCommunicator(SerialCommunicator &SC);
    // disables copyconstruction
    int portNr, comSpeed, status;//no comment needed
    char Data[255];//string in which to store data that comes
                            //from the serial connection
    HANDLE hCom; //win32 handle to a comport
    //below are other members needed by the win32 API
    DCB Dcb;
    COMMTIMEOUTS Timeouts;

};


Regards.
Hans



Message has 4 Replies:
  Re: building a remote debugger for win32 -- need help
 
I don't claim to be an expert on this, but here are my ideas. To get a clean HB up and running you need to do the following (assuming talkeree.s19 is larger than 256 bytes) 1) Start off by booting the HB into bootstrap mode. This makes the board (...) (25 years ago, 3-Nov-99, to lugnet.robotics.handyboard)
  Re: building a remote debugger for win32 -- need help
 
Hans, What Christopher Prosserhas stated was correct, and this is exactly what Vadim Gerasimov does in his HDBL windows program. And it is also the technique used in my HB_Buffalo downloader program for programming the HandyBoard with a Buffalo type (...) (25 years ago, 3-Nov-99, to lugnet.robotics.handyboard)
  Re: building a remote debugger for win32 -- need help
 
(...) Go check out this link. Some of it has already been done for you: (URL) around this site and you'll find other interesting HC11 projects, probably several of which would be of use to you. Curt Mills, WE7U hacker.NO_*SPAM@tc.fluke.com Senior (...) (25 years ago, 3-Nov-99, to lugnet.robotics.handyboard)
  SlugBot
 
Here's a REAL use for a robot: (URL) Mills, WE7U hacker.NO_*SPAM@tc.fluke.com Senior Methods Engineer/SysAdmin "Lotto: A tax on people who are bad at math." -- unknown "Windows: Microsoft's tax on computer illiterates." -- WE7U (25 years ago, 3-Nov-99, to lugnet.robotics.handyboard)

11 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR