Velo Development Quickstart
Connecting the Velo to the
PC
- Attach the docking port to COM2
- Attach the power cord to the dock
- Slide the Velo into docking port
- On the PC run Handheld PC Explorer
(doubleclick desktop icon)
- If you see successfully connect proceed to the
running a sample program section.
Problems connecting the Velo to
the PC
- Try turing the Velo off and then back on
again.
- On the Velo, select Start:Run. Type in
repllog
- If that didn't work try disconnecting the Velo
and then reconnecting.
- Try exiting HPC Explorer and restarting it.
Wait until HPC Explorer says that it is waiting for a handheld PC
and then cycle power on the Velo.
- If you get a error that says Version
incompatible. Close all WinCE services. Look at the icons on the
right-hand side of the task bar.There should be two small
computers with a wire connecting them. In the task manager, kill
the process DccMan.exe. The icon should disappear from the task
manager. Eject the Velo from the dock and restart the HandheldPC
Explorer program. Insert the Velo back into the dock.
Running a sample program on the
Velo
We will be using Windows CE extensions to Visual
C++ to develop and download programs to the Velo.
- Copy the directory
\DevStudio\Wce\Samples\Win32\Generic into your program
space.
- From the Start menu bring up
Programs:Microsoft Visual Studio:Microsoft Visual C++
5.0:Microsoft Visual C++ 5.0
- In Developer Studio select File:Open Workspace
and select the file generic.dsw
- Select Build:Always Download. A check mark
should be next to it. On every compile, the MIPS binary code will
automatically be downloaded to the Velo.
- Select Build:Set Active Configuration and
select generic - Win32 (WCE MIPS) Debug. This sets up the backend
of the compiler to generate debuggable MIPS code instead of x86
code or Hitachi SH code.
- In the upper right corner of Developer
Studio's tool bar is a small window with WCExxx in it. Make sure
that you select WCE100 NOT WCE200 or WCE101. To see the OS version
on the Velo, click on the Velo's Start:Settings:System. Close the
System window.
- On the Velo, doubleclick the My Handheld PC
icon.
- Select Build:Build generic.exe. You will get a
link warning, ignore it. Messages will indicate that the program
is copied down to the Velo.
- On the Velo, doubleclick the generic icon and
an application that divides the screen into 4 quadrants should
come up.
Debugging a program on the
Velo
- Make sure you build a debuggable version and
not a release version.
- Select Build:Start Debug:Go. Generic should be
running on the Velo.
- Select Debug:Stop Debugging
- Position the curson on line 232 of
generic.cpp.
- Select Edit:Breakpoints
- Click on the right arrow and select line 232.
A stop sign should appear in the far left column. Note that you
cannot add breakpoints while the program is running.
- Select Build:Start Debug:Go
- On the Velo click in the change color
quadrant. A yellow arrow should be on top of the stop sign.
- Select Debug:Go to continue executing.
- Select Debug:Stop Debugging to exit the
debugger.
Resetting the Velo
If the Velo should hang, it can be reset by
putting the point of the stylus into the small hole to the left of
the delete key.