Hallo Zusammen,
Eine Frage ich möchte mit srec_cat eine CRC aus einem Hexfile auslesen.
Das geht alles auch soweit aber ich bekomme die Adress-Information nicht
weg. Wie kann ich nur die Daten auslesen und in ein File schreiben?
1 | @echo check range : %1 (incl.) - %2 (exkl.)
|
2 | @echo CRC position: %3 (incl.) - %4 (exkl.)
|
3 | @echo FILL Pattern: %5 (for undefined areas)
|
4 | @echo FILE-Name : %6
|
5 | @echo ENV-Path : %7
|
6 | @REM make new file with only CRC in it:
|
7 |
|
8 | %7\tools\srecord_tool\bin\srec_cat.exe -Disable_Sequence_Warnings "%6" -Intel -fill %5 %1 %2 -crop %1 %2 -Little_Endian_CRC16 %3 -XMODEM -crop %3 %4 -Line_Length 44 -o "%6.crc.only" -Intel
|
Jetzt bekomme ich
1 | :020000040801F1
|
2 | :02EBF40040AF30
|
3 | :00000001FF
|
Wie bekomme ich jetzt nur die Daten (also nur die CRC) als hex oder
ascii wert aus diesen lines.
Mir ist klar das ich das ich jetzt einen hex parser nehmen könnte aber
das muss doch mit srec_cat auch gehen denke ich. Finde nur die richtige
Option nicht.