Back to the beginning


Closed Thread
Results 1 to 40 of 49

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Just to try something, I was playing with a working example.

    By changing the values written to Port B I would have expected the LED pattern to change. It didn't is stayed exactly the same.

    Even when I removed all the calls to write to all the ports they kept on flashing as per the original program.

    Do I have to delete the old .hex file and then recompile? I would have expected a recompile to overwrite a previous version ?

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    You really should bring this up on a forum that supports your programmer.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Hi, Andy

    playing it simple ...

    I 'm working for years with an Easypic 5 ... Ok ???


    1) you need to have the " Mikroprog suite for pic " and its drivers ( on your EasyPic CD or Here http://www.mikroe.com/easypic/programming/ ) installed.

    2) connect your Easypic with the USB cable to your computer. power ON

    3) open the mikroprog suite and @ first choose processor family and processor reference
    Then hit : File/Load Hex in the upper left menu ... and browse for the PbP Hex generated file you want to program.

    it's Here for me : C:\Documents and Settings\Alain\MCS_Prog ... Yes, Alain is my name !

    4) Hit the " code" Button to show your Hex in the appearing window ...

    5) Hit the " WRITE" button just under the processor reference ...

    it runs ...

    Alain

    Edit ...

    AND ...YES ... Easypic can be directly driven from MCS ...
    just browse this forum to find the " How to " ...
    Last edited by Acetronics2; - 6th April 2013 at 15:51.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Andy,
    Are you sure that you're actually ARE reprogramming the chip? It doesn't sound like you are to me.
    Of course you MUST recompile the program and of course you MUST reprogram the chip - how else would it work? When you recompile the .hex file on disc will be replaces with the newly compiled (no need to delete it) but the one in the chip will of course only be replaced when you reprogram the chip. The above is how PBP and MicroCodeStudio does it. If you're actually working with the MikroE examples and their compiler then I don't know and you'll be better off asking the question on the MikroE forum.

    Normally the programmer automatically erases the chip before programming but I'm sure there are settings for that in the programmer software.
    If you load a .hex file into your programmer software you can use the VERIFY function in the software to compare that .hex file to the one currently in the chip. If they are not the same then you haven't reprogrammed the chip properly.

    Robert,
    Come on, give the guy a break will you, he's new at this and apparently struggling quite a bit (more than anyone in a long time for some reason).

    /Henrik.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Addendum due to the Timeout for editing...

    Programmer file : Microprog suite for Pic.exe

    Location : " C:\program Files\Mikroelektronika\Microprog suite for Pic

    Parameter line : -pPIC$target-device$ -f$hex-filename$ -e -w

    " tested and verified " ... no need to enter family and device ref then ...
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Addendum due to the Timeout for editing...

    Programmer file : Microprog suite for Pic.exe

    Location : " C:\program Files\Mikroelektronika\Microprog suite for Pic

    Parameter line : -pPIC$target-device$ -f$hex-filename$ -e -w

    " tested and verified " ... no need to enter family and device ref then ...


    Sorry but that might as well be in Japanese to me.

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,170


    Did you find this post helpful? Yes | No

    Default Re: Back to the beginning

    Quote Originally Posted by Demon
    ... You really should bring this up on a forum that supports your programmer.
    vs

    Quote Originally Posted by HenrikOlsson View Post
    ... If you're actually working with the MikroE examples and their compiler then I don't know and you'll be better off asking the question on the MikroE forum.
    ...
    Robert,
    Come on, give the guy a break will you, he's new at this and apparently struggling quite a bit (more than anyone in a long time for some reason).

    /Henrik.
    Didn't I say the same thing? lol

    All he needs is to get one example working right on whatever chip he decides to use. He's got at least 2 to work with now, so it's down to hardware connection/setup, or programmer software.

    Robert

Similar Threads

  1. Beginning USB How to/Whats needed to use it.
    By wdmagic in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 11th April 2013, 21:11
  2. Missing chars at beginning of LCD display
    By jimbostlawrence in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 20th November 2009, 00:13
  3. 12F629 beginning
    By Davidpower in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 1st October 2007, 22:37
  4. Program returns to beginning at interupt
    By BGreen in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 25th April 2005, 11:20

Members who have read this thread : 0

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