Page 1 of 1
Running Raspberry Pi program independantly of Flowcode
Posted: Tue Nov 28, 2023 7:30 am
by RGV250
Hi,
I found a document "Using Raspberry Pi with Flowcode 9" and on the second to last page it states to run the program independantly you need to edit /etc/rc.local and add /home/pi/MyFlowcodeProject & to it.
Has this changed as when i looked I could not find a /pi/ directory but there is an /admin/ one where it look like the FC project is located?
Regards,
Bob
Re: Running Raspberry Pi program independantly of Flowcode
Posted: Tue Nov 28, 2023 9:11 am
by Steve-Matrix
The "/home/pi/MyFlowcodeProject" is a reference to where your Flowcode programs are located and so substitute this for the actual location and name of your compiled program.
Re: Running Raspberry Pi program independantly of Flowcode
Posted: Tue Nov 28, 2023 9:15 am
by RGV250
Hi Steve,
The question i have is that I am pretty sure on an earlier Pi project (created with FC9) there was a folder called Pi so wondered if this had changed. I did put the entry in (with my project name) and got a message that it could not start or find the project. May have been that there is an undescore in the project name which i have only just seen?
Bob
Re: Running Raspberry Pi program independantly of Flowcode
Posted: Tue Nov 28, 2023 9:42 am
by LeighM
All users on Linux usually have their own directory on /home
The default user on a Raspberry Pi is, or was, "pi", hence /home/pi
This user and home directory will need to exist,
or it could be /home/admin if you only have a user called admin.
You need to tell Flowcode what this user name is, using the Project Options screen, and also the password.
Flowcode "compile to chip" will then transfer the program to this user's directory.
edit: I think Raspberry Pi OS no longer uses a default "pi" account
Re: Running Raspberry Pi program independantly of Flowcode
Posted: Tue Nov 28, 2023 12:53 pm
by RGV250
Hi Leigh,
That makes so much sense, feeling pretty silly now.
I think it still is default of Pi but I changed things a while ago so all have the same login and password.
Bob