Activity for jtxa

  • jtxa jtxa committed [ca28d0] on Code

    ShellCheck: Avoid checking success of echo

  • jtxa jtxa committed [72df93] on Code

    CI: Do update package index on Linux

  • jtxa jtxa committed [a1e6f5] on Code

    cSpell: Add filename exceptions

  • jtxa jtxa committed [39cf14] on Code

    C++: Improve const usage

  • jtxa jtxa committed [e28378] on Code

    C++: Use auto keyword

  • jtxa jtxa committed [984cb7] on Code

    cmake: Require C++11 as minimum

  • jtxa jtxa committed [45c6d9] on Code

    C++: Modernize and de-duplicate includes

  • jtxa jtxa committed [c07be5] on Code

    C++: Remove void arguments for consistency

  • jtxa jtxa committed [92ab05] on Code

    C++: Use uppercase literal suffix

  • jtxa jtxa committed [b220ad] on Code

    C++: Apply misc C++11 modernizations

  • jtxa jtxa committed [b1b81d] on Code

    C++: Apply misc readability fixes

  • jtxa jtxa committed [ec1d84] on Code

    C++: Remove useless const

  • jtxa jtxa committed [7ef3a8] on Code

    C++: Fix macro parantheses

  • jtxa jtxa committed [a18500] on Code

    clang-tidy: Update configuration and CI call

  • jtxa jtxa committed [fd1b90] on Code

    C++: Fix strcmp/memcmp

  • jtxa jtxa committed [4a0211]

    CI: Add package build for MSYS2

  • jtxa jtxa committed [0a6c49]

    Add .gitattributes to force LF

  • jtxa jtxa committed [0c98a1]

    docs: Split pdf generation into 3 separate steps

  • jtxa jtxa committed [87c898]

    Make static_assert C++11 compatible

  • jtxa jtxa committed [034c48]

    Avoid variable length array for C++11 compatiblity

  • jtxa jtxa committed [91f6e2]

    arglex: Avoid warning about unused function

  • jtxa jtxa committed [ffb29c]

    msbin: Avoid warning by renaming function

  • jtxa jtxa committed [57d0b8]

    hp64k: Remove unused parameter

  • jtxa jtxa committed [66e7d4]

    CI: Fail QA on warnings by clang-14 and gcc-11

  • jtxa jtxa committed [d0492c]

    CI: Add QA workflow with specials build

  • jtxa jtxa committed [a69245]

    CI: Small improvements on GitHub workflow

  • jtxa jtxa committed [9425bc]

    CI: Add QA check for Clang-Tidy

  • jtxa jtxa committed [7b7529]

    CI: Add Windows MSYS2 and MacOS workflow

  • jtxa jtxa committed [d26b9b]

    Add GitHub workflow for MegaLinter

  • jtxa jtxa committed [4431ee]

    Fix spelling errors

  • jtxa jtxa committed [5bc1a6]

    Add cSpell configuration

  • jtxa jtxa committed [2ccbcf]

    Change spelling of nybbles to nibbles

  • jtxa jtxa committed [606157]

    test: Use test_prelude.sh from source dir

  • jtxa jtxa committed [f0b703]

    README: Simplify, fix formatting and spelling

  • jtxa jtxa committed [897b24]

    Fit C source into line length limit

  • jtxa jtxa committed [ecdf4d]

    doc: Do not copy scripts to build directory

  • jtxa jtxa committed [c294e3]

    doc: Refactor CMake file

  • jtxa jtxa committed [4fe1eb]

    doc: Fix some issues in shell scripts

  • jtxa jtxa committed [eb2c86]

    doc: Normalize groff calls

  • jtxa jtxa committed [aa3c1c]

    srec_info: Fix calculation of 32-bit end address

  • jtxa jtxa committed [12928f]

    srec_info: Fix address length formatting

  • jtxa jtxa committed [6cac87]

    srec_info: Replace snprintf by iomanip functions

  • jtxa jtxa committed [097691]

    srec_info: Fix verbose ration DivByZero

  • jtxa jtxa committed [3430ee]

    cmake: Add targets to build executables and show version

  • jtxa jtxa committed [69428b]

    cmake: Make test scripts executable

  • jtxa jtxa committed [4cb17e]

    ci: Add github workflow to compile and test

  • jtxa jtxa committed [137dd2]

    Remove VIM modlines in favor of EditorConfig

  • jtxa jtxa committed [f75628]

    EditorConfig: Add configuration for automatic whitespace handling

  • jtxa jtxa committed [78db22]

    Replace tabs by spaces

  • jtxa jtxa committed [090d36]

    man: Fix copyright sign

  • jtxa jtxa committed [55bfde]

    Fix spelling errors

  • jtxa jtxa committed [8adec3]

    man: Fix UTF-8 character

  • jtxa jtxa committed [abf7ce]

    srec_hp64k.5: Remove superfluous table cell

  • jtxa jtxa committed [fd11cf]

    html: Fix missing # on color

  • jtxa jtxa committed [e6f60f]

    Make copyright year detection more robust

  • jtxa jtxa committed [4d38e2]

    Support older Git versions for copyright year detection

  • jtxa jtxa modified a comment on discussion Help

    I have explained why -over is not doing what you want, it's just filling the wholes within the file. If you want to fill anything outside the file address range, you must specify the addresses. Where shall that info come from otherwise? You want everything from address 0, that one has to be hardcoded. And the end should be the same as the file, and this is exactly what the suggested -maximum-address does. So the correct command is: srec_cat hexfile.hex -Intel -fill 0xFF 0 -maximum-address "(" hexfile.hex...

  • jtxa jtxa posted a comment on discussion Help

    I have explained why -over is not doing what you want, it's just filling the wholes within the file. If you want to fill anything outside the file address range, you must specify the addresses. Where shall that info come from otherwise? You want everything from address 0, that one has to be hardcoded. And the end should be the same as the file, and this is exactly what the suggested -maximum-address does. So the correct command is: srec_cat hexfile.hex -Intel -fill 0xFF 0 -maximum-address "(" hexfile.hex...

  • jtxa jtxa posted a comment on discussion Help

    Tip for searching: In the PDF just search for maximum-addr. The leading minus sign is some other kind of dash and won't be found.

  • jtxa jtxa posted a comment on discussion Help

    Please try out the second command, that is exactly what you need. It creates the same output as just writing to a binary, but with 0xff instead of 0. Binary files always start at address 0. So converting to binary implicitly fills the the range from 0 to "end of input" with 0. In my command line I do this explicitly with 0xff, so there is no missing byte to be filled implicitly later. -overdefines the range from the start to end of your input. So you just filled the holes within your file, not the...

  • jtxa jtxa posted a comment on discussion Help

    If you don't want the default, you need to explicitly fill the address range. If you know the size needed, use something like: srec_cat input.hex -intel -fill 0xff 0x0 0x8000 -o output.bin -binary Otherwise you can use the last address of you input file: srec_cat input.hex -intel -fill 0xff 0x0 -maximum-address "(" input.hex -intel ")" -o output.bin -binary P.S. The quoting of the brackets depends on your OS. I hope that quotation marks works anywhere.

  • jtxa jtxa modified a comment on discussion Help

    The documentation of the -byte-swap argument does not really match the implementation. Based on the implementation I would say: - The values 2,4,8 specifies how many bytes shall be swapped - The values 16,32,64,128,256 specifies how many bytes, specified in bit-length, shall be swapped The 2,4,8 seems to match the documentation. But it's not true that you can use any weird value. And that the high numbers represent bit-length is not mentioned at all. So please try -byte-swap 128 which should swap...

  • jtxa jtxa posted a comment on discussion Help

    The documentation of the -byte-swap argument does not really match the implementation. Based on the implementation I would say: - The values 2,4,8 specifies how many bytes shall be swapped - The values 16,32,64,128,256 specifies how many bits shall be swapped The 2,4,8 seems to match the documentation. But it's not true that you can use any weird value. And that the high numbers represent bits is not mentioned at all. So please try -byte-swap 128 which should swap 16 bytes.

  • jtxa jtxa posted a comment on discussion Help

    The string -maximum-address-2 is not a valid argument, hence the error message. SRecord does not support numeric calculations. Also the argument -offset is not for calculating an address, it's moving the data. To save the last two bytes it's getting a little bit complicated: srec_cat EB200P-L7-APP-V1.10.hex -intel -crop -over "(" -generate 0 2 -constant 0x00 -offset -maximum-address EB200P-L7-APP-V1.10.hex -intel -offset -2 ")" -o Last2byte.hex -intel The brackets are not necessary, but makes the...

  • jtxa jtxa posted a comment on discussion Open Discussion

    Hello, is anyone in contact with Scott Finneran? I contacted him last year and got a positive and promising reply, but nothing since then. Best Regards, Josef

  • jtxa jtxa modified a comment on discussion Open Discussion

    This examples in the documentation was written several years later than the implementation. Most likely the coded range was not considered. I don't see a valid reason why the length must be limited.

  • jtxa jtxa posted a comment on discussion Open Discussion

    This examples in the documentation was written several years later than the implementation. Most likely the coded range was considered. I don't see a valid reason why the length must be limited.

  • jtxa jtxa committed [289834]

    Implement RFE [1563781] no file:// for local paths

  • jtxa jtxa committed [c13fe4]

    Add very simple icon

  • jtxa jtxa committed [849af9]

    Add utility class for windows file system

  • jtxa jtxa committed [02a3ff]

    ChangeLog update for Release 0.6.1

  • jtxa jtxa committed [f49ac8]

    Inlining verbosePrint as its doing nothing atm

  • jtxa jtxa committed [5d4b5b]

    ChangeLog update for Release 0.6.0

  • jtxa jtxa committed [bf07cd]

    Add utility class for windows clipboard

  • jtxa jtxa committed [268587]

    Add main function with the primitive user interface

  • jtxa jtxa committed [040c3f]

    Define for windows version before including header

  • jtxa jtxa committed [c2244d]

    Add Linkator itself

  • jtxa jtxa committed [58be42]

    Add ChangeLog

  • jtxa jtxa committed [fa9665]

    Add license file

  • jtxa jtxa committed [0bda1d]

    Add misc utilities

  • jtxa jtxa committed [6f37a8]

    Add output of version number for release

  • jtxa jtxa committed [bd123f]

    Initial repository structure

  • jtxa jtxa committed [d68dbd]

    Add NSIS setup script

  • jtxa jtxa posted a comment on discussion Open Discussion

    Hello Tweakbert, If multiple inputs are specified srec_cat concatenates their contents. Almost all options are postfix arguments, which act on the previous input only. Before v1.45 you had to use a temporary file like you did. Or you can use pipes to achieve the same: srec_cat -generate 0x0000 0x0001 -constant-l-e 0x01 1 -generate 0x0001 0x0002 -constant-l-e 0x02 1 | srec_cat - -crc16-l-e 0x0c -o --hex-dump In newer version you can use parentheses to group the inputs first and apply the checksum...

  • jtxa jtxa posted a comment on discussion Help

    My first post was done without trying out, so I had some lapses. But this version is definitely working. You have to use it instead of your own script (only the output part is missing). Assuming that your hex has only data starting at 0x800c000 the first part can not cause a contradictory value a 0x1c. Because the newly calculated checksum is the only data at that position. If that's not the case, can you please post your range? srec_info xxx.hex -intel -fill 0xff -over xxx.hex -intel -range-padding...

  • jtxa jtxa modified a comment on discussion Help

    Contradictory bytes should be avoided and in most cases they can. Having the checksum in the middle of the data is common, but bad design (unless it's a simple addition). You need to know, which address ranges are skipped by the check or replaced by dummy data. In your case, assuming that you got the correct result above, at least checksum and length are replaced by dummy values. Either the filled 0xff or whatever already was in your input file. Doing the checksum alone and combine it with the rest...

  • jtxa jtxa posted a comment on discussion Help

    Yes, you're right. I forgot to extend the exclude range, i fixed the example above.

  • jtxa jtxa modified a comment on discussion Help

    Contradictory bytes should be avoided and in most cases they can. Having the checksum in the middle of the data is common, but bad design (unless it's a simple addition). You need to know, which address ranges are skipped by the check or replaced by dummy data. In your case, assuming that you got the correct result above, at least checksum and length are replaced by dummy values. Either the filled 0xff or whatever already was in your input file. Doing the checksum alone and combine it with the rest...

  • jtxa jtxa posted a comment on discussion Help

    Contradictory bytes should be avoided and in most cases they can. Having the checksum in the middle of the data is common, but bad design (unless it's a simple addition). You need to know, which address ranges are skipped by the check or replaced by dummy data. In your case, assuming that you got the correct result above, at least checksum and length are replaced by dummy values. Either the filled 0xff or whatever already was in your input file. Doing the checksum alone and combine it with the rest...

  • jtxa jtxa posted a comment on discussion Open Discussion

    srecord uses the man page to display the help on command line. This is not available on Windows. Please refer to the PDF manual which is available on the download page.

  • jtxa jtxa posted a comment on discussion Help

    see this answer

  • jtxa jtxa posted a comment on discussion Open Discussion

    Please use a minus sign for piping: srec_cat example.s19 -o - -binary | other_program

1
MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →