File not found (Raspberry Pi)

25 views
Skip to first unread message

jjj

unread,
Oct 27, 2020, 12:39:06 PM10/27/20
to Eiffel Users

When running from EiffelStudio feature `c_open_dev' (below) seems to work, but when running from the F_Code directory from command line (with sudo or not), it cannot find "dev/mem" or "dev/gpiomem".


What am I missing about the call to open()?


$PATH when EiffelStudio started:

/home/pi/jj_eiffel/Eiffel_19.05/studio/spec/linux-armv7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/local/Eiffel_19.05/studio/spec/linux-armv7/bin


$PATH running from terminal:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games



Screen Shot 2020-10-27 at 10.30.52 AM.png


Larry Rix

unread,
Oct 28, 2020, 6:36:23 AM10/28/20
to Eiffel Users
Do you need a "/" on the front of "/dev/mem"?

Is this a full-path or relative? If relative and you're running from F_code, then it may not be running in the correct folder.

If this ought to be a full-path reference, then is the "/" or even "~/" required on the front?

jjj

unread,
Oct 28, 2020, 10:11:43 AM10/28/20
to Eiffel Users
Must have been something else.  This problem is fixed.  Thanks Larry

Larry Rix

unread,
Oct 28, 2020, 5:04:56 PM10/28/20
to Eiffel Users
welcome!
Reply all
Reply to author
Forward
0 new messages