No output from post linker script using CrossScript
I am once again modifying an output binary to format for the UF2 bootloader. I'm starting with a very basic postlink.js file that looks like this:
function postlink(filename) {
WScript.Echo("Hello World!\r\n")
WScript.Echo("Filename = "+ filename + "\r\n")
}
And, in my release properties I edit the post link command to be:
"$(StudioDir)/bin/crossscript" -load "$(ProjectDir)/postlink.js" "postlink(\"$(OutDir)/$(ProjectName).bin\");"
But I see no results in the command output when I rebuild the project in release configuration.
Post-link command
shows up at the end, but no "Hello World!"
I've done this before in version 3 I believe. I am currently using version 4.3.2.
Microsoft provides a python script uf2conv.py to do this job. Can the post link command run this python script rather than converting the script to CrossScript?
Thanks,
Mike.
Please sign in to leave a comment.
Comments
0 comments