The question was not if I can or can't access the string with a normal pointer the question was is there a way to detect if the pointer is a PROGMEM pointer or a RAM pointer after it's stored in a pointer variable.
is there a way to detect if the pointer is a PROGMEM pointer
Well, if the pointer is larger than the highest RAM location, or lower than the start of RAM, you are probably OK assuming that it's a PROGMEM pointer. Since there is only 2K+256 bytes of address space that is "overlapping", that might not be TOO difficult to ensure...
is there a way to detect if the pointer is a PROGMEM pointer
Well, if the pointer is larger than the highest RAM location, or lower than the start of RAM, you are probably OK assuming that it's a PROGMEM pointer. Since there is only 2K+256 bytes of address space that is "overlapping", that might not be TOO difficult to ensure...
Yeah I figured something like that. I'm working on something that would let the program detect a pointer but it involves changing the linker script and some defines around the pointer being used. I'll post an example when I got it working properly.