CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

"Warning: No configuration words in hex file"

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
seme1
Guest







"Warning: No configuration words in hex file"
PostPosted: Sat Jun 13, 2009 5:58 am     Reply with quote

PIC18F46K20
PCW 4.078

Code I'm compiling is very simple:
Code:

#include <16F877A.h>
#device adc=8
#include <stdio.h>
#include <stdlib.h>
#use delay(clock=20000000)
#include <lcd.c>

#FUSES NOWDT                    //No Watch Dog Timer
#FUSES HS                       //High speed Osc (> 4mhz for PCM/PCH) (>10mhz for PCD)
#FUSES NOPUT                    //No Power Up Timer
#FUSES NOPROTECT                //Code not protected from reading
#FUSES NODEBUG                  //No Debug mode for ICD
#FUSES NOBROWNOUT               //No brownout reset
#FUSES NOLVP                    //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOCPD                    //No EE protection
#FUSES NOWRT                    //Program memory not write protected

#use delay(clock=20000000)
void main()
{

   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   setup_psp(PSP_DISABLED);
   setup_spi(SPI_SS_DISABLED);
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);
   setup_comparator(NC_NC_NC_NC);
   setup_vref(FALSE);

   // TODO: USER CODE!!
  output_high(PIN_A0);
   lcd_init();
  delay_ms(100);
  lcd_putc("\f  NuTrade Sys\n   TESTing 1.0        ");

 
   while(TRUE){
   
//    delay_ms(4000);
    int8 fd=0;
    for(fd=0;fd<10000;fd++){
    }
    output_toggle(PIN_A0);
   }
}


After compiling the program, when I try importing the generated hex file with PICkit2 I always get the message : "Warning: No Configuration words in hex file. In MPLAB use File-Export to save hex with config"

Any idea what could be causing this and how to fix it ?
seme1



Joined: 13 Jun 2009
Posts: 21

View user's profile Send private message

PostPosted: Sat Jun 13, 2009 6:05 am     Reply with quote

Nevermind,,
I just realized that the device type has been changed for some reason..
The warning message is no longer displayed now
Ttelmah
Guest







PostPosted: Sat Jun 13, 2009 3:03 pm     Reply with quote

Also, as a comment, put your 'includes', except for the processor one, after the delay, and #use RS232 statements (if present).
Basically, the latter depends on the former, and anything that depends on delay timings, and RS232, should have the statements present _before_ being included, or you may get unexpected results....

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group