AnsweredAssumed Answered

On board osjtag(pemicro) with KDS and tower board TWR k60f120m semihosting console prints one character

Question asked by Lijo Francis on Feb 16, 2015
Latest reply on Feb 17, 2015 by Carlos_Mendoza

Dear sir

For debugging i am using printf function .i have problem when it printing it prints only one character.

please answer me urgently . i am using TWR k60f120m tower board with on board osjtag with kinetic design studio

my code some portion

 

1) now i write my code

printf("ad7193 is ok\n\r\n\r");

      else

      printf("ad7193 is not ok");

  for(;;) {

  //Block(0xffff);

  ad7193_setreg(AD7193_REG_MODE,0x090D56,3);

  Block(0xffff);

  value=ad7193_getreg(AD7193_REG_MODE,3);

  printf(print,value);

  Block(0xfffff);

  value=ad7193_getreg(AD7193_REG_CONF,3);

  printf("config reg\n\r %x\n\r",value);

  value=ad7193_getreg(AD7193_REG_ID,1);

  printf("Id reg\n\r %x\n\r",value);

  value=ad7193_getreg(AD7193_REG_STAT ,1);

  printf("stat reg\n\r %x\n\r",value);

  Block(1000000);

2) ouput of console port

console.JPG.jpg

it prints only first character of printf

3) inserting my debugger image

debug set.JPG.jpg

4)  inserting startup for semihosting enabling

startup sett.JPG.jpg

Outcomes