Re:Does C30 optimisation break __prog__ pointers?
2012/03/12 19:32:27
(permalink)
You can't use an integer for a pointer; sorry. Take the address of a symbol.
It is never guaranteed in C that a literal value represents a value of a memory location and it almost never does for pointers that are __eds__, __prog__, __psv__, __pmp__ or __external__ since there needs to be alot more information carried in the pointer than an offset from 0.
Regards
Calum