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.

MCU-PLUS-SDK-AM263X: Crypto Examples for am263x-lp

Part Number: MCU-PLUS-SDK-AM263X

Hello,

The latest SDK release 8.05 examples have included security/crypto drivers - but only for the board am263x-cc. Can these crypto examples also work for am263x-lp board? 

And how about HW accelerator for CRC driver examples / APIs? I didn't see any in this release.

Thanks,

Wenkai

  • Hi Wenkai,

    Can these crypto examples also work for am263x-lp board?

    Of course. The crypto accelerators will work for AM263x-LP as well. For now the examples do not have support for the same. We will add those. If you require any help in porting the same, we can help on the same.

    how about HW accelerator for CRC driver examples / APIs

    We do have CRC supported in DTHE but the driver and example for the same is still under development.

    Best Regards,
    Aakash

  • Hi Aakash,

    I tried to run this example on am263x-lp using sbl_qspi bootloader but it stuck at the beginning of the application like this:

    Starting QSPI Bootloader ... 
    [BOOTLOADER_PROFILE] Boot Media       : NOR SPI FLASH 
    [BOOTLOADER_PROFILE] Boot Media Clock : 80.000 MHz 
    [BOOTLOADER_PROFILE] Boot Image Size  : 26 KB 
    [BOOTLOADER_PROFILE] Cores present    : 
    r5f0-0
    [BOOTLOADER PROFILE] System_init                      :         67us 
    [BOOTLOADER PROFILE] Drivers_open                     :         32us 
    [BOOTLOADER PROFILE] LoadHsmRtFw                      :         22us 
    [BOOTLOADER PROFILE] Board_driversOpen                :        233us 
    [BOOTLOADER PROFILE] CPU load                         :       1593us 
    [BOOTLOADER_PROFILE] SBL Total Time Taken             :       1950us 
    
    Image loading done, switching to application ...
    [CRYPTO] SHA example started ...

    Any idea what could be wrong?

    Thanks,

    Wenkai

  • Hi Wenkai,

    Is that so ? Let me replicate the issue on my end as well. Which release are you using by the way ?

    Best Regards,
    Aakash

  • I was using mcu_plus_sdk_am263x_08_05_00_24, which just has security/crypto drivers with it. And the example is: examples\security\crypto\dthe_sha\crypto_sha_256

    I suspect that HSM firmware couldn't bypass the firewalls to make crypto modules available.

    Thanks,

    Wenkai

  • Hi Wenkai,

    I understand the problem. Can you check the device version as well ?

    You can use this FAQ for the same - https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1170785/faq-mcu-plus-sdk-am243x-how-to-identify-if-the-device-is-gp-device-or-hs-device

    Make sure to follow the steps for AM263x.

    Best Regards,
    Aakash

  • Hi Aakash,

    I checked device type and it is HS-FS. Can you find anything wrong from following detailed device info? I noticed Cust MPK Hash is all zeros - is it normal?

    ---------------------------
    SoC ID HW Info:
    ---------------------------
    partID               : 0x0
    partNumber           : 0x2
    PGVer                : 0x2
    ROMVer               : 0x1
    MetalVer             : 0x0
    ---------------------------
    SoC ID R5 ROM Info:
    ---------------------------
    r5 ROM Ver           : 0x10000
    ---------------------------
    SoC ID HSM Pub ROM Info:
    ---------------------------
    devName              : AM263X
    devType              : 0xabcd0004  -->  HS_FS
    hsm ROM Ver          : 0x10000
    ---------------------------
    SoC ID HSM Sec ROM Info:
    ---------------------------
    Prime                : 0x1
    Key Rev              : 0x0
    Key Count            : 0x0
    SWRV SBL             : 0x0
    SWRV HSM             : 0x0
    TI MPK Hash          : 50d39632c39b4506e692c404625dcb0762b9770ae7166e7f1fb537404b7beceba254256c884d098cdb906573b92ee15169f9493be861bef6e4b1c8ffe67edb9c
    Cust MPK Hash        : 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    Unique ID            : 5c674bcee6a993efa981a4dbc93c9cd1c81af7e49b4976ebbe2ee880b6b7eccfea8e8a8f4e005a604bb264fbd144fa3bf1b36abc1423a9b6e01779800f183873
    

    Thanks,

    Wenkai

  • Hi Wenkai,

    Security Examples for am263x is only expected to be functional on these version of device type.

    Make note of the PGVer, ROMVersion and the r5 ROM Version.

    Please request for the new PG of AM263x or an upgrade.

    ---------------------------
    SoC ID HW Info:
    ---------------------------
    partID               : 0x0
    partNumber           : 0x2
    PGVer                : 0x3
    ROMVer               : 0x2
    MetalVer             : 0x1
    ---------------------------
    SoC ID R5 ROM Info:
    ---------------------------
    r5 ROM Ver           : 0x10100
    ---------------------------
    SoC ID HSM Pub ROM Info:
    ---------------------------
    devName              : AM263X
    devType              : 0xabcd0004  -->  HS_FS
    hsm ROM Ver          : 0x10100
    ---------------------------
    SoC ID HSM Sec ROM Info:
    ---------------------------
    Prime                : 0x1
    Key Rev              : 0x0
    Key Count            : 0x0
    SWRV SBL             : 0x0
    SWRV HSM             : 0x0
    TI MPK Hash          : ec54cc16cd1ffccab7fd81fd82c998b305c6ac0c12cccf21a610fc1ad7159b1ad20acd69adabf72f1eed15021e26766d2f212d135b6bebf5e5e76c06ac87a6e4
    Cust MPK Hash        : 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    Unique ID            : 2b4063d1a3398907e608a0912c37e2a8c899a274d3f729994411d88610155f6f7ae3894be5acce259c53b9e40b9a329b422306437988666ac8e28a6e63adcfca

    Snippet for the same is here -

    I noticed Cust MPK Hash is all zeros - is it normal?

    Cust MPK Hash is normally zero. It is only available if the MPK is flashed with OTP key-writer tool.

    Hope this helps.

    Best Regards,
    Aakash

  • Please request for the new PG of AM263x or an upgrade

    How do I request for a new PG or an upgrade? Do I need to buy a new LaunchPad board?

    Thanks,

    Wenkai

  • Hi ,

    Can you reach out to Murphy, Sean <s-murphy1@ti.com> or Kumar, V C <vckumar@ti.com> based on your requirement ?

    They would be best supportive for such cases.

    Best Regards,
    Aakash