[SOLVED] Using RTT in background mode with TI RM46

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

  • [SOLVED] Using RTT in background mode with TI RM46

    Hi,

    I'm using Segger RTT with A TI Hercules RM46L (ARM® Cortex®-R4F 32-Bit RISC CPU), and I want to use RTT in background mode.
    My problem is that the AP map detection seems to fail and fall back to the "Stop mode".

    imgur.com/a/7BwTDBY
    Imgur link because the forum is complaining about message size

    While the SEGGER wiki does not mention it supports the cortex-R core, the Using RTT on Cortex-A/R based devices application notes mention that it can be enabled if the AHB-AP exist

    imgur.com/a/RKgmcW6
    Imgur link because the forum is complaining about message size


    In the rm46l852 datasheet, there's mention that the AHB-AP exist

    imgur.com/a/KrjfgOD
    Imgur link because the forum is complaining about message size

    So according to this information, I think it should be feasible to enable it.
    It must be a configuration problem.

    How do I enable the RTT in background mode?

    I have tried to add the JlinkScritp without success

    Source Code

    1. int ConfigTargetSettings(void) {
    2. JLINK_SYS_Report("J-Link Script: ConfigTargetSettings(): Skip ECC RAM initialization");
    3. JLINK_ExecCommand("SetSkipInitECCRAMOnConnect = 1");
    4. JLINK_ExecCommand("SetIndexAHBAPToUse = 0");
    5. return 0;
    6. }


    As an additional note, I think I'm having a similar problem to this unresolved thread from 2019:
    [ABANDONED] TI RM57x (Cortex R5F) and RTT Background Mode

    Best,
    Gabriel
  • Hi Gabriel,

    RTT is already executed in background mode on the RM4x devices.
    The background AP is implemented natively, so no actions/script files on your side needed.

    You can verify this by opening the RTT tab in the J-Link Web Control Panel:
    wiki.segger.com/J-Link_-_Web_control_panel

    Only normal memory reads (e.g. via Mem32 in the J-Link Commander) will use stop mode,
    as background access mode is currently only used by RTT & HSS.

    I also answered you in the support ticket case.

    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: segger.com/ticket/

    Or you can contact us via e-mail.