AnsweredAssumed Answered

Debug Viewer

Question asked by Mas.Jordi on Oct 7, 2016
Latest reply on Oct 18, 2016 by Mas.Jordi
I have a STM32F429I-DISCO and I want print some message with prinf function. I'm following some tutorials but in Debug Viewer nothing is printed.
I get from the STM32F429I-Discovery/Templates/MDK-ARM from the set source STM32Cube_FW_F4 and I put int he main the next code:
 
int fputc(int ch, FILE *f){
        return ITM_SendChar(ch);
}
/**
  * @brief  Main program
  * @param  None
  * @retval None
  */
int main(void)
{
  /* STM32F4xx HAL library initialization:
       - Configure the Flash prefetch, Flash preread and Buffer caches
       - Systick timer is configured by default as source of time base, but user
             can eventually implement his proper time base source (a general purpose
             timer for example or other time source), keeping in mind that Time base
             duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and
             handled in milliseconds basis.
       - Low Level Initialization
     */
  HAL_Init();
 
 
  /* Configure the System clock to 180 MHz */
  SystemClock_Config();
 
 
 
 
  /* Add your application code here
     */
     
 
 
  /* Infinite loop */
  while (1)
  {
        printf("Hi");
  }
}

and in the Target options > Debug > Settings is

1.JPG
2.JPG

What is wrong??

Thank you in advance for your attention

Best regards

Outcomes