Here we discuss issues that face primarily Professional Software Engineers and not necessarily hobbyists. Since I don't like to make any assumptions, I'll refer to a group called "Power Users"

1) Advanced Toolchain Advice

2) Build and Debug procedure

Future Topics:

Hints for Using External Memory

Setting up your Make file

Setting up the Compiler and Make Utility

Modularizing your software

Conventions for C-Language Code Style

Please visit again!

Aug 13, 2003

1) Advanced Toolchain Advice:

Using the EVB-8720-NET with

  • MP-LAB (IDE) Debugging Tool
  • Borland Codewright Editor
  • Microchip ICE-4000
  • Make Utility
  • HiTech PICC-18 Compiler



General

This particular toolchain is very effective when coding large projects. I have been using Codewright for coding almost exclusively for 6 years now. The exception is for Windows Development, where I use the Visual Studio editor. This is because of its tight integration with the C++ debugger.

MAKE

I use Microsoft NMAKE for my development. I have no strong opinion here. I have also used Borland MAKE, MAKER (32-bit) and GNUMAKE.

MP LAB

The MP LAB Software is working pretty well. It doesn't synchronize very well on rebuilds. Perhaps they need to add some keystroke macro capability. There are several steps that I have to go through after each bug fix.

CODEWRIGHT

You should be able to BUILD and REBUILD from inside of CODEWRIGHT, using the FTEE program.

(Later I'll put the exact command line here, for all to see)

NOTE: If you are using Codewright 6.6 or older: FTEE and FTEE32 will not work under Windows XP. Download and install the free demo of the latest Codewright. Simply move the FTEE or FTEE32 application to the current working directory of Codewright.

ICE-4000

You must use the USB connection.

Contact the factory if you plan on using the external memory bus of the PIC18F8720 chip. There's an important modification that needs to be done to early versions of the PMF18WA0 Processor Module (the plug-in to the ICE-4000).

I've done this, so you could call me also.

Hi-TEch PIC18 C Compiler

I use these compilers exclusively, for PIC development. They're very good.

Use the .COF (COFF) output file, not the .HEX output file. In MP LAB, use the File..Import command.

 

2) Build and Debug procedure:

 

Debugging: Edit and Re-build

  • Change your source code as needed.
  • Save the file(s).
  • Project..Rebuild
  • Verify sucessful build
  • Alt-TAB to MP-LAB IDE
  • Reload source files that were affected
  • Import COFF file
  • Re-set any breakpoints, etc.
  • Run and debug




 


Home | Site map

Copyright © 2000-2003 OmniWave, Inc. All rights reserved.
Web design by