2016-10-07 06:11 AM
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
What is wrong??
Thank you in advance for your attention
Best regards
#debug-viewer #stm32f4-discovery
2016-10-07 06:58 AM
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¤tviews=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=3572016-10-17 11:26 PM
Solved, it was made a bridge in SB9 and it works.
Thank you for your attentionBest regards