Open DhruvaG2000 opened 2 years ago
Found the root cause:
lrwxrwxrwx 1 root root 43 Aug 13 10:20 am57xx-pru1_1-fw -> /root/Bela-dhruva/build/pru/pru_rtaudio.out
ie. the location of pru firmware is hardcoded as Bela-dhruva and then later on if the directory name is changed to Bela
or something else, then the path breaks and hence it can not find the PRU fw anymore.
Possible solution: Instead of passing the path to the current Bela directory from the Makefile, we could make the PruManager itself use curDir = system("pwd")
and then programmatically build the path to PRU firmware at runtime
It's much more robust to have it hardcoded at build time I think: the user is much less likely to move around file system the Bela
folder than the built binary.
but we should add a check in PruManager to ensure it tests the file exists before trying to link it and produce a meaningful error if it doesn't exist
It seems like I am getting this error even after a reboot and a hard power on power off when I try to run any example