AnsweredAssumed Answered

printf value of control register of ADUCM350

Question asked by gugi on Nov 18, 2015
Latest reply on Nov 24, 2015 by gugi


Can someone help me with printing value of register for example CLKCON1 at address 0x40028004 on the Terminal I/O with semihosting printf.

I try this


int32_t  *p = REG_SYSCLK_CLKCON1;


printf("CLKCON1 is: %X %X \r\n",p, &p);


but I get the following error: Error[Pe144]: a value of type "int" cannot be used to initialize an entity of type "int32_t *" E:\projects\....

I tried different castings but did not help - I get similar error always.


Thank you