Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: failed to open 'lmm/Test Encoder Connections.elf' #265

Open
csavage-parallax opened this issue Dec 6, 2016 · 0 comments
Open

error: failed to open 'lmm/Test Encoder Connections.elf' #265

csavage-parallax opened this issue Dec 6, 2016 · 0 comments

Comments

@csavage-parallax
Copy link

It's taken some time (months) to isolate this problem and figure out what the exact cause is/was, but I now have it thanks to a level-headed student. We've had reports of students trying to download code in SimpleIDE before and getting the error: failed to open 'cmm/Test Encoder Connections.elf'

It turns out that in these situations the student does not have write access on their school computer, most likely due to their group policy. Once the teacher opened the application "As an Admin" then it worked.

The reason I am reporting this as a bug/issue is that the reason it took so long to figure out is that there should have been an error writing the file as SimpleIDE was not allowed to create the file within the cmm folder. Instead the error comes up later when the file that was supposed to be created is attempted to be read and is not found.

This had us thinking there were missing library files or some other issue. It would help if SimpleIDE would generate an error when it is not capable of writing to the target location. The Build Error Rescue from the student is pasted below. The switch to LMM in an attempt to see if it that would work, but that wasn't related to the issue.

Project Directory: C:/Users/jrichens/Documents/SimpleIDE/Learn/Examples/ActivityBot/

SimpleIDE Version 1.0.2
C:/Users/jrichens/Documents/SimpleIDE/Learn/Simple Libraries/
C:/Users/jrichens/Documents/SimpleIDE/ Updated on: 2016-12-06

propeller-elf-gcc.exe -v
propeller-elf-gcc.exe error ... (0)

propeller-elf-gcc.exe -I . -L . -o lmm/Test Encoder Connections.elf -Os -mlmm -m32bit-doubles -fno-exceptions -std=c99 Test Encoder Connections.c -lm
propeller-elf-gcc.exe error ... (0)

propeller-load -s lmm/Test Encoder Connections.elf
propeller-load error ... (0)

propeller-elf-objdump -h lmm/Test Encoder Connections.elf
propeller-elf-objdump error ... (0)

Done. Build Succeeded!

propeller-load.exe -S2 -Dreset=dtr -I C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/ -b ACTIVITYBOARD lmm/Test Encoder Connections.elf -r -p COM4Propeller Version 1 on COM4
error: failed to open 'lmm/Test Encoder Connections.elf'
error: load failed
Propeller Version 1 on COM4

error: failed to open 'lmm/Test Encoder Connections.elf'

error: load failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant