Running Deployment Scripts from CodeLite
Posted: Sat Feb 16, 2013 3:58 am
I'm using Codelite for embedded development, and after building my project, I have to run some deployment scripts to erase the board's flash and upload a hex file to the target board.
I'd like to run a series of console programs (or preferably a batch file) to do this right before running or debugging a project. I don't want to use the Post-Build commands because the process takes too long (approximately 20 seconds) and I don't want to have to do this every time I build the project. Just when I'm ready to run it.
Observation 1
I noticed that if using the "..." button to set the program to a batch file, the path will contain "/" as opposed to "\". When running the program (Ctl-F5), a console window opens and shows an "unrecognized command" error. It happens so fast I can't see the exact error.
Observation2
If I replace the "/" with "\" the batch file runs, but opens up a separate console window. I'd prefer to have the output display in CodeLite's output pane.
Question 1
I'd like CodeLite to start the batch file and display the output in the "Output" window. Is this possible?
Question 2
Is it possible to run this deployment script right before starting the debugger (F5 method)?
CodeLite v5.0.6213 (Official Build)
Windows 8 64-bit
I'd like to run a series of console programs (or preferably a batch file) to do this right before running or debugging a project. I don't want to use the Post-Build commands because the process takes too long (approximately 20 seconds) and I don't want to have to do this every time I build the project. Just when I'm ready to run it.
Observation 1
I noticed that if using the "..." button to set the program to a batch file, the path will contain "/" as opposed to "\". When running the program (Ctl-F5), a console window opens and shows an "unrecognized command" error. It happens so fast I can't see the exact error.
Observation2
If I replace the "/" with "\" the batch file runs, but opens up a separate console window. I'd prefer to have the output display in CodeLite's output pane.
Question 1
I'd like CodeLite to start the batch file and display the output in the "Output" window. Is this possible?
Question 2
Is it possible to run this deployment script right before starting the debugger (F5 method)?
CodeLite v5.0.6213 (Official Build)
Windows 8 64-bit