FD32M0P Microcontroller SDK
Loading...
Searching...
No Matches
romtable_tests.c File Reference
#include "CMSDK_CM0plus.h"
#include "core_cm0plus.h"
#include <stdio.h>
#include "uart_stdout.h"
#include "mcu_debugtester_interface.h"
#include "CMSDK_driver.h"
#include "config_id.h"
#include "debugtester_functions.h"
#include "romtable_tests.h"
Include dependency graph for romtable_tests.c:

Macros

#define COMPMAX   10

Functions

void FollowCoreSightPointer (uint32_t cs_pointer)
uint32_t CheckVal (char *name, uint32_t actual, uint32_t expected)
void CheckHex (char *name, uint32_t actual, uint32_t expected)
void CheckPresence (char *name, uint32_t actual, uint32_t expected)
void InitComponentsList (void)
void ReportResults (void)
CS_Type * FindComponent (uint32_t base_address)
void GetCoreSightIDs (CS_Type *comp_ptr)
void CheckDisplayCID (CS_Type *comp_ptr)
void CheckDisplayPID (CS_Type *comp_ptr)
void DisplayDecodedPID (CS_Type *comp_ptr)
uint32_t LookupARMCSPart (uint32_t)
int main (void)

Variables

CS_Type Components [COMPMAX]
uint32_t NumRomTables = 0
uint32_t Errors = 0

Macro Definition Documentation

◆ COMPMAX

#define COMPMAX   10

Function Documentation

◆ FollowCoreSightPointer()

void FollowCoreSightPointer ( uint32_t cs_pointer)

References CheckDisplayCID(), CheckDisplayPID(), Errors, FindComponent(), FollowCoreSightPointer(), and GetCoreSightIDs().

Referenced by FollowCoreSightPointer(), and main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckVal()

uint32_t CheckVal ( char * name,
uint32_t actual,
uint32_t expected )

References CheckHex().

Here is the call graph for this function:

◆ CheckHex()

void CheckHex ( char * name,
uint32_t actual,
uint32_t expected )

References Errors.

Referenced by CheckVal().

Here is the caller graph for this function:

◆ CheckPresence()

void CheckPresence ( char * name,
uint32_t actual,
uint32_t expected )

References Errors.

◆ InitComponentsList()

void InitComponentsList ( void )

References COMPMAX, and Components.

Referenced by main().

Here is the caller graph for this function:

◆ ReportResults()

void ReportResults ( void )

References COMPMAX, Components, and Errors.

Referenced by main().

Here is the caller graph for this function:

◆ FindComponent()

CS_Type * FindComponent ( uint32_t base_address)

References COMPMAX, Components, and Errors.

Referenced by FollowCoreSightPointer().

Here is the caller graph for this function:

◆ GetCoreSightIDs()

void GetCoreSightIDs ( CS_Type * comp_ptr)

References ARM_JEP_CONT, ARM_JEP_ID, and NumRomTables.

Referenced by FollowCoreSightPointer().

Here is the caller graph for this function:

◆ CheckDisplayCID()

void CheckDisplayCID ( CS_Type * comp_ptr)

Referenced by FollowCoreSightPointer().

Here is the caller graph for this function:

◆ CheckDisplayPID()

void CheckDisplayPID ( CS_Type * comp_ptr)

References DisplayDecodedPID(), EXPECTED_CUST_JEP_CONT, EXPECTED_CUST_JEP_ID, and LookupARMCSPart().

Referenced by FollowCoreSightPointer().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DisplayDecodedPID()

void DisplayDecodedPID ( CS_Type * comp_ptr)

Referenced by CheckDisplayPID().

Here is the caller graph for this function:

◆ LookupARMCSPart()

uint32_t LookupARMCSPart ( uint32_t partnum)

References ARMCSParts, and NumARMCSParts.

Referenced by CheckDisplayPID().

Here is the caller graph for this function:

◆ main()

int main ( void )

Variable Documentation

◆ Components

CS_Type Components[COMPMAX]

◆ NumRomTables

uint32_t NumRomTables = 0

Referenced by GetCoreSightIDs().

◆ Errors