Jul 09, 2019
02:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 09, 2019
02:24 PM
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)
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)
- Tags:
- IFX
5 Replies
Jul 10, 2019
03:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 10, 2019
03:13 AM
Hi,
Do you have connected P2.2 to some external component?
Regards,
Jesus
Do you have connected P2.2 to some external component?
Regards,
Jesus
Jul 10, 2019
11:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 10, 2019
11:59 AM
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
Russell P
Jul 23, 2019
05:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 23, 2019
05:57 PM
Any update on this ?
Jul 29, 2019
02:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 29, 2019
02:44 PM
Hi,
There is no problem setting the P1_2 to output mode.

Regards,
Jesus
There is no problem setting the P1_2 to output mode.
Regards,
Jesus
Jul 31, 2019
06:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 31, 2019
06:26 PM
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.