Community
cancel
Showing results for 
Search instead for 
Did you mean: 
VGopa2
New Contributor I
1,842 Views

mraa_pwm_close( ) not working

Jump to solution

Hi,

I have a requirement of dynamically changing an led pin from GPIO mode to PWM mode in intel Edison module. I just noticed that the mraa_pwm_close() api is not working as expected. Even if this function returns success value, the file descriptor in memory is not closed. As a result it leads to memory leakage. I had seen the same issue posted here:

Any clues to fix this issue?

Also how to check for the mraa library version from command line? I am using the latest Edison image 3.10.98

Thanks,

Vinu

0 Kudos
1 Solution
VGopa2
New Contributor I
54 Views

Hi Pablo,

Yes, opkg info mraa works!.

Regarding my original question, it seems this was a bug with mraa (version: 1.0.0) and MRAA Github guys have resolved the issue. I am sharing the link here: https://github.com/intel-iot-devkit/mraa/issues/669# issuecomment-286193132 mraa_pwm_close( ) doesn't close duty file · Issue # 669 · intel-iot-devkit/mraa · GitHub

regards,

Vinu

View solution in original post

5 Replies
idata
Community Manager
54 Views

Hi Vinu,

 

 

Thank you for reaching out.

 

To check your MRAA library version on the Edison run the following command: opkg info libmraa0.

 

Regarding your issue with mraa_pwm_close(), as it was suggested by Pedro in his other thread, you'll need to submit a new "Issue" in the MRAA Github site https://github.com/intel-iot-devkit/mraa/issues https://github.com/intel-iot-devkit/mraa/issues as they are the ones in charge of MRAA. I doubt that they are not working on this already, because this doesn't seem to be a new issue, but the best way to confirm it would be by contacting them.

 

 

Regards,

 

Pablo M.
VGopa2
New Contributor I
54 Views

Ok. Thanks for the reply. I'll post in that forum for further assistance on pwm issue. I was unable to read the mraa version using opkg info libmraa0 command. Are there any other commands to get the mraa version?

Thanks,

Vinu

idata
Community Manager
54 Views

Hi Vinu,

 

 

Could you please try with opkg info mraa, then? Let me know if this time works.

 

 

Regards,

 

Pablo M.

 

VGopa2
New Contributor I
55 Views

Hi Pablo,

Yes, opkg info mraa works!.

Regarding my original question, it seems this was a bug with mraa (version: 1.0.0) and MRAA Github guys have resolved the issue. I am sharing the link here: https://github.com/intel-iot-devkit/mraa/issues/669# issuecomment-286193132 mraa_pwm_close( ) doesn't close duty file · Issue # 669 · intel-iot-devkit/mraa · GitHub

regards,

Vinu

View solution in original post

idata
Community Manager
54 Views

Hi Vinu,

 

 

Yes, my Edison image was outdated, so the first command with libmraa0 was working in my board. Thank you for letting us know about the fix for your issue! This will be useful for other users.

 

 

Regards,

 

Pablo M.

 

Reply