gpioset recover failed based on SDK BSP39 on RDB2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

gpioset recover failed based on SDK BSP39 on RDB2

877件の閲覧回数
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 返答(返信)

803件の閲覧回数
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 件の賞賛
返信

844件の閲覧回数
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 件の賞賛
返信

817件の閲覧回数
hittzt
Senior Contributor I

Hi @chenyin_h,

 

Yes, I checked the status of the pin.

You can easily reproduce the issue.

 

Thanks,

Zhantao

0 件の賞賛
返信