- FAE/Client Login
- product registration
- > Download <
- Our products
- Support
- FAQs
- technical support
- Installation
- Application Notes
- Device List
- Hints and Tips
- C38 - Special Page Access
- C6805 - Filling Unused ROM
- C6805 - Setting Multiple MORs
- C6805 - Working with MMEVS05/MMDS05
- C6808 and Emulators
- COP8C - Executing Initialization Code
- COP8C - S Register Support
- Debugging: Using Macros to Monitor Program Flow
- Declaring SPECIAL Memory
- LCD Interface
- LOCAL Memory
- Low Cost, Low Speed A/D conversion for Embedded Systems
- MPC - Branch Islands on the PIC16C5x
- MPC - Constant ROM Arrays
- MPC - Named Address Space
- MPC - Setting Configuration Fuses
- Non-linear Data Transformations
- Using the CodeWright(TM) Editor
- Product-specific Notes
- Resources
- CODSupport
- Fixed Point
- Fuzzy Logic
- Publishing
- What's New
- About Us
- more information
Using the CodeWright(TM) Editor
codewright
You can use the Codewright programmers' editor with any Byte Craft C compiler. However, some special configuration techniques are required during setup. The commands on this page use the minimum number of command line options necessary to compile the current source file, and create an error file with the same basename so that Codewright can help you locate and fix errors. You can add any other options you require to the compiler commands.
These instructions apply to Codewright version 6.
-
Select on the submenu of the menu.
-
Make sure Error Parsers is checked and click .
-
Select from the menu.
-
Click on the name of your project in the list on the left.
-
Click on the Tools tab.
-
Select Compile from the Category list and
.cfrom the File Type list and make sure the Redirect output checkbox is unchecked in the Command Options. -
Click the button to the right of the Compiler Name and type the name of the compiler (eg:
Byte Craft).CDS -
In the Compile edit box, type the full path to the compiler executable and the compile command line. For example:
c:\bcl\bcl.exe %b%e +e
Codewright replaces
%b%ewith the basename and extension of the current workfile. This command runs the BCL compiler and creates an error file with the same basename as the workfile. Ifc:\bcl\bcl.exeis not the path to your Byte Craft compiler, substitute the correct path to the compiler.exefile. You can also add any other compiler command line options that you require, but you must include the+eto create an error file. -
In the Debug Compile edit box, type
c:\bcl\bcl.exe %b%e +e -ddebug
The
-ddebugcommand line option defines an identifier used for conditional compilation. It is the equivalent of putting #define debug in your source file. Codewright gives you to ability to use this compile command for debugging, and the Compile command you set in the step above for production code. The defined identifier can be anything;debugis used as an example. -
Select the Errors tab.
-
Type
%b.errin the Error Filename edit box. -
In the Error Parser 1 edit box, select
_ByteCraftCErrorInfo. -
Click to save your settings.
Codewright features C syntax coloring, version control, and debugging environments. Codewright is a trademark of Premia Corporation.

eTPU_C:
C6808: