Hi,
I am trying to drive pin 1_4 and 1_5 (defaulted as SWD pins) as GPIO. I could do it on DSPS test project,
however, It doesn't seem to work on newest SDK (5.03). I have checked the P14_MODE_REG and P15_MODE_REG
everytime I do PIO_SetActive/PIO_SetInactive on these pins. Both seem to show correct configuration.
P14_MODE_REG -- *(0x5000302E) showing 0x0300 (as gpio(0b0), output(0b11))
P15_MODE_REG -- *(0x50003030) showing 0x0300 (as gpio(0b0), output(0b11))
However, I cannot see any change on the pin.
I use RCX20 as low power clock if that's relevant.
Is there any different settings regarding GPIO on newer SDK?
Thanks
Device:
Also, I am using P0_0/P0_1 as UART2. From this, I can printf log messages from GPIO functions.
Never mind. Solved it. Turns out that I need to disable DEBUGGER_ENABLE in SYS_CTRL_REG before anything else.
嗨meriororen,
Thanks for indicating, thats right you have to disable the debugger in order to use P1_4 and P1_5 as GPIOs.
Thanks MT_dialog