Go to Post Success to me is a feeling that is associated with achieving something you truly worked hard for; something that you can look at and say "That's my best work." - OneAngryDaisy [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2005, 23:47
Addy's Avatar
Addy Addy is offline
Registered User
FRC #0097
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Toronto (now in Boston for college)
Posts: 5
Addy is an unknown quantity at this point
Problems in simulator mode

I am very new to programming, so I may be missing something stupid...
We added a simple bit of autonomous code into user_routines_fast.c, and wanted to see what was happening to the values of our variables without actually putting into the RC (as we can't really get to the robot as often as we'd like - still being worked on quite a bit! ), so we used the simulator mode explained in section 6.5 of the 2004 Programming Reference Guide (from IFI). We followed all the steps, built it, then ran it, and got this in the Output window (under the MPLAB SIM tab):
Six lines of "UART-W0006: Receive file has no data or failed to attach when UART receive mode enabled."
Then one line of "CORE-E0001: Stack overflow error occurred at 0x004836"

What does this mean we are doing wrong? (and how can we fix it?)

Thanks a lot!

Addy.
  #2   Spotlight this post!  
Unread 01-02-2005, 12:29
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Problems in simulator mode

It looks like you are running the Default Code v2.4, so you should have seen:
Code:
UART-W0006: Receive file has no data or failed to attach when UART receive mode Enabled.
UART-W0006: Receive file has no data or failed to attach when UART receive mode Enabled.
The most likely culprit is a missing _SIMULATOR compiler flag.
Double check in MPLAB
Project -> Build Options... -> Project
The MPLAB C18 tab.
_SIMULATOR should be listed under Macro Definitions

If it isn't, make sure the "Use Alternate Settings" box at the bottom is NOT clicked, then add the compiler flag by clicking on "Add..." by the Macro Definitions box and typing _SIMULATOR in the pop-up that appears.

Re-build everything, then try running the debugger again.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 01-02-2005, 12:36
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Problems in simulator mode

After you are through simulating, turn the flag OFF and recompile (build all) before you program your robot.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Closed Thread


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
PC problems. . . opnickc IT / Communications 5 12-01-2005 16:53
Do you all have problems with.... Munkaboo Website Design/Showcase 19 03-03-2003 19:51
Joystick problems archiver 2001 3 24-06-2002 02:40
Radio problems -- not archiver 2000 1 23-06-2002 22:23


All times are GMT -5. The time now is 03:05.

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