|
|
View previous topic :: View next topic |
Author |
Message |
seme1 Guest
|
"Warning: No configuration words in hex file" |
Posted: Sat Jun 13, 2009 5:58 am |
|
|
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
|
|
Posted: Sat Jun 13, 2009 6:05 am |
|
|
Nevermind,,
I just realized that the device type has been changed for some reason..
The warning message is no longer displayed now |
|
|
Ttelmah Guest
|
|
Posted: Sat Jun 13, 2009 3:03 pm |
|
|
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 |
|
|
|
|
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
|