[SOLVED] unknown entry point in jlink command file

  • I work with RT1051 and I have a project contained and executed in RAM.
    I wrote a command file to automate loading and execution:

    Every version I make <ENTRYPOINT> can change, forcing me to introspect the produced binary.

    To automate this aspect as well, how could I do it?

    For example, is it possible to pass parameters from JLink command line to CommandScript? Or is it possible to declare variables inside the script that I would populate by reading the content of a specific memory location (the address of the ResetISR inside the vectors)? Or are there other methods I haven't considered like JlinkScripts?


    best regards
    Max

  • Hi Max,
    There is no such feature available.

    You could however work around this by adjusting the command file via some kind of script file (e.g. Python)
    - Have a template command file containing the <ENTRYPOINT> place holder.
    - The script parses the template and creates a copy with the <ENTRYPOINT> placeholder replaced by the actual address and calls J-Link Commander with the adjusted script file.

    BR
    Fabian

    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

  • You could also get your hands on the J-Link SDK and write your own applications, adapt J-Link Commamder to your needs, …

    BR
    Alex

    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: https://www.segger.com/ticket/

    Or you can contact us via e-mail.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!