[SOLVED] How to load and run a binary file by using J-Link before going to debug ?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] How to load and run a binary file by using J-Link before going to debug ?

    Hello

    We are using SEEGER embedded studio to developing our application.
    Now we need to load and run a binary file from J-link before going to debug mode.
    Ex: Downloading project into DDR memory which involves DDR initialization program to run separately before project
    download to DDR. Downloading and executing start up code(bin/elf/hex) to initialize DDR memory by using J-link and
    return control to JTAG to continue project download.
    My Processor is: STM32MP157AAA3

    Can anyone help in this regard?

    regards
    Srikanth
  • Hello,

    Thank you for your inquiry.
    For DDR RAM inits we recommend to use a JLinkScript and the function SetupTarget():
    wiki.segger.com/J-Link_script_files

    How to use a JLinkScript in Embedded Studio.:
    wiki.segger.com/J-Link_script_files#Embedded_Studio


    The image that you want to program to the DDR RAM you can set in ES via project options under Debug > Loader > Additional Load File[0]


    If everything is set up correctly J-Link will init the DDR RAM after connection and ES will download the DDR image to the corresponding memory location and then your application.

    Best regards,
    Nino
    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: segger.com/ticket/

    Or you can contact us via e-mail.