IF-THEN what?


Closed Thread
Results 1 to 11 of 11

Thread: IF-THEN what?

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default Re: IF-THEN what?

    How can a reboot make a program running as expected (or not...) ?
    in short - it cant. The compiler is going to produce the same .HEX file no matter what.

    If you had a problem with your PC that caused the compiler to generate a bad .HEX file at compile time, I suspect you would be having a great deal more problems than just compiling a PBP program.

    My guess would be you had something loaded in memory, from an old file, that wasn't being updated by your programmer at program time.

    Re-booting or not re-booting your PC should have zero affect on the compiled .HEX file that PBP produced at compile time.

    For example, you compile a program, then you re-boot your PC. How would re-booting your PC alter your previously compiled .HEX file? If it does - you have major issues with your PC..;o)

    If your device programmer is not reloading the new version .HEX file into memory after each compile, prior to progamming the device, that would be an issue.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: IF-THEN what?

    @Roger: That was my concern, the produced size of the code. I knew that inline AND command needs more code space.

    @Bruce: Well, I never meant or implied that a reboot would alter my .hex file. It just "seems" that after the reboot the compiler produced a correct hex file. I have to say that I use a lot the Sleep or Hibernate state on my Laptop. Maybe there lies the problem.

    The project files are stored in a Dropbox folder and when a new hex is produced I see the blue rolling arrows that show a sync is taking place, so I am pretty sure the files are updated.

    Now all seems fine after a complete reboot. Both codes work the same as expected.

    Ioannis

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