|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
I found tonight that when using Microchip's printf(), and the format string does not end in "\r", then it may cause the green-orange blinking on the program LED on the controller.
Make sure all your calls end their lines correctly. |
|
#2
|
|||
|
|||
|
Re: Warning: Microchip's printf() Picky
Quote:
I was getting a blinky blinky code state light, and I think its because i had /n instead of /r . Did you run into this problem or something similar? |
|
#3
|
||||
|
||||
|
Re: Warning: Microchip's printf() Picky
Quote:
|
|
#4
|
||||||
|
||||||
|
Re: Warning: Microchip's printf() Picky
Quote:
|
|
#5
|
|||||
|
|||||
|
Re: Warning: Microchip's printf() Picky
Also,
make SURE no stray printfs are being calling before Initialize_Serial_Comms() is called. If you do this, your rc will go into red-green led mode every time you reset it. So you'll have to end up downloading your code ALL the time. (I'm assuming ifi-loader will do these initializations for you the time you are downloading code, and as this won't happen later, you get the crash. dunno though.) |
|
#6
|
|||||
|
|||||
|
Re: Warning: Microchip's printf() Picky
Also,
make SURE no stray printfs are being called before Initialize_Serial_Comms() is called. If you do this, your rc will go into red-green led mode every time you reset it. So you'll have to end up downloading your code ALL the time. (I'm assuming ifi-loader will do these initializations for you the time you are downloading code, and as this won't happen later, you get the crash. dunno though, someone wanna check?) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Printf symbol undefined? Help | schenkin | Programming | 3 | 08-02-2005 16:14 |
| printf problem | miketwalker | Programming | 7 | 31-01-2005 13:19 |
| Default Code and printf | WilsonDJ00 | Programming | 2 | 22-01-2005 16:39 |
| Anyone with a replacement Printf? | Larry Barello | Programming | 5 | 19-03-2004 02:20 |
| Printf warning during compile? | actorindp | Programming | 4 | 20-02-2004 17:02 |