+ Reply to Thread
Results 1 to 6 of 6

Thread: XMC Crashes when setting GPIO MODE

  1. #1
    Beginner Beginner rperry is on a distinguished road
    Join Date
    Feb 2019
    Posts
    6
    Points
    70

    XMC Crashes when setting GPIO MODE

    Micro controller: XMC 4200 F64x254

    Issue: When Setting PC2 of P2_IOCR0 to General-purpose output ( 0b10000 ), my firmware crashes and the debugger disconnects.

    Even setting the register directly in memory (0x 4802 8110 to 0x 80 0000 ) cause the firmware to crash(debugger disconnects and firmware seems to stop executing without entering an event handler).

    Has anyone come across this issue before?

    Russell P

    EDIT: The register is P1_IOCR0, not P2_IOCR0 . (Port 1 pin 2)
    Last edited by rperry; Jul 10th, 2019 at 11:57 AM. Reason: Register Correction

  2. #2

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

    Do you have connected P2.2 to some external component?

    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
    Beginner Beginner rperry is on a distinguished road
    Join Date
    Feb 2019
    Posts
    6
    Points
    70
    Its connected to the enable pin of a 3.3 Volt IC. We were able to circumvent the issue by connecting a different pin on the XMC 4200 to the enable pin of the IC.

    Russell P

  4. #4
    Beginner Beginner rperry is on a distinguished road
    Join Date
    Feb 2019
    Posts
    6
    Points
    70
    Any update on this ?

  5. #5

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

    There is no problem setting the P1_2 to output mode.
    Click image for larger version

Name:	XMC4200_PORT1.png
Views:	4
Size:	247.4 KB
ID:	4067

    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.

  6. #6
    Beginner Beginner rperry is on a distinguished road
    Join Date
    Feb 2019
    Posts
    6
    Points
    70
    Ran your code, and now things are functioning, which puts me at a loss for whats wrong. Ill continue to investigate. Thanks for your help.

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