Use
dd command to skip 0x20 bytes. (32 bytes)
In other word, we need to delete the first 32 bytes of a binary file.
Input file: demo-int-c-ext.bin
Outupt file: test.bin
In cygwin:
$ dd if=
./demo-int-c-ext.bin of=
./test.bin bs=1 skip=32
8004+0 records in
8004+0 records out
8004 bytes (8.0 kB) copied, 0.035 s, 229 kB/s
hylai@APC187 /cygdrive/d/Andestech/AndeSight201MCU/mcu_64/workspace/demo-int-
xt/Debug/output
$ ls -al
total 204
drwxrwxrwx+ 1 hylai mkpasswd 0 Mar 10 15:30 .
drwx------+ 1 hylai mkpasswd 4096 Mar 10 15:20 ..
-rwxrwxrwx 1 hylai mkpasswd 8036 Mar 10 15:20 demo-int-c-ext.bin-rw-rw-rw- 1 hylai mkpasswd 116966 Mar 10 15:20 objdump.txt
-rw-rw-rw- 1 hylai mkpasswd 46241 Mar 10 15:20 readelf.txt
-rw-rw-rw- 1 hylai mkpasswd 19113 Mar 10 15:20 symbol.txt
-rw-r--r-- 1 hylai mkpasswd 8004 Mar 10 15:41 test.binAttachment:
cygwin.png [ 55.82 KiB | Viewed 8438 times ]
Sample:
Attachment:
demo-int-c-ext.bin [7.85 KiB]
Downloaded 849 times
Attachment:
test.bin [7.82 KiB]
Downloaded 866 times
In AndeSight, add "dd if=./output/demo-int-c-ext.bin of=test.bin bs=1 skip=32" to post-build steps.
Attachment:
andesight1.png [ 38.58 KiB | Viewed 8438 times ]
Attachment:
andesight2.png [ 11.35 KiB | Viewed 8438 times ]