+ Reply to Thread
Results 1 to 6 of 6

Thread: Is the XMC_DEBUG print mechanism turning off interrupts and blocking other code?

  1. #1
    Beginner Beginner gWeinreb is on a distinguished road
    Join Date
    Dec 2020
    Posts
    12
    Points
    115

    Is the XMC_DEBUG print mechanism turning off interrupts and blocking other code?

    We have an XMC4200 project that prints via XMC_DEBUG, and we see on the oscilloscope that each print takes ~10mSec.

    Also, it seems our CANbus receive interrupt is blocked during this 10mSec. If we get more than one CANbus message during the print time, it seems like it is missed.

    We tried setting the CANbus receive interrupt priority to 5 (low), yet that did not help.

    Is XMC_DEBUG() print wrapped in a critical section? Any thoughts on what to do about this?

    If anyone wants details on how we implement XMC_DEBUG, please see the following PDF file and search for the word "print".

    http://www.ma2life.org/doc/research/...ment_Guide.pdf

    If anyone wants to see our project, which is free and open (anyone can copy any parts of this for free), they can download from here:

    www.ma2life.org/doc/src/BB.zip

  2. #2
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    KSudheesh is on a distinguished road
    Join Date
    Nov 2020
    Posts
    33
    Points
    700
    Hello,

    Are you using semihosting feature to print log messages? Using simihosting to print log messages may cause CPU to miss interrupts.
    Can you try using UART messages to print log messages instead of semihosting and see if you are observing the same issue?

    Thanks and Regards,
    Sudheesh
    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
    Beginner Beginner gWeinreb is on a distinguished road
    Join Date
    Dec 2020
    Posts
    12
    Points
    115
    i am not sure how to use uart to print messages. where is there documentation on that? I am using semi-hosting. i think semihosting printing is using critical section and turning off interrupts.

  4. #4
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    KSudheesh is on a distinguished road
    Join Date
    Nov 2020
    Posts
    33
    Points
    700
    Hello,

    Please refer our example projects "UART_EXAMPLE_XMC45" and "UART_XMC_Lib_XMC12" available from the following link for more details about using UART to print debug messages.
    https://www.infineon.com/cms/en/prod...downloads.html

    Thanks and Regards,
    Sudheesh
    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.

  5. #5
    Beginner Beginner gWeinreb is on a distinguished road
    Join Date
    Dec 2020
    Posts
    12
    Points
    115
    K Sudheesh,

    Can you get us several free samples of XMC4200F64 IC? There are none at distributors and we want to build prototypes . We need 5 parts.

    g

  6. #6
    Advanced Advanced
    Infineon Employee
    Infineon Employee
    KSudheesh is on a distinguished road
    Join Date
    Nov 2020
    Posts
    33
    Points
    700
    Hello,

    You can contact your local Infineon sales team in your region for samples.
    You can find Infineon distribution partners for your region from following link: https://www.infineon.com/cms/en/product/where-to-buy/

    Thanks and Regards,
    Sudheesh
    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.

+ 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.