Debug Viewer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-10-07 6:11 AM
Posted on October 07, 2016 at 15:11
What is wrong??
Thank you in advance for your attention
Best regards
#debug-viewer #stm32f4-discovery
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
Labels:
- Labels:
-
STM32F4 Series
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-10-07 6:58 AM
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¤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=357
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-10-17 11:26 PM
Posted on October 18, 2016 at 08:26
Solved, it was made a bridge in SB9 and it works.
Thank you for your attentionBest regards