G540 programmer makes erase, blank check, programming, comparison and encryption functions as one key programming in order to improve the efficiency of users.We can also change the default set of one key programming for different IC programming, choosing the steps we need.

The main problem with the G540 is that it can't load the configuration bits from a file or program the EEPROM. Other than this it will program most PIC devices without any problem. Have you chosen the right type of file format for the output of the ccs c compiled code? Have you set the configuration bits manually using the encrypt button, particularly the watchdog timer which should be off? I have a problem with setting configuration bit.

I dont know what to set what to not. Any tutorial that can help? You should read the Microchip documentation for your PIC (I assume that you are using the PIC), but basically make sure the watchdog timer is off and the oscillator options are correctly set. It is very easy to set the configuration bits with the G540, simply click the encrypt button at the top and the options that are ticked are set for a logic 'one' 1) i am using 4mhz oscillator. Should i select HS or XT? For HS fosc1= 1 and fosc0= 0 and for xt its reversed.

2) debugger mode? What is that? To disable it i have to tick it 3) WDTE presents watch dog timer and should i untick it?

- - - Updated - - - here is the config set menu. Please tell me which option should i tick? Im using pic16f877a. I am using genius programmer. My mikro c code working fine when i burned it with g540 but ccs c compiled code not working. Is this the compatibility problem? I have experience the same problem with Genius Programmer.

What I figure out is that the software of genius programmer is unable to read properly the HEX file generated by CCS compiler. This a bug in genius software, not in the CCS compiler.

The HEX file generated by CCS complier is the hex file of code + hex info for configuration. The hex information of blank is not generated. (Which off course is not required but the software of Genius programmer sees this an error). Now let me show you how I tackled with that.

Kartochki shemi provideniya eksperimentov v dou. Its a two step solution. I converted the hex file generated by CCS compiler to BIN file with HEX2BIN utility then 2. I reconverted the BIN file to HEX file using BIN2HEX utility the new generated HEX file is now compatible with the software of Genius software which can load the configuration bits automaticaly. You can download these two small utilities from HEX2BIN BIN2HEX you can make a batch file to automate these two steps.

I have experience the same problem with Genius Programmer. What I figure out is that the software of genius programmer is unable to read properly the HEX file generated by CCS compiler. This a bug in genius software, not in the CCS compiler. The HEX file generated by CCS complier is the hex file of code + hex info for configuration.

G540 programmer drivers

The hex information of blank is not generated. (Which off course is not required but the software of Genius programmer sees this an error). I have not seen this problem, If this does fix the problem armghan11 please let me know. There is no need to convert back to a HEX file as the G540 can import BIN files.

If I understand what iukhan is saying the blank area between the program area and the configuration area is not filled in by the G540 import utility unless it is explicitly defined in the HEX file. This should not cause a problem as the G540 does not use the configuration area anyway. It may be possible that space in the program file is similarly defined which would cause a problem. Anyway let me know. I have experience the same problem with Genius Programmer.

What I figure out is that the software of genius programmer is unable to read properly the HEX file generated by CCS compiler. This a bug in genius software, not in the CCS compiler. The HEX file generated by CCS complier is the hex file of code + hex info for configuration. The hex information of blank is not generated. (Which off course is not required but the software of Genius programmer sees this an error). Now let me show you how I tackled with that. Its a two step solution.

I converted the hex file generated by CCS compiler to BIN file with HEX2BIN utility then 2. I reconverted the BIN file to HEX file using BIN2HEX utility the new generated HEX file is now compatible with the software of Genius software which can load the configuration bits automaticaly.