HT-Soft PICC example with a “makefile”
As a *.dmt file for HT-Soft PICC does not exist, I have both developed and tested one.
As an augmentation of the existing Makefile and to avoid the DOS command line limitation of 128 characters, I have added linker starting with the command file.
From ht-pic.dmt file:
################ Linker command file script ###################
### CLNK = $(LINKER) -$(CHIP) -eht-pic.err $(C_OPTS)
#$set_output_to(ht-pic.lkf)
-Eht-pic.err -Gdebug -INTEL -17C766 -oHT-PIC.HEX -lf \
#$for_all( C_SOURCE )
%file_name( NAME ).obj \
#$end_for
-Oht-pic.hex
I hope that you will put these results at the disposal of other DAC users, and in view of this, here is some additional information:
- I have had to complete the symbol analysis hi-techpicc.h Preinclude file with two #defines. I would rather not include the processor selection #define in this file. It is my hope that there is some other possibility. That is why I have placed it directly in the project directory.
- All files related to the project, I have marked with ht-pic.xxx so I could use them with all projects.
The call in the MAKE-UDA is gmake (GNU make), but it can easily be replaced with other make programs. The MAKE-UDA or ht-pic.dmt can be upgraded so as not to generate the ht-pic.err file if there were no errors in the call. I hope you will be able to help me with this.
From ht-pic.dcp file (Project / User Defined Actions):
.%SaveAll()
.%SetDir(%PrjRoot)
.gmake -f ht-pic.mak
.%ErrClr(Make Messages)
.%ErrGet(ht-pic.err,$F: $L:,$F: $L warning,Make Messages)
.%Reset(%File)
Note:
I have not changed the COMPILE-UDA; it is the same as in the RistanCASE example, it has NOT been tested.
Suggestion:
I believe that every supported compiler should support a newsgroup. This would certainly contribute to a rapid expansion of the range of useful examples of using DAC.
Best wishes,
Ing. Robbert J. Maris
Project leader
BYTEC GmbH
Download HT-Soft PIC Example for DAC ( 6 kb zip file ). |