|
View:
New views
11 Messages
—
Rating Filter:
Alert me
|
|
|
fprintf in PIC32I can't find any information on output redirection on the PIC32. On the
PIC24, I declared a FILE pointer, then did an FOPEN of it, and revised the character output routines to watch which handle was passed. Is there some documentation on this for the PIC32? The Microchip PIC32 Forum is returning a Microsoft 404 file not found page... Thanks! Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC32Forum is working nice:
http://www.microchip.com/forums/tt.aspx?forumid=202 2009/10/27 Harold Hallikainen <harold@...> > I can't find any information on output redirection on the PIC32. On the > PIC24, I declared a FILE pointer, then did an FOPEN of it, and revised the > character output routines to watch which handle was passed. Is there some > documentation on this for the PIC32? The Microchip PIC32 Forum is > returning a Microsoft 404 file not found page... > > Thanks! > > Harold > > > > -- > FCC Rules Updated Daily at http://www.hallikainen.com - Advertising > opportunities available! > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC32> Forum is working nice: > http://www.microchip.com/forums/tt.aspx?forumid=202 Thanks! It's a lot better than yesterday, but still occasionally comes up with a "We're sorry page." Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC32> >> Forum is working nice: >> http://www.microchip.com/forums/tt.aspx?forumid=202 > > Thanks! It's a lot better than yesterday, but still occasionally comes up > with a "We're sorry page." > > Harold > I'm continuing to have problems with http://www.microchip.com . A fair amount of the time, the PIC32 forum will not show up. Now, for the main page, I get "Internal Server Error - Read The server encountered an internal error or misconfiguration and was unable to complete your request. Reference #3.cf380e08.1256773288.0 " Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC32Harold Hallikainen wrote:
>>> Forum is working nice: >>> http://www.microchip.com/forums/tt.aspx?forumid=202 >> >> Thanks! It's a lot better than yesterday, but still occasionally comes up >> with a "We're sorry page." > > I'm continuing to have problems with http://www.microchip.com . A fair > amount of the time, the PIC32 forum will not show up. Now, for the main > page, I get "Internal Server Error - Read > The server encountered an internal error or misconfiguration and was > unable to complete your request. > > Reference #3.cf380e08.1256773288.0 " That link above works for me. Maybe you have a cookie in your browser that the forum software can't digest? Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC32> Harold Hallikainen wrote: > >>>> Forum is working nice: >>>> http://www.microchip.com/forums/tt.aspx?forumid=202 >>> >>> Thanks! It's a lot better than yesterday, but still occasionally comes >>> up >>> with a "We're sorry page." >> >> I'm continuing to have problems with http://www.microchip.com . A fair >> amount of the time, the PIC32 forum will not show up. Now, for the main >> page, I get "Internal Server Error - Read >> The server encountered an internal error or misconfiguration and was >> unable to complete your request. >> >> Reference #3.cf380e08.1256773288.0 " > > That link above works for me. Maybe you have a cookie in your browser > that the forum software can't digest? > > Gerhard Thanks! Just tried it from my home laptop, which dumps all cookies when the browser shuts down. I get this error page: http://www.microchip.com/error.html?aspxerrorpath=/forums/tt.aspx . Back to the original question, though... Does anyone know about fprintf stream definition for C32? THANKS! Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC322009/10/29 Harold Hallikainen <harold@...>:
> Back to the original question, though... Does anyone know about fprintf > stream definition for C32? Try this FAQ: http://www.microchip.com/forums/tm.aspx?m=406660 Well I am having problem too with Microchip website. Sometime the link worked, sometime it didn't. However I found that if you know the link to a message, you can still access it, at least for my case. See if the link works for you. Best regards, -- WH Tan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC32> 2009/10/29 Harold Hallikainen <harold@...>: > >> Back to the original question, though... Does anyone know about fprintf >> stream definition for C32? > > Try this FAQ: > http://www.microchip.com/forums/tm.aspx?m=406660 > > Well I am having problem too with Microchip website. Sometime the > link worked, sometime it didn't. However I found that if you know the > link to a message, you can still access it, at least for my case. See > if the link works for you. > > Best regards, > > -- > WH Tan Thanks! I see redirecting printf in the FAQ, but not fprintf. Use of fprintf with fopen is nice since I can define all my output devices ahead of time then just send to the appropriate device instead of having to redirect stdout all the time. Though the library documentation includes fopen and fprintf, I see nothing on creating additional output streams (like I did for the 24H). The Microchip website seems to be having problems this week. Sometimes it times out. Sometimes it returns a maintenance page. Sometimes, especially in forums, it returns a 404 error page. I was able to see if anyone had answered my post (they had not) by doing an author search. The link in to PIC32 general topics had returned the 404 page. I assume they'll get that worked out soon... Thanks! Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC32Harold Hallikainen wrote:
>> 2009/10/29 Harold Hallikainen <harold@...>: >> >>> Back to the original question, though... Does anyone know about >>> fprintf stream definition for C32? >> >> Try this FAQ: >> http://www.microchip.com/forums/tm.aspx?m=406660 >> > Thanks! I see redirecting printf in the FAQ, but not fprintf. Use of > fprintf with fopen is nice since I can define all my output devices > ahead of time then just send to the appropriate device instead of > having to redirect stdout all the time. Though the library > documentation includes fopen and fprintf, I see nothing on creating > additional output streams (like I did for the 24H). I'm not sure what exactly you want to do, or what your question is, but you can override every C library function with your own version. Just link it in, and the linker won't use the code from the library. (That's one of the advantages of a library-based implementation, as opposed to a compiler-based implementation, if you remember this discussion a while ago :) However, you need to provide every function that's needed and that's in one library source file. (Link modules are normally file-based.) That is, if you want to substitute C library functions, you need to substitute all functions that are in one C library source file. Which typically are not many. This works if the C compiler is ANSI C. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC32I got the same behavior on the forum site that you were getting. I did find
that some parts worked, and some parts didn't, and sometimes I could hit a higher level page and then drill back down to the PIC32 section. I created a few extra bookmarks to help do that quickly, but sometimes that page just wasn't there. In that case I would just come back in half an hour and hope to hit a random "up" period. Microchip's site software is among the strangest and poorest performers, so I'm used to it acting up. Certainly not the sort of thing Embedded folks would write :) It seems to have settled down now, and there is an answer (with code) posted to your question. If you still can't get it, I suppose we could paste a copy up here. http://www.microchip.com/forums/tm.aspx?m=455000# Barry -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
|
|
Re: fprintf in PIC32> I got the same behavior on the forum site that you were getting. I did > find > that some parts worked, and some parts didn't, and sometimes I could hit a > higher level page and then drill back down to the PIC32 section. I > created > a few extra bookmarks to help do that quickly, but sometimes that page > just > wasn't there. In that case I would just come back in half an hour and > hope > to hit a random "up" period. Microchip's site software is among the > strangest and poorest performers, so I'm used to it acting up. Certainly > not the sort of thing Embedded folks would write :) > > It seems to have settled down now, and there is an answer (with code) > posted > to your question. If you still can't get it, I suppose we could paste a > copy up here. > > http://www.microchip.com/forums/tm.aspx?m=455000# > > Barry > -- Thanks! I'm working through the code right now. Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist |
| Free embeddable forum powered by Nabble | Forum Help |