PROCESSOR-SDK-AM62X: SDL ECC R5

Expert 2350 points
Part Number: PROCESSOR-SDK-AM62X
Other Parts Discussed in Thread: SK-AM62

Tool/software:

MCU SDK version: mcu_plus_sdk_am62x_10_01_00_33

Test EVM: SK-AM62

CCS version: 12.8.1

I imported the example from C:\ti\mcu_plus_sdk_am62x_10_01_00_33\examples\sdl\ecc\am62x-sk\r5fss0-0_freertos

Then, I compiled the R5 projects.

I use the file below to flash the default examples, then repower the EVM.

Use the CCS to load the ecc_app_am62x-sk_r5fss0-0_freertos_ti-arm-clang.out, and the CCS does not stop at the main function.

It just runs and there is no uart log from DM core.

default_sbl_null_hs_fs.cfg

  • Hello,

    The SDL Freertos examples have sciserver integrated in them. Because of this it is not possible to load them directly from CCS. You would have to flash them from sbl null cfg file by replacing the Appimage path. The nortos example which do not have sciserver integrated can be loaded directly from CCS. Can you try loading the nortos example and check if it works.

    Regards,

    Nihar Potturu

  • Below is the log to use CCS load ecc_app_am62x-sk_r5fss0-0_nortos_ti-arm-clang.out.

    It Works.

    [MAIN_Cortex_R5_0_0] Sciclient direct init..... SUCCESS
    
    ECC Example Application
    
    ECC_Example_init: Init MAIN ESM complete 
    
    ECC_Example_init: Init WKUP ESM complete 
    
    
    SDTF_init: AGGR0 ECC Init complete 
    
    ESM Safety Example tests: starting
    
    AGGR0 Double bit error inject Example test UC-1: starting
    
    AGGR0 Double bit error inject test: Subtype 0x00000001 test complete
    
    Waiting for ESM Interrupt
    
    UC-1: Got Low priority ESM Interrupt 
    
    AGGR0 Single bit error inject Example test UC-2: starting
    
    AGGR0 Single bit error inject test: Subtype 0x00000002 test complete
    
    Waiting for ESM Interrupt
    
    UC-2: Got High priority ESM Interrupt
    
    AGGR0 Memory Parity inject Example test UC-3: starting
    
    AGGR0 Single bit error self test: Subtype 0x00000001 test complete
    
    Waiting for ESM Interrupt
    
    UC-3: Memory Parity Error Test Complete 
    
    ECC Safety Example tests: success
    
    ECC UC-1 and UC-2 Test
    
    All Use_Cases have passed.
    

    But when I flashed them from sbl null cfg file by replacing the Appimage path

    --file=sbl_prebuilt/am62x-sk/WZ_Debug/ecc_app_am62x-sk_r5fss0-0_freertos_ti-arm-clang.appimage.hs_fs --operation=flash --flash-offset=0xA00000

    [19:50:50.190]收←◆Sciserver Testapp Built On: Dec 19 2024 04:51:59
    Sciserver Version: v2024.12.0.0-REL.MCUSDK.K3.10.01.00.33+
    RM_PM_HAL Version: v10.01.08
    Starting Sciserver..... PASSED
    
    ECC Example Application
    ECC_Example_init: Init MAIN ESM complete 
    ECC_Example_init: Init WKUP ESM complete 
    
    
    SDTF_init: AGGR0 ECC Init complete 
    
    ESM Safety Example tests: starting
    
    AGGR0 Double bit error inject Example test UC-1: starting
    

  • Hello,

    Increasing the SVC stack size should resolve this issue as well.

    Regards,

    Nihar Potturu

  • Yes, you are right.  change from 0x100 to 0x200 __SVC_STACK_SIZE = 0x0200; /* This is the size of stack when R5 is in SVC mode */