2020-08-31 06:48 PM
2020-09-01 12:29 AM
Hi @DRAME.1
Please have a look to AN4989 STM32 Debug Toolbox chapter 7 Printf Debugging
Hope it help
Olivier
2020-09-01 12:59 AM
What is "console" here? What's your hardware?
JW
2020-09-01 03:57 PM
Hi Oliver
Thanks for your response I have done the following settings.
I am trying to add the code below in the main file ,But i see that its giving an error
.\Objects\esfree_deepak_abhi.axf: Error: L6218E: Undefined symbol ITM_SendChar (referred from main.o).
I am not sure How to include this call Please let me know what files/library i have to enable to get this working
What are the other files to enable to get this working Screen shot shows the module enabled in my project
#include "stdio.h"
int fputc(int ch, FILE *f)
{
ITM_SendChar(ch);
return(ch);
}
2020-09-01 04:15 PM
Usually pulled in via stm32f4xx.h (compiler command line define for CPU STM32F401xE)
STM32Cube_FW_F4_V1.25.0\Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f401xe.h
STM32Cube_FW_F4_V1.25.0\Drivers\CMSIS\Core\Include\core_cm4.h
2020-09-01 04:16 PM
Dupe https://community.st.com/s/question/0D53W00000GX0QPSA1
2020-09-01 04:33 PM - edited 2023-11-20 09:28 AM
Hi Clive
Thanks for your swift reply!
we resolved the error related to compilation adding headers
we see that there is no printf coming on the serial window I have attached the screen shot where we see the function getting called but no print appears in serail window
Kindly help us we are in final stage to get the output prints
2020-09-01 05:30 PM
Guessing you have the NUCLEO-F401RE
The Core Speed needs to accurately reflect how you have the chip running.
2020-09-01 05:35 PM
Hi Clive,
Yes the hardware is stm NUCLEOF401RE board. and the core clock speed is 10.000000 Mhz , whats the maximum core clock frequency we can set and whether its safe to change the core clock frequency from the tool and flash the code , hope that doesn't trouble the functioning of the board.
2020-09-01 05:42 PM
The part typically runs at 84 MHz if the PLL is set up, if you don't program the clock it will be at 16 MHz via HSI clock
You're using Port 0, so those need checked. Other functionality does not