In “Touch & Build: Auto-Update of Firmware Date and Time” I’m using commands as ‘touch’ in a pre-build script with the NXP Eclipse based MCUXpresso IDE. That ‘touch’ command is not a Windows shell command, but common on Linux: it updates the time/date of a file.
As a Windows user you might wonder what is about this ‘Linux compatible shell’?
It is actually the ‘sh.exe’ located in
The files are actually from the Eclipse Embedded CDT (GNU MCU Eclipse Windows Build Tools). It comes with a bunch of utilities to make cross platform development easier on Windows as many scripts depend on Linux tools, and for this they are provided in this package.
So what commands and tools can I use? A simple way to find out is to run the sh.exe in a Windows cmd shell and type the command ‘help’:
To find out more about the commands:
- type the command
- or type the command with the option -h
- use the Linux man pages 🙂
That’s it 🙂 With this I can do powerful things in the including doin hexdumps, moving files or creating new ones, calculating checksums or doing a ftp or scp (secure copy) to transfer the binary file to a remote host:
Happy Shelling 🙂