This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2634: How to use the 128 kB TCM in Lockstep mode

Part Number: AM2634

Hi experts, 

Could you please guide how to enable using 128 kB TCM for core 0 in lockstep mode? In this way, the TCM size for core 0's program and data can be doubled and the operating speed can be improved further. 

Specifically, please guide how to achieve this in debug mode (NORTOS boot mode and using CCS to set up).

Best Regards, 

Will 

  • Sorry for the above mistake, it should be NOBOOT mode. 

  • Hi Will,

    Please see the GEL file <CCS>\ccs\ccs_base\emulation\gel\AM263x\AM263x.gel.

    For CCS 11.1:

    • Edit function Configure_R5F0()
    • For R5FSS0 in Lockstep mode, comment out: R5F_SS0_CoreB_unhalt();  //Release R5FSS0_1
    • For R5FSS1 in Lockstep mode, comment out: R5F_SS1_CoreB_unhalt();  //Release R5FSS1_1

    For CCS 11.2:

    • Edit function OnTargetConnect()
    • It seems there is a bug in this code. AM263x_Check_supported_mode() will return 0 for Dual & Lock-step mode support, but the OnTargetConnect configures the R5SS to Lockstep mode for this return value.
    • For R5SS in Lockstep mode, comment out all code involving Dual Core mode, leaving only Configure_Lockstep_mode().

    You must issue a System Reset (e.g. Run->Reset->System Reset from R5F while disconnected) or power cycle the board to change between Lockstep and Dual Core modes.

    R5FSS Lockstep or Dual mode status can be checked via the GEL hotmenu function: Scripts->AM263x Diagnostics->AM263x_dual_or_lock_step_mode_status

    Note R5F MPU settings and linker command files need to be adjusted for the TCMA/B 32->64 KB memory size increase.

    Regards,
    Frank

  • Hi Will,

    Can you please check whether your device supports both Dual Core mode and Lock Step mode and share the results?

    Configure the device for Dual Core and executing the GEL script to read the configured mode. Then do the same for Lock Step mode.

    The approach for CCS 11.1 should be clear from my previous comments.

    For CCS 11.2: C:\ti\ccs1120\ccs\ccs_base\emulation\gel\AM263x\AM263x.gel

    • Dual core: ensure only Configure_Dual_Core_mode() is executed
    • Lock step: ensure only Configure_Lockstep_mode() is executed

    Thanks and regards,
    Frank

  • Hi Frank, 

    Thanks for your help, me and my customer are trying what you said and will give you feedback soon. 

    Best Regards, 

    Will