MikroC


Closed Thread
Results 1 to 7 of 7

Thread: MikroC

  1. #1
    Join Date
    Sep 2012
    Posts
    3

    Default MikroC

    Hello, I am a Computer Engineering Student. I am taking the course of embedded Systems. I decided to install the MikroC software, 4.15. I wrote my code and when I import the hex file to the programmer, it gives me this warning "WARNING! No configuration words in hex file. In MPLAB use file/export to save hex with config". What should I do to solve it? I'm hoping for a quick reply for I am somehow short on time! I appreciate any help! thank you!

  2. #2
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: Problem

    Hi,

    You would be much better off asking the same question at www.mikroe.com/forum which is the place for microC. But the short and fast answer would be to upgrade from 4.15 to the newer 5.61. Upgrades are free if you have a licensed copy.

    What kind of programmer do you use could also be of interest when solving the problem.

    /me

  3. #3
    Join Date
    Sep 2012
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Problem

    Thank you, i have fixed a problem, and now my code is being written to the board. However one last problem appeared. I wrote a code that blinks the leds with 0.5 seconds interval. However after running the program and after connecting the leds to the port, the leds do not seem to blink. They light up the whole time? My code is 100% correct. What do uou think the problem is?

  4. #4
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: Problem

    hmm lets see:

    you are trying to use PORTA whithout disabling the analog parts
    you have the wrong osc settings so the leds will flash after 0.5 light years and not seconds and seem to be always on
    you have the wrong osc settings so the leds will flash after 0.5 us and not seconds and seem to be always on
    you have managed to setup the tris registers incorrectly even your code is "correct"

    Your HW is connected in some weird way

    The programmer has managed to write an incorrect hex file to your PIC

    The pic has watchdog activated and is contantly resetting before reaching 0.5 s

    It is really hard to tell without knowing what pic, your schematic and of course the code and configuration bits.

    Anyone else who feel like taking a wild guess??

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,521


    Did you find this post helpful? Yes | No

    Default Re: Problem

    Since the code obviously is 100% correct there must be a hardware issue...

  6. #6
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Re: Problem

    or an old compiler with tons of bugs, hardly the code's problem. It is rare to find a 100% correct not working code :-)

  7. #7
    Join Date
    Sep 2012
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Re: Problem

    Thanks guys. The problem was the pickit. The second i changed, everythkng went went perfectly. Thank you anyways

Similar Threads

  1. PicBasicPro+DT Interrupts vs mikroC PRO for PIC
    By netstranger.nz in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 31st March 2011, 02:18

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts