[SOLVED] Using NXP mx6ull evk... Using JLink.exe, what are the recommended steps before using 'loadbin' command to load a program image?

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

  • [SOLVED] Using NXP mx6ull evk... Using JLink.exe, what are the recommended steps before using 'loadbin' command to load a program image?

    Hello,

    Using a NXP mx6ull evk... with IMX6ULL Cortex A7 processor, 512 megabytes of RAM that begins at 0x80000000, what are the correct steps to guide JLink.exe through a 'loadbin' effort with a selected program memory image that we would prefer to execute from RAM?

    Currently, I am trying to load a bin image into 0x87800000 and am getting JLink.exe message "Writing target memory failed.".

    What JLink.exe preceeding steps should occur before it is possible to successfully use 'loadbin'?

    Thanks much in advance,
    -- DJ Regan
  • Use NXP's 'bare metal' SDK, follow instructions for 'hello_world' using JLinkGDBServer.exe, before using JLink.exe...

    Nevermind. We got it working. :)

    We used the NXP 'bare metal' SDK (MCUXpresso SDK2.2 for i.MX 6ULL) with Segger JLinkGDBServer.exe, to load the 'hello_world' demo app (after building hello world with the build_ddr_debug.bat script).

    It turns out that it is possible to allow JLinkGDBServer.exe to preintialize the EVK RAM memory with 'hello_world' ready to run from RAM, and to keep JLinkGDBServer.exe running, while bringing up Segger JLink.exe ...and... using the 'loadbin' command to preinitialize another unused RAM memory region with another preferred program to run. After preloading the other unused RAM space, we used the setPC command to jump to that other program's starting location, and used g command to allow the other program to run.

    Very, very cool Segger. :)
  • Hi DJ,

    Great to hear that your issue has been resolved.
    We will consider this case as closed now.

    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.