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.

[参考译文] CC2745R10-Q1:其区域和密钥库闪存大小之间的关系

Guru**** 2421610 points
Other Parts Discussed in Thread: SYSCONFIG

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1533408/cc2745r10-q1-relationship-between-its-area-and-keystore-flash-size

器件型号:CC2745R10-Q1
主题:SysConfig 中讨论的其他器件

工具/软件:

您好、

其区域的基地址是什么?

此外、在 SDK9.10 中、是否要在其区域内保护“PSA 加密+密钥库“模块的密钥库闪存大小中指定的大小?

例如、在以下代码中、是否会在其区域内分配 8KB?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:

    它的面积是多少? 我以前没有听说过这个首字母缩略词。  

    PSA 密钥库存储在 HSM 固件上方的闪存区域中(地址为 0xE8000)。

    此致、

    Nima Behmanesh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:

    ITS 区域在以下源代码中指定:

    C:\ti\simplelink_lowpower_f3_SDK_9_10_00_83\source\third_party\hsmddk\include\Integration\Adapter_its\includ\build_dependencies
    flash_layout.h

    在文档中、仅显示名称、未给出详细信息。

    如果我们知道 flash_its_size、则可以找到它的基地址、但保留了多少大小?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好:

    很抱歉耽误您的时间。 您可以检查  通过 SysConfig 生成的 ti_drivers_config.c 文件:

    #include <third_party/hsmddk/include/Integration/Adapter_PSA/incl/adapter_psa_key_management.h>
    #include <ti/devices/DeviceFamily.h>
    #include DeviceFamily_constructPath(inc/hw_memmap.h)
    #include DeviceFamily_constructPath(inc/hw_device.h)
    
    uint8_t volatileAllocBuffer[KEYSTORE_VOLATILE_MEMORY_POOL_SIZE];
    const size_t volatileAllocBufferSizeBytes  = KEYSTORE_VOLATILE_MEMORY_POOL_SIZE;
    
    const size_t MBEDTLS_KEY_VOLATILE_COUNT    = KEYSTORE_VOLATILE_SLOT_COUNT;
    const size_t MBEDTLS_KEY_ASSET_STORE_COUNT = KEYSTORE_ASSET_STORE_SLOT_COUNT;
    /* For cache slots */
    const size_t MBEDTLS_KEY_PERSISTENT_COUNT  = KEYSTORE_PERSISTENT_SLOT_COUNT;
    /* For Key Store flash space */
    const size_t FLASH_KEY_PERSISTENT_COUNT    = KEYSTORE_PERSISTENT_NUM_KEYS;
    /* ITS flash area size */
    const size_t FLASH_ITS_SIZE                = KEYSTORE_FLASH_SIZE;
    
    
    psa_key_context_t gl_PSA_Key[KEYSTORE_TOTAL_SLOT_COUNT];
    
    #if ((KEYSTORE_FLASH_OFFSET + KEYSTORE_FLASH_SIZE) > FLASH_MAIN_SW_SIZE)
        #error "The configured KeyStore flash region goes beyond the accessible flash addresses on the device."
    #elif (KEYSTORE_FLASH_OFFSET < FLASH_MAIN_BASE)
        #error "The configured KeyStore flash region begins before the start of accessible flash on the device."
    #endif
    
    
    /* ITS flash area address, with 'Pointer' region type */
    const void *FLASH_ITS_ADDRESS = (void *) 0xe6000;

    我们可以看到 FLASH_ITS_SIZE 的值设置为 keystore flash_size、这是 SysConfig 中指示的大小:

    希望这能有所帮助!

    此致、

    Nima Behmanesh