![]() |
Warning: Microchip's printf() Picky
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. |
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? |
Re: Warning: Microchip's printf() Picky
Quote:
|
Re: Warning: Microchip's printf() Picky
Quote:
|
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.) |
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?) |
| All times are GMT -5. The time now is 08:43. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi