This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

pointer assignment



Hello,

I'm trying to use this assignment:

if (ptrHalltoDCPhase120_CMP[ulHall]!=NULL) { ptrDC_Phase_CMP = ptrHalltoDCPhase120_CMP[ulHall] ; }

but I get this error:

error: a value of type "const volatile unsigned long *" cannot be assigned to an entity of type "volatile unsigned long *"

any ideas why this does not work? I'm taking a constant and putting it in a variable...

Thanks,

 Andrea

'