PSTR()'s in memory > 64K

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

As with switch/case's the printf_P() family doesn't seem to work with PSTR()-strings located in memory above 64K. A lot of 'lpm' instead of 'elpm' in the generated code.

Maby it's the same with the whole '_P' family, haven't tested yet.

Note. This is only an issue when writing bootloaders. I think.

Any known workaround or fiddling with gcc switches?

Regards

/B

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Eric,

No inconvenience, just som fun hours of deep code digging.
And of course some more grey hairs ;-)

/B