View Single Post
  #4   Spotlight this post!  
Unread 14-12-2007, 17:26
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Printf's cause code violation

Quote:
Originally Posted by K.Porter View Post
Whenever there is a printf statement in code the code violation light blinks slowly. It happens regardless of what variable types I'm printing, or even if its just text. Has anyone else had this problem?

This is on the 2006 controller using MPLAB + IFI Loader.
I have the proper serial port selected in IFI Loader, and Baud rate is 115200. Error occurs regardless of where the printf is.
If you're using my serial port code, a sure fire way to get the red-light-of-death when you send data is to not properly configure the interrupt service routine in user_routines_fast.c.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org