AM62Px MCU+ SDK  10.01.00
CPUID for ARMv7 (ARM R5)

Features Supported

  • APIs to get R5F Cluster Id and Core Id.

Features NOT Supported

NA

Important Usage Guidelines

  • Refer to ARMv7-R architecture manual for more details
  • API should be used in priviledge mode only.

Example Usage

Include the below file to access the APIs,

#include <drivers/hw_include/cslr_soc.h>

Example to get R5F Cluster Id and Core Id,

/* Get Core ID Info */
CSL_armR5GetCpuID(&cpuInfo);
if (cpuInfo.grpId == (uint32_t)CSL_ARM_R5_CLUSTER_GROUP_ID_0) /* R5SS0-0 */
{
if(cpuInfo.cpuID == CSL_ARM_R5_CPU_ID_0)
{
/* R5FSS0 Core 0 */
}
}

API

APIs for CPU ID

CSL_ARM_R5_CLUSTER_GROUP_ID_0
#define CSL_ARM_R5_CLUSTER_GROUP_ID_0
R5 Cluster Group ID0.
Definition: cslr_soc_defines.h:90
CSL_ArmR5CPUInfo::grpId
uint32_t grpId
Definition: CpuIdP.h:62
CSL_ArmR5CPUInfo
Structure containing the CPU Info such as CPU ID and Cluster Group ID.
Definition: CpuIdP.h:57
CpuIdP.h
CSL_ArmR5CPUInfo::cpuID
uint32_t cpuID
Definition: CpuIdP.h:58
CSL_ARM_R5_CPU_ID_0
#define CSL_ARM_R5_CPU_ID_0
R5 Core ID0.
Definition: cslr_soc_defines.h:100
CSL_armR5GetCpuID
void CSL_armR5GetCpuID(CSL_ArmR5CPUInfo *cpuInfo)
Get the cluster group and CPU ID for current R5 Core.