infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 3 of 3

Thread: printf in DAVE4.4.2

  1. #1
    New Member New Member jkavathia is on a distinguished road
    Join Date
    May 2018
    Posts
    8
    Points
    52.5

    printf in DAVE4.4.2

    Hello Guys,
    I am currently using Dave 4.4.2. and working with XMC4500 hexagon kit. I have browsed many threads regarding using SWO console
    for printing debug messages.I have read and tried everything related to turning on the print functionality. But unfortunately, nothing
    seems to work out.

    Is anybody else facing the same problem? If not, then could anybody guide me on how to configure it correclty ?
    I really beg for some help.

  2. #2

    Infineon Employee
    Infineon Employee
    jferreira will become famous soon enough
    Join Date
    Oct 2012
    Posts
    402
    Hi,

    See attached project.
    Follow these instructions:
    1. Define XMC_DEBUG_ENABLE (which uses printf)
    Click image for larger version

Name:	Define_XMC_DEBUG_ENABLE.png
Views:	12
Size:	45.1 KB
ID:	3524
    2. Linker options, enable semihosting by adding --specs=rdimon.specs in Other flags text entry
    Click image for larger version

Name:	enable_semihosting.png
Views:	16
Size:	45.7 KB
ID:	3525
    3. In the debugger configuration, enable semihosting and click on GDB client
    Click image for larger version

Name:	enable_semihosting2.png
Views:	11
Size:	46.0 KB
ID:	3526
    4. After the debugger is launched, switch to the Semihosting and SSW view
    Click image for larger version

Name:	enable_semihosting3.png
Views:	9
Size:	28.0 KB
ID:	3527

    Regards,
    Jesus
    ?????
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    New Member New Member jkavathia is on a distinguished road
    Join Date
    May 2018
    Posts
    8
    Points
    52.5
    Thanks jferreira,

    its working now.

+ Reply to Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.