Attach Script Examples
Would someone post an example of an Attach Script for Crossworks for ARM 2.0?
When I attach to the target with the debugger, it seems to be looking for a function with a particular name (e.g. RAMReset() or FLASHReset()) to execute when the debugger attaches to the target, but I have no idea what function name it's looking for.
Thanks!
-
I had a minor epiphany: In the "Target Script Options" settings where it has entry blanks for the various scripts, it appears that some of them want a script filename, e.g. "MyTargetScript.js" and some of them want a function name, e.g. "OnAttach()," which is the name of a function inside one of the script files.
I found that if I added a function named OnAttach() and put it into MyTargetScript.js, and then entered OnAttach() into the "Attach Script" entry blank, the error goes away and everything seems to work. Now maybe I missed it, but I didn't see any of this explained anywhere in the documentation.
Please sign in to leave a comment.
Comments
3 comments