Hi everybody,

Finally I found where the problem was hidden.
All my *.hex files are generated in a format which has at the end of the file a double 'retlw0'

----------------------
....
:0E01200083161E08A2000800851605120511A0 ;code in hex format
:02012E0000349B ;0034 - retlw 00h
:02013000003499 ;0034 - retlw 00h
:02400E00843FED
:00000001FF
----------------------
As you can see the last 4 lines are -my code
-2lines of retlw 00h :02012E0000349B
- config :02400E00843FED
- end of file :00000001FF
I checked the hex format at "http://www.cs.net/lucid/intel.htm"
I don't know yet all the details but after I deleted the 2 lines of retlw 00 and burn the new code resulted in the PIC, it just worked.

For those who build a code and have a successfully compiled *.hex file with no errors:
-when the code is burned into the PIC and doesn't work maybe this unscientific fix may work.

Mike