gpioset recover failed based on SDK BSP39 on RDB2

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gpioset recover failed based on SDK BSP39 on RDB2

873 Views
hittzt
Senior Contributor I

Hi,

 

I recently tested gpio APIs, and found that when try to set back the value of one gpiochip using gpioset, but failed. The whole log is attached.

 

Would you please help to confirm the issue?

 

Thanks,

Zhantao

0 Kudos
Reply
3 Replies

799 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @hittzt

Thanks for the feedback.

From my opinion, the test method seems not very reasonable according to the notes from gpioset command:

“The state of a GPIO line controlled over the character device reverts to default when the last process referencing the file descriptor representing the device file exits. This means that it's wrong to run gpioset, have it exit and expect the line to continue being driven high or low...”

 

Best Regards

Chenyin

 

0 Kudos
Reply

840 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @hittzt

Thanks for the question.

May I know if you ever used gpioget to collect the status of the pin during the test?

 

Best Regards

Chenyin

0 Kudos
Reply

813 Views
hittzt
Senior Contributor I

Hi @chenyin_h,

 

Yes, I checked the status of the pin.

You can easily reproduce the issue.

 

Thanks,

Zhantao

0 Kudos
Reply