cancel
Showing results for 
Search instead for 
Did you mean: 

Debug Viewer

Nickjmas
Associate III
Posted on October 07, 2016 at 15:11

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 0690X00000603NbQAI.jpg 0690X00000603NgQAI.jpg What is wrong?? Thank you in advance for your attention Best regards #debug-viewer #stm32f4-discovery
2 REPLIES 2
Posted on October 07, 2016 at 15:58

Is the solder bridge SB9 made?

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/Getting%20printf%20on%20STM32F407%20Discovery%20board&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&currentviews=357]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Discovery%2FGetting%20printf%20on%20STM32F407%20Discovery%20board&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=357

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/setup%20SWV%20on%20STM32F429_Discovery%20board&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&currentvie...

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Nickjmas
Associate III
Posted on October 18, 2016 at 08:26

Solved, it was made a bridge in SB9 and it works.

Thank you for your attention

Best regards