4 posts / 0 new
Last post
meriororen
Offline
Last seen:3 years 6 months ago
加入:2015-08-12 13:45
Can't seem to drive P1_4/P1_5 on newer SDK

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,
然而,它似乎没有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

Keywords:
Device:
meriororen
Offline
Last seen:3 years 6 months ago
加入:2015-08-12 13:45
Also, I am using P0_0/P0_1 as

Also, I am using P0_0/P0_1 as UART2. From this, I can printf log messages from GPIO functions.

meriororen
Offline
Last seen:3 years 6 months ago
加入:2015-08-12 13:45
Never mind. Solved it. Turns

Never mind. Solved it. Turns out that I need to disable DEBUGGER_ENABLE in SYS_CTRL_REG before anything else.

MT_dialog
Offline
Last seen:6 days 4 hours ago
Staff
加入:2015-06-08 11:34
嗨meriororen,

嗨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

Topic locked