> From: Don Kinzer > .... > --- In AVR-Chat@yahoogroups.com, "Chuck Hackett" <egroupscdh@...> wrote: > > I used the __func__ compiler symbol which worked fine, except, > > as far as I can tell WinAVR insists on placing the function > > name in SRAM space as opposed to program space [...] > > Yes, all constant strings are RAM-based unless you specify otherwise. The > PSTR() macro defines a string residing in program space, e.g. > > PSTR(__func__) All I can say is "Dah, why didn't I think of that ..." - sometimes one gets so caught up in the details that one forgets the simple stuff ... > Of course, your code will need to be modified to read the string's characters > from Flash, too. Yup, no problem there ... Thanks again ... Cheers, Chuck Hackett "Good judgment comes from experience, experience comes from bad judgment" 7.5" gauge Union Pacific Northern (4-8-4) 844 http://www.whitetrout.net/Chuck
Message
RE: [AVR-Chat] Re: Function call tracing
2011-01-15 by Chuck Hackett
Attachments
- No local attachments were found for this message.