Help with code


Closed Thread
Results 1 to 28 of 28

Thread: Help with code

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    OK, I got another problem now..

    When I compile my code with it doesnt update the .hex file so I cant transfer my new program..

    Whats wrong?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xobx View Post
    OK, I got another problem now..

    When I compile my code with it doesnt update the .hex file so I cant transfer my new program..

    Whats wrong?
    Probably updating the wrong .hex file in the wrong directory...unless it's not fully compiling in the first place (i.e. errors).
    Check the date/time on your file, compare it to the current (last compiled) date/time, then go searching for where you file was saved.
    If you're talking about the programmer itself...you're on your own there...

  3. #3
    Join Date
    Jul 2007
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Hmm, if I take "save as" and save it to another name and then taking compile again..
    I see a new hex file appear with the new name but it still the same as the old code..

    :/

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xobx View Post
    Hmm, if I take "save as" and save it to another name and then taking compile again..
    I see a new hex file appear with the new name but it still the same as the old code..

    :/
    Then you aren't changing the source code...

  5. #5
    Join Date
    Jul 2007
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Thats what im doing..

    Casue this the source code, right?
    http://img529.imageshack.us/img529/6991/coderm3.jpg

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xobx View Post
    Thats what im doing..

    Casue this the source code, right?
    http://img529.imageshack.us/img529/6991/coderm3.jpg
    Yes, but what are you doing to that source code that should cause it to change between compilings?

  7. #7
    Join Date
    Jul 2007
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    What?

    I first made a easy program that only made RB1 "blink" and I compiled it and transfered it over..

    Then I made this code and when I compiled it the hex file still had the old easy program.

    Code:
    @   device  pic16F648A, hs_osc, wdt_on, mclr_on, lvp_off, protect_off
    DEFINE OSC 20
            
    loop:   
    
            high portb.0
            pause 250
            High portb.1
            pause 250
            high portb.2
            pause 250
            low portb.0
            pause 250
            low portb.1
            pause 250
            low portb.2
            pause 250
            goto loop
            
            
            
            end

    So the Problem is: if I change the source code and compile it doesnt update the hex file.

Similar Threads

  1. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 22:55
  2. How much code space do PBP statements use.
    By Darrel Taylor in forum Code Examples
    Replies: 5
    Last Post: - 13th February 2009, 22:31
  3. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  5. Re-Writing IF-THEN-AND-ENDIF code?
    By jessey in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 18th August 2006, 18:23

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