Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution Banner_AURIX_Security-Solution


infineon4engineers Facebook

infineon@google+ Google+

infineon@linkedin linkedin

infineon4engi@twitter twitter

infineon@youtube youtube

+ Reply to Thread
Results 1 to 2 of 2

Thread: Project working with connected debugger, crashes when USB is disconnected

  1. #1
    New Member New Member joa1101 is on a distinguished road
    Join Date
    Jul 2017
    Posts
    3
    Points
    42.5

    Project working with connected debugger, crashes when USB is disconnected

    Hello

    I am developing a project on Aurix TC297-A step board, under Hightec environment and Gnuc compiler.
    The project has a function of UDP server (lwIP stack ported to ERIKA rtos). The program works correctly while USB cable
    and debugger (universal debug engine - UDE) are connected, but when USB cable is disconnected and the program is
    restarted, it won't work.

    Did anyone have similar issues, and how to handle with this problem?

    Josip

  2. #2
    New Member New Member joa1101 is on a distinguished road
    Join Date
    Jul 2017
    Posts
    3
    Points
    42.5
    By further research, I figured out where the problem is located. The problem is with one of Ethernet reserved registers located in Ifx_Eth_reg.h:

    /** \brief 2018, Register 6 - Operation Mode Register */
    #define ETH_OPERATION_MODE /*lint --e(923)*/ (*(volatile Ifx_ETH_OPERATION_MODE *)0xF001F018u)

    When the USB cable is connected and the program is running, program in one of its parts tries to write a simple "1" to a bit field located in this register
    and it does it successfuly, but when USB cable is disconnected, this bit field can not be accessed for some strange reason and program crashes.
    Is it possible that low level Ethernet drivers including this problematic register are not written correctly for this board? Can I somehow change the used
    register location? Is it possible that USB connection uses this register aswell for some reason?

    Josip

+ Reply to Thread

Tags for this 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.