Next: Binary files, Previous: Elf files, Up: Uploading a program [Contents][Index]
µPad can upload files containing S-Record data to the target device.
Since S-Record files are ordinary text files they can be recognised by
viewing them using a command like cat
or by viewing them
in a text editor. They comprise lines of text beginning with the character
‘S’. Figure 4.3 shows an example.
Most linkers however do not, by default, generate S-Record data.
Therefore you will most likely have to convert the file you wish to upload.
One way to do this, is to use the objcopy
command which is shipped with
GNU Binutils (see https://www.gnu.org/software/binutils).
To do this, you would use a command similar to
objcopy input-file -O srec srecord-file
If you are using another toolchain, you will need to consult its documentation.