Is the compiler not working properly? Strange .hex file

Discussion on projects that are created by users and posted on mikroElektronika website.
Post Reply
Author
Message
mrk89
Posts: 19
Joined: 10 Jan 2015 01:05

Is the compiler not working properly? Strange .hex file

#1 Post by mrk89 » 26 May 2015 08:32

Hi all, I've downloaded a project from LibStock of an HID keyboard.
I'm using uC PRO 6.0.0 as compiler with PICkit 2 and nothing is working... :(
The project (zip file) I've downloaded has already a .hex file ready to be wrote on PIC.
When I try to modify the project (only the clock frequency), the file .hex generated is very different from the original.
The original is 19kb and the file generated is 1 kb only.
When I try to generate a new file .hex with the "long file" option selected, the file size is almost the same as the original, but if I try to open them they are very different in form.

The original is like that:

:04000000C1EF0AF052
:1000080000C01EF001C01DF002C01CF003C01BF0B0
:1000180004C01AF005C019F008C018F009C017F09C
:100028000AC016F00BC015F0E1CF27F0E2CF28F098
:10003800E9CF25F0EACF26F0F3CF23F0F4CF24F070
:10004800F5CF22F0F8CF1FF0F7CF20F0F6CF21F050
:10005800B0EC09F022C0F5FF1FC0F8FF20C0F7FF81
:1000680021C0F6FF23C0F3FF24C0F4FF1EC000F038
:100078001DC001F01CC002F01BC003F01AC004F040
:1000880019C005F018C008F017C009F016C00AF02A
:1000980015C00BF025C0E9FF26C0EAFF27C0E1FF25
:0600A80028C0E2FF110078..............ecc

And the file generated from me:

:100000004DEF0CF0FFFFFFFFFFFFFFFFFFFFFFFFC4
:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0
:10002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
:10003000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD0
:10004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0
:10005000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFB0
:10006000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0
:10007000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF90
:10008000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF80
:10009000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF70
:1000A000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF60
:1000B000FFFFFFFFFFFFF......ecc

When I build the project I get this messages, are they errors and eventually how to solve them?

- Specified search path does not exist: 'C:\Users\Marco\Downloads\USB HID Devices\446_mikroc_pro_hid_keyboard_v1.0.0.0\446_mikroc_pro_hid_keyboard_v1.0.0.0\1374437530_mikroc_pro_hid_k_mikroc_pic\MikroC_PRO_Keyboard'
- Specified search path does not exist: 'C:\Program Files\Mikroelektronika\mikroC PRO for PIC\Defs'
- Specified search path does not exist: 'C:\Program Files\Mikroelektronika\mikroC PRO for PIC\uses\P18'
- Specified search path does not exist: 'C:\Documents and Settings\Emil Enchev\Desktop\NLO\MikroC_PRO_Keyboard'

Thanks in advance

jayanthd
Posts: 630
Joined: 08 May 2013 18:31
Location: Bangalore

Re: Is the compiler not working properly? Strange .hex file

#2 Post by jayanthd » 26 May 2015 16:20

Do you have a proper license for the Compiler ? If not and if you are using cracked version of Compiler then Compiler is generating wrong .hex file.
[HW:] EasyPIC v7, mikroProg PIC, AVR, STM32, PSoC, Tiva, 8051
[SW:] mikroC PRO PIC, dsPIC, PIC32, AVR, ARM, 8051
mikroBasic PRO PIC, dsPIC, PIC32, AVR, ARM, 8051
mikroPascal PRO PIC, dsPIC, PIC32, AVR, ARM, 8051
Visual GLCD, Visual TFT

User avatar
petar.timotijevic
mikroElektronika team
Posts: 1739
Joined: 19 Feb 2014 13:46
Location: Serbia
Contact:

Re: Is the compiler not working properly? Strange .hex file

#3 Post by petar.timotijevic » 28 May 2015 08:48

Hi,

@mrk89

Please update compiler to the latest version. Also please check that compiler license is properly installed.


Best regards,
Peter

Post Reply

Return to “User Projects”