SaveUserParameters debug output

Discussion to talk about software related topics only.
Post Reply
pete
Posts: 6
Joined: Tue Mar 08, 2011 6:16 pm

SaveUserParameters debug output

Post by pete »

I have an issue with when I call the SaveUserParameters function. Its not an issue with the command itself it works fine But, when I call it I get the saved parameters sent to the debug port. I have no print statements of any kind to send it out the port. I cant remember if I changed something in a system file some where it tells it to print it when ever its called. I think I may have changed it a long time ago and I want to turn it off.

Anyone ever run into this?
User avatar
lgitlitz
Posts: 331
Joined: Wed Apr 23, 2008 11:43 am
Location: San Diego, CA
Contact:

Re: SaveUserParameters debug output

Post by lgitlitz »

The SaveUserParameters function should not print anything to the serial ports. There really isn't much to this function, this should be easy to track down.

First look at SaveUserParameters in system.c:
C:\nburn\system\system.c
If you do not find a print statement in that function look at FlashErase and FlashProgram in bsp.c:
C:\nburn\(your platform)\system\bsp.c

Those are all the functions used, it has to be in one of those three.
pete
Posts: 6
Joined: Tue Mar 08, 2011 6:16 pm

Re: SaveUserParameters debug output

Post by pete »

Thanks for the reply - I only found 1 commented print statement in the system.c under the UpdateConfigRecord
/* iprintf("*******************Updateing config record # %d\r\n",num); */

but nothing under the SaveUserParams. Nothing in the other files either. I turned on some debuging in my code but no statements are glaring at me that would print it, I cant believe I cant find this. Going to look over my code again Thanks
pete
Posts: 6
Joined: Tue Mar 08, 2011 6:16 pm

Re: SaveUserParameters debug output

Post by pete »

Found it , At the top of MydoPost nowhere near my SaveUserParam call - no wonder I couldnt find it.

iprintf( pData );
Post Reply