View previous topic :: View next topic |
Author |
Message |
_olaf_
Joined: 24 Feb 2005 Posts: 32
|
Build Error |
Posted: Thu Feb 24, 2005 1:14 am |
|
|
Hi,
I�ve got a problem with MPLAB (V6.5) and CCS-Compiler (V3.057, with ccs plug-in). I tried to build a project which I created a few weeks ago. At that time I built it and it worked. I had some problems when I programmed a pic with the picstart-plus-programmer. Because of that I tried MPLAB 7.0. And since that nothing is as it was before. If I try to build a project I get the same message every time. I think it is not a big problem, but I can�t find a solution. Today I made a new project (with the Pic-Wizard of CCS). In MPLAB (using V6.5) I set the files in the new MPLAB-Project. But It isn�t working as it should. Can anyone help?
Code I created to test it
Code: |
#include "E:\Projekte\TEST_SOFTWARE\Test_01.h"
#include <2432.C>
#int_RB
RB_isr() { }
#int_EXT
EXT_isr() { }
#int_TBE
TBE_isr() { }
#int_RDA
RDA_isr() { }
#int_SSP
SSP_isr() { }
#int_BUSCOL
BUSCOL_isr() { }
void main() {
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_CLOCK_DIV_2);
setup_spi(FALSE);
setup_counters(RTCC_INTERNAL,RTCC_DIV_2);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_ccp2(CCP_OFF);
init_ext_eeprom();
enable_interrupts(INT_RB);
enable_interrupts(INT_EXT);
enable_interrupts(INT_TBE);
enable_interrupts(INT_RDA);
enable_interrupts(INT_SSP);
enable_interrupts(INT_BUSCOL);
enable_interrupts(global);
}
and the Test_01.h file
#include <16F876.h>
#use delay(clock=20000000)
#fuses HS,NOWDT,PUT
#define EEPROM_SCL 59
#define EEPROM_SDA 60
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7)
#use i2c(master,sda=PIN_C4,scl=PIN_C3)
|
and that�s the output-file
Clean: Deleting intermediary and output files.Clean: Done.Executing: "C:\Programme\PICC\Ccsc.exe" Test_01.cNo ErrorsHalting build on first failed translation as user preferences indicate.BUILD FAILED: Wed Feb 23 19:33:20 2005
There are no errors but why does it fail. And what does this message mean?
Another question is, why does the Compiler insert an sleep-instruction at the end of the programcode. Is this an option which I can switch off?
Thanks & best regards
Olaf |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
_olaf_
Joined: 24 Feb 2005 Posts: 32
|
|
Posted: Thu Feb 24, 2005 3:22 am |
|
|
That's what I found out too. But If I try the other version of the language tool I get an other Message.
Something like:
Sorry but I don't have in mind the whole text. But the question is, why didi it work a few weeks ago? And since I tried MPLab 7 it doesn't work?
It's a little bit confusing.
Olaf |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Thu Feb 24, 2005 7:15 am |
|
|
If you are using the CCS C Compiler option, it ain't going to work!
Use this entry "CCS C Compiler for 12/14/16/18"
If you are saying that you are getting an error with this option, then you probably didn't setup the tool locations. |
|
|
|