I'm getting a "line 2: not a function object" error message when resetting, what does this mean?
The "line n: not a function object" usually indicates that a function call is being made to a non-existent function in the reset script or that your project does not have a reset script associated with it.
Check the following:
- Check that your project has a reset script file added to it and that it has been assigned the file type "Reset Script". To do this select the reset script in the project explorer window, right click and select Properties, select Common in the Configuration combo box and ensure that the File Type project property is set to Reset Script.
- Check that the script specified by the Target | Reset Script project property is making a call to a function that exists in the reset script.
Comments
2 comments
Just adding a comment. This happened to me when I had a multi-project solution with a library and the executable was not active. Makes sense, since only the executable had a reset script and it wasn't selected, though the error is confusing...
Where is the location of the script file for me to check? I am using Rowley CrossWorks 2.0.7 I I get the same error message as OP. This is what I see in my project property but I cannot find the FLASHRestet script nor any Reset script .
Please sign in to leave a comment.