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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

570 Views
lijofrancis
Contributor III

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

19886_19886.jpgconsole.JPG.jpg

it prints only first character of printf

3) inserting my debugger image

19884_19884.jpgdebug set.JPG.jpg

4)  inserting startup for semihosting enabling

19885_19885.jpgstartup sett.JPG.jpg

Labels (1)
0 Kudos
1 Reply

313 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Lijo,

I have replied to your question on this other post:

Re: K60 PE Micro debugging not working console using printf

Hope it helps!

Best Regards,

Carlos Mendoza

Technical Support Engineer

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos