We use Linux OS (SDK 8.2).
GPIO is controlled using libgpiod API.
But sometimes I get the following error that the port being busy.
<16 0 Device or resource busy> gpio1_28
Could you tell me the conditions which the port becomes busy?
Best regards.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
We use Linux OS (SDK 8.2).
GPIO is controlled using libgpiod API.
But sometimes I get the following error that the port being busy.
<16 0 Device or resource busy> gpio1_28
Could you tell me the conditions which the port becomes busy?
Best regards.
Hello Takafumi,
Try using gpioinfo or check the kernel device tree to see if another peripheral is using the pin. The port may become busy when a driver or peripheral is already using the pin.
-Anshu
Thank you for your reply.
The target port is not used by any other peripheral. If it is used, won't the port be busy all the time?
In most cases, no error occurs, but in rare cases the above error occurs.
Is it possible that an error occurs depending on the timing of accessing the port? And is there the way to avoid it?
Best regards.
Hello Takafumi,
I am currently looking into this. I will get back to you in two days.
-Anshu
Hello Takafumi,
Are you using an Evaluation Module or custom hardware?
-Anshu
Hello Takafumi,
This is from the AM335 datasheet. These are the other possible signals for this pin by changing the mux mode. Are any of these signals being used other than gpio1_28?
-Anshu
Hello Anshu san
I checked it.
It was not assigned to any other function.
Best regards.
Hello,
The next recommendation I have is look into the kernel drivers you are using. You could also check if sysfs has used anything that may conflict.
Best Regards,
Anshu