gpioset recover failed based on SDK BSP39 on RDB2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

gpioset recover failed based on SDK BSP39 on RDB2

867 次查看
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 项奖励
回复
3 回复数

793 次查看
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 项奖励
回复

834 次查看
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 项奖励
回复

807 次查看
hittzt
Senior Contributor I

Hi @chenyin_h,

 

Yes, I checked the status of the pin.

You can easily reproduce the issue.

 

Thanks,

Zhantao

0 项奖励
回复