[ABANDONED] Problems debugging NXP RT1170 EVB with Ozone (V3.28d) and J-Link Ultra+ debugger

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

  • [ABANDONED] Problems debugging NXP RT1170 EVB with Ozone (V3.28d) and J-Link Ultra+ debugger

    Hi all, I've been successfully using your J-Link Ultra+ debugger with NXP RT1170 and IAR IDE, I can easily download and debug our application which is stored in external QSPI Flash memory.
    Our application is based on FreeRTOS.

    Right now, I would like to do the same using Ozone (V3.28d) and J-Link Ultra+ debugger but I'm facing some issue when I tried to debug our application.
    To do so, I created an Ozone .jdebug file as follow:

    void OnProjectLoad (void) {
    //
    // Dialog-generated settings
    //
    Project.SetDevice ("MIMXRT1176xxxA_M7");
    Project.SetHostIF ("USB", "");
    Project.SetTargetIF ("SWD");
    Project.SetTIFSpeed ("4000");
    Project.AddSvdFile ("$(InstallDir)/Config/CPU/Cortex-M7F.svd");
    Project.AddSvdFile ("$(JTOOLS_1)/Iar/Arm/9.30.1/config/debugger/NXP/MIMXRT1176_cm7.svd");
    //
    // User settings
    //
    Project.SetOSPlugin ("FreeRTOSPlugin_CM7");
    Edit.SysVar (VAR_TRACE_CORE_CLOCK, 1000000000);
    File.Open ("$(ProjectDir)/../emulator/executable.elf");
    // Add log
    Project.SetJLinkLogFile("$(ProjectDir)/../.ide/__jlink.log");
    Project.SetJLinkScript("$(ProjectDir)/../__ide/MIMXRT1176/iar/evkbmimxrt1170_connect_cm4_cm7side.jlinkscript");
    }

    The other functions are not enabled.

    As you can see, I'm currently using the same evkbmimxrt1170_connect_cm4_cm7side.jlinkscript file which is successfully used by IAR+Jlink Ultra+ debugger. Seems that I'm able to program and verify the board but I'm not able to debug our application.

    This is the log I got in the console:
    Disabled output of control characters
    SEGGER Ozone - The J-Link Debugger V3.28d
    J-Link software found at: C:/Program Files/SEGGER/Ozone/JLink_x64.dll
    File.Open ("C:/WORK/Git-Repo/horeb/.ide/horeb.jdebug");
    Project.SetDevice ("MIMXRT1176xxxA_M7");
    Target core support plugin loaded.: C:/Program Files/SEGGER/Ozone/Plugins/Core/CorePluginARM.dll
    Project.SetHostIF ("USB", "");
    Project.SetTargetIF ("SWD");
    Project.SetTIFSpeed ("4000");
    Project.AddSvdFile ("$(InstallDir)/Config/CPU/Cortex-M7F.svd");
    File path resolved: "$(InstallDir)/Config/CPU/Cortex-M7F.svd" was found at "C:/Program Files/SEGGER/Ozone/Config/CPU/Cortex-M7F.svd"
    Project.AddSvdFile ("$(JTOOLS_1)/Iar/Arm/9.30.1/config/debugger/NXP/MIMXRT1176_cm7.svd");
    File path resolved: "$(JTOOLS_1)/Iar/Arm/9.30.1/config/debugger/NXP/MIMXRT1176_cm7.svd" was found at "C:/jtools_1/Iar/Arm/9.30.1/config/debugger/NXP/MIMXRT1176_cm7.svd"
    Project.SetOSPlugin ("FreeRTOSPlugin_CM7");
    File name resolved: "FreeRTOSPlugin_CM7.js" was found at "C:/Program Files/SEGGER/Ozone/Plugins/OS/FreeRTOSPlugin_CM7.js"
    RTOS awareness plugin loaded: C:/Program Files/SEGGER/Ozone/Plugins/OS/FreeRTOSPlugin_CM7.js.
    Edit.SysVar (VAR_TRACE_CORE_CLOCK, 1000000000);
    File path resolved: "$(ProjectDir)/../emulator/executable.elf" was found at "C:/WORK/Git-Repo/horeb/emulator/executable.elf"
    File.Open ("C:/WORK/Git-Repo/horeb/emulator/executable.elf");
    Project.SetJLinkLogFile ("$(ProjectDir)/../.ide/__jlink.log");
    Project.SetJLinkScript ("$(ProjectDir)/../__ide/MIMXRT1176/iar/evkbmimxrt1170_connect_cm4_cm7side.jlinkscript");
    File path resolved: "$(ProjectDir)/../__ide/MIMXRT1176/iar/evkbmimxrt1170_connect_cm4_cm7side.jlinkscript" was found at "C:/WORK/Git-Repo/horeb/__ide/MIMXRT1176/iar/evkbmimxrt1170_connect_cm4_cm7side.jlinkscript"
    File.Open: completed in 265 ms
    Program segments:
    Address Size Code RO Data RW Data ZI Data Flg
    --------- --------- --------- --------- --------- --------- ---
    30001000 32 0 32 0 0 R
    30001020 16 0 16 0 0 R
    30001040 16 0 16 0 0 R
    30002000 1 024 1 024 0 0 0 R E
    30002400 169 974 169 974 0 0 0 R E
    --------- --------- --------- --------- --------- --------- ---
    Total: 171 062 170 998 64 0 0
    --------- --------- --------- --------- --------- --------- ---
    For further information on ELF file data sections, execute command Elf.PrintSectionInfo(0).
    Debug.ReadIntoInstCache: updated instruction information within 1 code ranges (0x30002000-0x3002BBF6)
    RTT active
    Debug.SetConnectMode (CM_DOWNLOAD_RESET);
    Debug.Start();
    Executed J-Link command "ScriptFile=C:/WORK/Git-Repo/horeb/__ide/MIMXRT1176/iar/evkbmimxrt1170_connect_cm4_cm7side.jlinkscript"
    Device "MIMXRT1176XXXA_M7" selected.
    InitTarget() start
    InitTarget() end - Took 12ms
    Found SW-DP with ID 0x6BA02477
    DPIDR: 0x6BA02477
    CoreSight SoC-400 or earlier
    AP map detection skipped. Manually configured AP map found.
    AP[0]: AHB-AP (IDR: Not set)
    AP[1]: AHB-AP (IDR: Not set)
    AP[2]: APB-AP (IDR: Not set)
    AP[0]: Core found
    AP[0]: AHB-AP ROM base: 0xE00FD000
    CPUID register: 0x411FC272. Implementer code: 0x41 (ARM)
    Cache: L1 I/D-cache present
    Found Cortex-M7 r1p2, Little endian.
    FPUnit: 8 code (BP) slots and 0 literal slots
    CoreSight components:
    ROMTbl[0] @ E00FD000
    [0][0]: E00FE000 CID B105100D PID 000BB4C8 ROM Table
    ROMTbl[1] @ E00FE000
    [1][0]: E00FF000 CID B105100D PID 000BB4C7 ROM Table
    ROMTbl[2] @ E00FF000
    [2][0]: E000E000 CID B105E00D PID 000BB00C SCS-M7
    [2][1]: E0001000 CID B105E00D PID 000BB002 DWT
    [2][2]: E0002000 CID B105E00D PID 000BB00E FPB-M7
    [2][3]: E0000000 CID B105E00D PID 000BB001 ITM
    [1][1]: E0041000 CID B105900D PID 001BB975 ETM-M7
    [1][2]: E0042000 CID B105900D PID 004BB906 CTI
    [0][1]: E0043000 CID B105900D PID 001BB908 CSTF
    I-Cache L1: 32 KB, 512 Sets, 32 Bytes/Line, 2-Way
    D-Cache L1: 32 KB, 256 Sets, 32 Bytes/Line, 4-Way
    SetupTarget() start
    FlexRAM configuration is restored
    Syspll2 has been initialized already
    Syspll2 pfd1 has been initialized already
    SDRAM init done
    SetupTarget() end - Took 39ms
    Connected to target device.
    ResetTarget() start
    DISPLAYMIX SRC reset
    CM7 SRC reset
    ResetTarget() end - Took 31ms
    AfterResetTarget() start
    FlexRAM configuration is restored
    Syspll2 has been initialized already
    Syspll2 pfd1 has been initialized already
    SDRAM init done
    AfterResetTarget() end - Took 39ms
    J-Link: Flash download: Bank 0 @ 0x30000000: 1 range affected (196608 bytes)
    J-Link: Flash download: Total: 2.975s (Prepare: 0.180s, Compare: 1.038s, Erase: 0.425s, Program: 0.641s, Verify: 0.607s, Restore: 0.082s)
    J-Link: Flash download: Program speed: 299 KB/s
    Debug.Halt();
    Debug.StepOver();
    Debug.StepOver();
    Debug.Stop();
    Disconnected from target device.

    Please find the attached Jlink log.

    Can you please address me to make it working?
    Many thanks
    T.
    Files
    • __jlink.log

      (825.59 kB, downloaded 260 times, last: )
  • Hi Tzan,

    please refer to the following WIKI articles:
    - wiki.segger.com/Debug_on_a_Target_with_Bootloader
    - wiki.segger.com/Ozone_detects_wrong_application_entry_point

    - wiki.segger.com/i.MXRT117x (please have a closer look at the section "Reset" in that article)


    It is rather likely that IAR IDE does some magic your Ozone project does not yet do. Probably PC/SP are set differently.


    Does that solve your issue?


    Best regards

    -- AlexD
    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.