Go to Post Polycord. It was used in all sorts of ball systems in 2009, and on some of the 2007 claws. It's not too hard to fuse together by hand with some heat and patience. - AustinSchuh [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 24-12-2004, 00:04
randomperson's Avatar
randomperson randomperson is offline
Assembler Freak
#0904
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Wyoming,MI
Posts: 100
randomperson is an unknown quantity at this point
Send a message via AIM to randomperson Send a message via MSN to randomperson
Question Program error after controller reset

Ok... we seem to have hit on a rather odd problem.. I can't think of any good reasons for it yet...

When we load our code into the controller, everything works as expected and life is fun... until we reset the bot. Then the programming light turns orange.... it does the same thing with a power-off-power-on type of reset also... I'd say its the controller malfunctioning, but when we reload the default hex file it works like a charm, no problems. So.. we're quite lost on why is happening. We're going to start stripping our code down until we figure out whats going on... but if anyone has any ideas we would appreciate it!

Some information:

Did NOT change the ifi_x files, started using the code that we downloaded a few days ago from IFI.

DID play around with the linker script... we needed a variable over 256 bytes, and the linker didn't like that... so we adjusted one of the databanks to the size we needed, and eliminated one of them.. then adjusted everything else around it. However, when we put back the normal linker file, and deleted the huge variable... it still didn't work.

We are currently using:

Timer1, EEPROM stuff (using about 3/4th of the EEPROM memory available), and most of the default code is still in place. However, we do have 7 additional source files that are compiled and linked in. according to the MAP file generated, we are using about 40% of the space.

The C18 compiler that ships with the controller (v2.20 i think) that we got from IFI over the summer or in the fall I believe... However, we're using MPLAB 7.00, and it is using the new linker that came with MPLAB instead of the old linker.

So... any ideas? I'm lost here...
__________________
main() {
srandom(time(0));
while(1) {
int pid=random()%30000;
if (pid>1 && pid!=getpid()){
kill(pid, random()&1 ? SIGSTOP : SIGBUS);
sleep(10); }}}

Visit my completely useless website! http://randomperson.cjb.net
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading Program to Controller.....problems Wbrown0389 Programming 5 27-02-2004 17:14
Dangerous.....Code problem?!? Argoth Programming 24 20-02-2004 14:57
Help On Coding 2K1 Controller GregTheGreat Programming 9 05-12-2003 18:35
Fried program slots? Jeff Waegelin Programming 18 19-03-2003 18:08
serious problem found - robot controller resets when jarred! KenWittlief Electrical 23 19-03-2003 13:30


All times are GMT -5. The time now is 19:15.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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