[HELP] Raspberry Pi GPIO Usage- Beginner [message #1753962] |
Mon, 13 February 2017 12:51 |
Akshai M Messages: 10 Registered: February 2017 |
Junior Member |
|
|
Hi Team,
Sorry If I am creating a duplicate thread.I couldn't find any thread for beginners using 4DIAC with RPi hence I made a new one.
What I have done so far :
I have compiled Forte on Pi using help from official page.<https://eclipse.org/4diac/documentation/html/installation/raspi.html>
I have enabled SysFs and compilation was completed in 15 mins using RPi 3.
The forte executable was located in org.eclipse.4diac.forte/bin/posix/src. I tried it using ./forte as a normal user. (No status was conveyed in shell after execution).
Made an application to blink led on GPIO 3 (Pin 5). Referred an example in https://www.eclipse.org/forums/index.php/t/1075043/. I have attached the image for reference.
Defined system.I have used ethernet segment in 4DIAC although I am connected via WiFi.Again,I have attached the image for reference.
Profile of Raspberry Pi in Properties Tab was made HOLOBLOC.
Deployed the application with no errors. (had to restart forte and then uploaded.During upload no status update was shown in shell(forte) but upload was shown complete in 4DIAC IDE)
What is not working:
The LED connected to GPIO 3( PIN 5) does not blink.
I have been working on the same for 1 week.Started off in PiZero and now moved to RPi 3 but the case remains same.Any help is deeply appreciated.
Regards.
Akshai M
[Updated on: Mon, 13 February 2017 16:22] Report message to a moderator
|
|
|
|
|
|
Re: [HELP] Raspberry Pi GPIO Usage- Beginner [message #1754077 is a reply to message #1754073] |
Tue, 14 February 2017 12:11 |
|
Hi,
the QO and status output gives you feedback that the QX had issues on writing the output. It would be great if you could have a look on the output right after init before the first request. But my assumption is that the user you are running forte on your rapsi does not have the right to access the sysfs filesystem. Either you add your user to the correct group or you try to run FORTE as super user.
I hope this helps.
BR,
Alois
|
|
|
|
Re: [HELP] Raspberry Pi GPIO Usage- Beginner [message #1754085 is a reply to message #1754082] |
Tue, 14 February 2017 12:53 |
|
Hi,
the point is that FORTE uses the sysfs which is located under "/sys/class/gpio/". In order to use the IOs any application using sysfs needs to be allowed to read and write there. Per default not all users are allowed to do this. Super user is one option but not the option that I would recommend. Normally there is a special group defined and by adding your user to this group you should be able to access as this user sysfs. I don't have currently a raspi with me so I don't know the name of the group. Maybe Waldemar or Jose can tell more on this.
Cheers,
Alois
|
|
|
Powered by
FUDForum. Page generated in 0.03424 seconds