m_t_blind
Newbie level 5
error[pe513]
Hello i have a problem whith pointers in
"IAR C Compiler for MSP430 V2.21B/W32 [Kickstart] (2.21.2.2)":
I have a pointer of type unsigned char.(unsigned char *p)
I try to assign it an address.(p = 0x0192)
(i try p = (unsigned short int)0x0192)
I get the error message :
Error[Pe513]:a value of type "int" cannot be assigned to an entity of type "unsigned char*"
or
Error[Pe513]:a value of type "unsigned short" cannot be assigned to an entity of type "unsigned char*"
The program is compiled for msp430f149
Why ????
Hello i have a problem whith pointers in
"IAR C Compiler for MSP430 V2.21B/W32 [Kickstart] (2.21.2.2)":
I have a pointer of type unsigned char.(unsigned char *p)
I try to assign it an address.(p = 0x0192)
(i try p = (unsigned short int)0x0192)
I get the error message :
Error[Pe513]:a value of type "int" cannot be assigned to an entity of type "unsigned char*"
or
Error[Pe513]:a value of type "unsigned short" cannot be assigned to an entity of type "unsigned char*"
The program is compiled for msp430f149
Why ????