|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
printf causes programs to not run
I was trying to setup a printf command in user routines fast, but when i upload it to the robot it gets stuck in program mode,
I used Jifi to upload it, i also use mplab running under wine to compile. |
|
#2
|
||||
|
||||
|
Re: printf causes programs to not run
The fast loop, I believe, can't support the printf function, simply because it is a very fast loop. The printf takes a lot of time (relaying info through your serial) so the print is being called way too fast for it to finish, and causes the program error.
Should be able to fix by calling only by a timer interrupt, or when a loop count is divisible by fifty, (to call every fiftieth loop or something), or maybe use the slow loop? |
|
#3
|
||||
|
||||
|
Re: printf causes programs to not run
Quote:
Quote:
|
|
#4
|
|||
|
|||
|
Re: printf causes programs to not run
how do i post a forum?
|
|
#5
|
|||
|
|||
|
Re: printf causes programs to not run
Do you mean how do you post a reply? Well you just did, obviously. If you mean that you would like to start a new thread, then look for the appropriate topic and look for "start a new thread"
|
|
#6
|
|||
|
|||
|
Re: printf causes programs to not run
i am confused on how to get this to work,
i have to it only is supost to show every 1000000 times the code runs. |
|
#7
|
|||
|
|||
|
Re: printf causes programs to not run
tomorrow i will try using the default prgoram with the controller to see if it work with printf, could the problem be that my computer is not being able to handle the printf when it recieves it back?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Presence of function causes auton to fail??? | Kyveck | Programming | 13 | 16-02-2006 14:48 |
| printf could not find definition | Alex829 | Programming | 7 | 27-06-2005 10:04 |
| printf statements do not display in autonomous mode | PVC Pirates | Programming | 3 | 22-02-2005 15:41 |
| printf isn't printf-ing. Help! | Meandmyself | Programming | 14 | 15-02-2004 16:27 |