master-student - 2022-08-25

I am using Beagle Bone Black as device(similar to raspberry pi)

I created a ST program to read one-wire temperature file and it works fine when I try it by logging in.
But once I made the boot application and when I restart the beagle bone the application it is not working.

I tried changing the file location and then restarted the beagle bone and the application seems to be working. Does anyone have any Idea why exactly this file is not compatible?. Thank you in advance.