Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Problem running compiled code (http://www.chiefdelphi.com/forums/showthread.php?t=33218)

jskene 22-01-2005 08:32

Problem running compiled code
 
When we make any change to the default source code, compile it, and upload it to the robot, it will not run. The robot controller just hangs, with lights flickering on and off. The upload seems to go properly, with the correct acknowledgement messages etc.

When we upload the unmodified default code, everything works properly (except that the robot complains that it cannot find the camera), so the connection between the computer and robot works just fine.

We are using the latest version of the C18 compiler.

Any ideas?

Joe Ross 22-01-2005 10:07

Re: Problem running compiled code
 
It's really hard to know what "any" change is. Can you give examples?

jskene 22-01-2005 11:38

Re: Problem running compiled code
 
... adding a comma to a comment line causes this problem.

It would appear that the compiler is not producing operable code, even though it gives no error messages.

steven114 22-01-2005 13:34

Re: Problem running compiled code
 
I was actually having the same trouble, except that I assumed that the problem was because I was using WINE under Linux. Maybe it's not WINE's fault...

Has anyone gotten the new 2.4 compiler to work?

jskene: Could you post a md5sum of the .hex file that the linker produces without any changes to the code? I want to see if we get the same output...

Mark McLeod 22-01-2005 16:33

Re: Problem running compiled code
 
Most problems of this sort that I've run into have been due to installation mistakes, diverging from the installation defaults, or reordering/relocating folders. For instance, the MPLAB toolsuite setup.

devicenull 22-01-2005 19:56

Re: Problem running compiled code
 
Quote:

Originally Posted by steven114
I was actually having the same trouble, except that I assumed that the problem was because I was using WINE under Linux. Maybe it's not WINE's fault...

Has anyone gotten the new 2.4 compiler to work?

jskene: Could you post a md5sum of the .hex file that the linker produces without any changes to the code? I want to see if we get the same output...

Yes, I have the new compiler working 100% correctly.

(O:\Source\FIRST\FrcCode2005v2.4) md5sum FrcCode.hex
9d4c589d007f4f1df0cd8ca0eb634269 *FrcCode.hex

Ralph Lambert 22-01-2005 21:29

Re: Problem running compiled code
 
We are having exactly the same problem as jskene.

Alan Anderson 22-01-2005 21:37

Re: Problem running compiled code
 
Quote:

Originally Posted by jskene
It would appear that the compiler is not producing operable code, even though it gives no error messages.

Double-check to make sure you've selected the correct target device. If you're accidentally compiling the code for something other than a PIC18F8520, it won't run on the RC.

JamesBrown 22-01-2005 21:38

Re: Problem running compiled code
 
I had a problem on my home computer, however I re downloaded and installed the compiler at our office where we do or work and it compiles downloads and runs fine I would say do a full un install and then start over, It can't hurt to try

agentfat2004 23-01-2005 21:11

Re: Problem running compiled code
 
I have the same problem with my controller.
Simple as declaring a variable messes with the controller. Writing a code works until the controller is reset or powered off. Then the program state gets messed up

steven114 23-01-2005 21:13

Re: Problem running compiled code
 
Hmm. Apparently it only happens on the EDU controller for me. The full-sized one works great.


All times are GMT -5. The time now is 02:47.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi