Unable to control some pins

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
kuanyu99
Offline
Last seen:1 year 4 months ago
Joined:2019-07-03 09:35
Unable to control some pins

Hi PM_Dialog,

I recently have some diffculties during developing the program on the proDK.

In my program, I use theP0_14andP0_15as I2C or GPIO function instead of USB function. But the pins can't generate any signal and even can't read/set the pins to high/low correctly. Even though, I checked and modified the USBPAD_REG[USBPAD_EN] bit, the problem is still exist.

In other hand, I use theP0_09as one of the ADC pin, but I can only get some equal-to-0 voltage value. I have even disable the "CONFIG_RETARGET" to make sure the pin won't be set to Uart.

The methods I used are working correctly in other pins. So I wonder if I missed any configuration or register that I have to set before operating them?

Thank you!

Device:
PM_Dialog
Offline
Last seen:2 days 15 hours ago
Staff
Joined:2018-02-08 11:03
Hi kuanyu99,

Hi kuanyu99,

Let me check it and I will reply you as soon as possible. In the meanwhile, can you please indicate the version of the SDK and the example that you are using? If you could share any other information it would be very helpful.

Thanks, PM_Dialog

kuanyu99
Offline
Last seen:1 year 4 months ago
Joined:2019-07-03 09:35
The SDK version that I am

The SDK version that I am using is SDK_10.0.4.66.2.

And the method I used to test the ADC and I2C are just following the tutorial:

1.DA1469x Tutorial GPADC Adapter Concepts

2.DA1469x Tutorial I2C Adapter Concepts

And modify the tutorial to my custom pins.

PM_Dialog
Offline
Last seen:2 days 15 hours ago
Staff
Joined:2018-02-08 11:03
Hi kuanyu99,

Hi kuanyu99,

让我看看它,我将let you know as soon as possible.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:2 days 15 hours ago
Staff
Joined:2018-02-08 11:03
Hi kuanyu99,

Hi kuanyu99,

Apologies for the late reply. Can you please provide me all the changes you have done in order to replicate your issue? Only the GPIOs you have changed?

Thanks, PM_Dialog