armghan11
Member level 1
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 ?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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?
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..i have a problem with setting configuration bit.... i don't 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"
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).
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. It simple. Its a two step solution.
1. 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
https://www.keil.com/download/docs/7.asp
BIN2HEX
https://www.keil.com/download/docs/113.asp
you can make a batch file to automate these two steps.
This is the hex file compiled by CCS