PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

Post your requests and ideas on the future development of mikroC PRO for AVR.
Author
Message
AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#1 Post by AYSER » 30 Oct 2013 11:29

Would you please help me >>>
I'm working with mikroc pro for avr V.3.5.
when i used the (.hex) files that already existed in the example it worked without any problem.
but when i compile the same code in new project, the (.hex) file dose not work.
please help me :( :( I'm losing my mind
thank you so much .......

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#2 Post by marina.petrovic » 31 Oct 2013 11:28

Hi,

Please, can you explain me a little bit more where the problem occurs?

Which example you tried from compiler?
Do you make any changes in the example before compiling?

Best regards,
Marina

AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#3 Post by AYSER » 31 Oct 2013 18:36

Thanks Marina :)
I didn't make any changes in the example (SPI Ethernet).
i just made a copy of the folder and recompile the project then i toke the hex file put it into atmega128 (using proteus 7.8 )
the mcu didn't work.
but when i toke the hex file from the orginal folder that existed in the example folder the mcu run without errors .
there are no changes ever in the code
what can i do??
do i need support program for mikroc pro for avr v.3.5 or what??
thanks a lot for your attention :)

AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#4 Post by AYSER » 31 Oct 2013 18:58

Thanks marina :)
the problem is occurs when recompiling the projects that exist in the example folder
like (SPI Ethernet/Basic Realm).
the hex file that i get after compiling dosn't work correctly
but when i toke the hex file that existed before (orginal) the mcu run without any errors
what can i do ?
do i need any support program to my compiler?
thanks a lot for your attention :)
Attachments
Basic_Realm.zip
this is the hex file after i compiled the same example (SPI Ethernet/Basic Realm)
(15.7 KiB) Downloaded 196 times

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#5 Post by marina.petrovic » 01 Nov 2013 13:01

Hi,

We usually recommend to our users to try their projects on real hardware.
Proteus is not certified development environment for code generated by our compilers.

Also, please, try to update your compiler (Help -> Check for Updates),
last version of compiler, mikroC PRO for AVR is v6.0.1.

Please, check your project settings: Project -> Edit Project.

Did you try to compile the example directly from compiler?
Do you have the same problem with some other example from compiler?

Best regards,
Marina

AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#6 Post by AYSER » 01 Nov 2013 14:07

HI
Thanks Marina :)
i tried the hex file in practical circuit but it dosn't work :(
i'll send the code to you now
would you please compile it for me and send me the hex please :(
then i will try it in my mcu
thanks a lot :)

AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#7 Post by AYSER » 01 Nov 2013 18:06

I'm sorry i forget to tell you that i'm using atmega32 at 8MHz
thanks

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#8 Post by marina.petrovic » 04 Nov 2013 15:39

Hi,

Did you updat your compiler?
Did you have the same problem with last version of compiler?

Please, can you try some other example from compiler, for example simple LedBlinking example?

I attached for you HEX file (Basic_Realm example), so you can try it on your hardware to see whether
you have the same problem.

Best regards,
Marina
Attachments
Basic_Realm.rar
(14.81 KiB) Downloaded 195 times

AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#9 Post by AYSER » 04 Nov 2013 23:25

HI
Thanks Marina
i tried ledblinking example and there is no problem with it.
i didn't update the compiler because i have problem (demo limit) and i don't have money to buy it
why I'm having this problem just with examples in (extra boards folder)
what can i do to solve it.
please help me :(
(the hex you attached ,worked without correctly )
thanks a lot for helping me :)

MaGiK
Posts: 897
Joined: 19 Apr 2013 10:00

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#10 Post by MaGiK » 05 Nov 2013 06:52

AYSER wrote:i didn't update the compiler because i have problem (demo limit) and i don't have money to buy it
You don't need to buy the licence in order to update the compiler. Demo version can be updated too.
Open your compiler, choose help, choose check for updates.
I feel that updating your compiler will do the trick :D

Best Regards
My hobby is collecting MikroElektronika products.
Gotta catch them all!

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#11 Post by marina.petrovic » 05 Nov 2013 10:24

Hi,

Like, MaGiK, already mentioned, you can update your compiler regardless that you have
demo limit version of compiler (Help -> Check for Updates).

Best regards,
Marina

AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#12 Post by AYSER » 05 Nov 2013 15:48

thanks a lot
(the hex you attached ,worked correctly )
and tried the last version v6.0.1 but i had the same problem
could i send you my code so you can compile it for me please because i got tired trying to solve this problem
thank you very much you are great
please Marina do it for me :(
i attached the code
Attachments
ayser SPI_ETHERNET.zip
(108.41 KiB) Downloaded 183 times

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#13 Post by marina.petrovic » 06 Nov 2013 10:16

Hi,

Please, try the HEX file from attachment to try to conclude where the problem occurs?

Just to be sure, check the project settings in your project (Project -> Edit Project).

Best regards,
Marina
Attachments
ayser SPI_ETHERNET.rar
(16.54 KiB) Downloaded 187 times

AYSER
Posts: 11
Joined: 20 Sep 2013 00:04

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#14 Post by AYSER » 08 Nov 2013 20:04

HI
thanks Marina for helping.
I'm going to try another version of mikroc because there is no problem in my project sitting .
the hex file you have sent to me worked correctly
so i wrote my final code and attached it.
would you please compile it for me until i fix my problem.
i really APPRECIATE that.
Attachments
ayser SPI_ETHERNET.zip
(135.56 KiB) Downloaded 200 times

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: PROBLEM WITH COMPILER (MIKROC PRO FOR AVR)

#15 Post by marina.petrovic » 12 Nov 2013 13:45

Hi,

If I understand you properly, you manage to update your compiler and
you have the same problem with the compiler version 6.0.1?

Did you get some error message when you try to compile your project?

Best regards,
Marina

Post Reply

Return to “mikroC PRO for AVR Wish List”