Hello!
I am debugging on my hardware where F28M36 is placed.
It it possible to have printf calls that will be output in the console window of eclipse 5.1?
I am using xds510 for debugging.
What do I have to do in case it is possible?
Julian
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello!
I am debugging on my hardware where F28M36 is placed.
It it possible to have printf calls that will be output in the console window of eclipse 5.1?
I am using xds510 for debugging.
What do I have to do in case it is possible?
Julian
Hi Julian,
Yes, it is possible. The below wiki articles are a great primer for what you need to do and what you need to look out for when using printf:
http://processors.wiki.ti.com/index.php/Printf_support_in_compiler
http://processors.wiki.ti.com/index.php/Tips_for_using_printf
Thanks
ki
Ki-Soo Lee,
i
1) included stdio.h
2) for the project is set the heap option --heap_size=0x500
3) I added the sections for cio and sysmem
.cio : > FLASHE PAGE = 0
.sysmem : > FLASHE PAGE = 0
4) I still do not see the output.
Julian
Julian Dieterle said:2) for the project is set the heap option --heap_size=0x500
did you also set a stack size greater than 0x400?
Julian Dieterle said:4) I still do not see the output.
Note that you are working with a multicore environment. Make sure you have the proper context for debug and console. Also note that C I/O will use breakpoint resources and if you are debugging in flash, you will need to make sure you have the hardware breakpoints available for C I/O. On 28x, there are only two hardware breakpoints available.
Which CPU are you trying to debug? ARM or DSP?
Thanks
ki
Hi Ki-Soo Lee,
stack size is 0x500.
What do you mean with proper context for debug and console?
I do not understand why I need breakpoints for having printf and putting something to console.
I debug the DSP.
Julian
Julian Dieterle said:What do you mean with proper context for debug and console?
Context is described here: http://processors.wiki.ti.com/index.php/Multi-Core_Debug_with_CCSv5#Debug_Context
Julian Dieterle said:I do not understand why I need breakpoints for having printf and putting something to console.
It is described here: http://processors.wiki.ti.com/index.php/Tips_for_using_printf#Special_Breakpoints
Note the comment:
Note: The downside of allowing the setting of CIO break-points is that when debugging from Flash, it will use one hardware break-point. You may need to move C I/O code to RAM to avoid this issue.
Thanks
ki
Hi Alexandar,
during my last visit last week, You got the output correctly...what has been changed?
would you share the steps for the community?
Thank you for participating in E2E forum.
regards
Ur local FAE
Karim