Ravi Gautam

Getting value from a Pmem location

Discussion created by Ravi Gautam on Jun 23, 2008
Latest reply on Jun 24, 2008 by Pascal Irrle
Greetings people!
Question: How do I see what is in pmem location P:0xABCD?

I tried doing:
unsigned int ucMfrFileLen = *(__pmem unsigned int *)0xABCD;
but it doesnt compile. Im using  the CodeWarriro DSP C Compiler.
It should be something pretty simple but im just a beginner n pretty lost.
Thanks for your help guys!
I can do it the long way but was wondering if you had a better way:
 __pmem unsigned int * pCode;
unsigned int ucMfrTail;
 pCode = (__pmem unsigned int *)CVECT_PGM_TAIL;
 ucMfrTail = *pCode;

Message Edited by NeedHelp on 2008-06-23 09:27 PM