When specified in a build configuration, the post-build command will be executed after generating the ELF file and before calling the optional tools (for example, generating the SREC file). For this reason, when you try to use a file produced by an optional tool in a post-build command, you get the error message “No such file or directory”.