Callisto4Bootloader: ROMC Register Masks

Callisto4Bootloader

Macros
ROMC Register Masks
Mapping Information » Edma_request » Iomuxc_pads » Device Peripheral Access Layer » ROMC Peripheral Access Layer

## Macros

#define | ROMC_ROMPATCHD_COUNT (8U)
#define | ROMC_ROMPATCHA_COUNT (16U)

## ROMPATCHD - ROMC Data Registers

#define | ROMC_ROMPATCHD_DATAX_MASK (0xFFFFFFFFU)
#define | ROMC_ROMPATCHD_DATAX_SHIFT (0U)
#define | ROMC_ROMPATCHD_DATAX(x) (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHD_DATAX_SHIFT)) & ROMC_ROMPATCHD_DATAX_MASK)

## ROMPATCHCNTL - ROMC Control Register

#define | ROMC_ROMPATCHCNTL_DATAFIX_MASK (0xFFU)
#define | ROMC_ROMPATCHCNTL_DATAFIX_SHIFT (0U)
#define | ROMC_ROMPATCHCNTL_DATAFIX(x) (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHCNTL_DATAFIX_SHIFT)) & ROMC_ROMPATCHCNTL_DATAFIX_MASK)
#define | ROMC_ROMPATCHCNTL_DIS_MASK (0x20000000U)
#define | ROMC_ROMPATCHCNTL_DIS_SHIFT (29U)
#define | ROMC_ROMPATCHCNTL_DIS(x) (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHCNTL_DIS_SHIFT)) & ROMC_ROMPATCHCNTL_DIS_MASK)

## ROMPATCHENL - ROMC Enable Register Low

#define | ROMC_ROMPATCHENL_ENABLE_MASK (0xFFFFU)
#define | ROMC_ROMPATCHENL_ENABLE_SHIFT (0U)
#define | ROMC_ROMPATCHENL_ENABLE(x) (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHENL_ENABLE_SHIFT)) & ROMC_ROMPATCHENL_ENABLE_MASK)

## ROMPATCHA - ROMC Address Registers

#define | ROMC_ROMPATCHA_THUMBX_MASK (0x1U)
#define | ROMC_ROMPATCHA_THUMBX_SHIFT (0U)
#define | ROMC_ROMPATCHA_THUMBX(x) (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHA_THUMBX_SHIFT)) & ROMC_ROMPATCHA_THUMBX_MASK)
#define | ROMC_ROMPATCHA_ADDRX_MASK (0x7FFFFEU)
#define | ROMC_ROMPATCHA_ADDRX_SHIFT (1U)
#define | ROMC_ROMPATCHA_ADDRX(x) (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHA_ADDRX_SHIFT)) & ROMC_ROMPATCHA_ADDRX_MASK)

## ROMPATCHSR - ROMC Status Register

#define | ROMC_ROMPATCHSR_SOURCE_MASK (0x3FU)
#define | ROMC_ROMPATCHSR_SOURCE_SHIFT (0U)
#define | ROMC_ROMPATCHSR_SOURCE(x) (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHSR_SOURCE_SHIFT)) & ROMC_ROMPATCHSR_SOURCE_MASK)
#define | ROMC_ROMPATCHSR_SW_MASK (0x20000U)
#define | ROMC_ROMPATCHSR_SW_SHIFT (17U)
#define | ROMC_ROMPATCHSR_SW(x) (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHSR_SW_SHIFT)) & ROMC_ROMPATCHSR_SW_MASK)

## Detailed Description

## Macro Definition Documentation

## ◆ ROMC_ROMPATCHA_ADDRX

#define ROMC_ROMPATCHA_ADDRX | ( |  | x | ) | (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHA_ADDRX_SHIFT)) & ROMC_ROMPATCHA_ADDRX_MASK)

Definition at line 36088 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHA_ADDRX_MASK

#define ROMC_ROMPATCHA_ADDRX_MASK (0x7FFFFEU)

Definition at line 36086 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHA_ADDRX_SHIFT

#define ROMC_ROMPATCHA_ADDRX_SHIFT (1U)

Definition at line 36087 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHA_COUNT

#define ROMC_ROMPATCHA_COUNT (16U)

Definition at line 36092 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHA_THUMBX

#define ROMC_ROMPATCHA_THUMBX | ( |  | x | ) | (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHA_THUMBX_SHIFT)) & ROMC_ROMPATCHA_THUMBX_MASK)

THUMBX 0b0..Arm patch 0b1..THUMB patch (ignore if data fix)

Definition at line 36085 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHA_THUMBX_MASK

#define ROMC_ROMPATCHA_THUMBX_MASK (0x1U)

Definition at line 36079 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHA_THUMBX_SHIFT

#define ROMC_ROMPATCHA_THUMBX_SHIFT (0U)

Definition at line 36080 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHCNTL_DATAFIX

#define ROMC_ROMPATCHCNTL_DATAFIX | ( |  | x | ) | (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHCNTL_DATAFIX_SHIFT)) & ROMC_ROMPATCHCNTL_DATAFIX_MASK)

DATAFIX 0b00000000..Address comparator triggers a opcode patch 0b00000001..Address comparator triggers a data fix

Definition at line 36056 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHCNTL_DATAFIX_MASK

#define ROMC_ROMPATCHCNTL_DATAFIX_MASK (0xFFU)

Definition at line 36050 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHCNTL_DATAFIX_SHIFT

#define ROMC_ROMPATCHCNTL_DATAFIX_SHIFT (0U)

Definition at line 36051 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHCNTL_DIS

#define ROMC_ROMPATCHCNTL_DIS | ( |  | x | ) | (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHCNTL_DIS_SHIFT)) & ROMC_ROMPATCHCNTL_DIS_MASK)

DIS 0b0..Does not affect any ROMC functions (default) 0b1..Disable all ROMC functions: data fixing, and opcode patching

Definition at line 36063 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHCNTL_DIS_MASK

#define ROMC_ROMPATCHCNTL_DIS_MASK (0x20000000U)

Definition at line 36057 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHCNTL_DIS_SHIFT

#define ROMC_ROMPATCHCNTL_DIS_SHIFT (29U)

Definition at line 36058 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHD_COUNT

#define ROMC_ROMPATCHD_COUNT (8U)

Definition at line 36046 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHD_DATAX

#define ROMC_ROMPATCHD_DATAX | ( |  | x | ) | (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHD_DATAX_SHIFT)) & ROMC_ROMPATCHD_DATAX_MASK)

Definition at line 36042 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHD_DATAX_MASK

#define ROMC_ROMPATCHD_DATAX_MASK (0xFFFFFFFFU)

Definition at line 36040 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHD_DATAX_SHIFT

#define ROMC_ROMPATCHD_DATAX_SHIFT (0U)

Definition at line 36041 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHENL_ENABLE

#define ROMC_ROMPATCHENL_ENABLE | ( |  | x | ) | (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHENL_ENABLE_SHIFT)) & ROMC_ROMPATCHENL_ENABLE_MASK)

ENABLE 0b0000000000000000..Address comparator disabled 0b0000000000000001..Address comparator enabled, ROMC will trigger a opcode patch or data fix event upon matching of the associated address

Definition at line 36074 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHENL_ENABLE_MASK

#define ROMC_ROMPATCHENL_ENABLE_MASK (0xFFFFU)

Definition at line 36068 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHENL_ENABLE_SHIFT

#define ROMC_ROMPATCHENL_ENABLE_SHIFT (0U)

Definition at line 36069 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHSR_SOURCE

#define ROMC_ROMPATCHSR_SOURCE | ( |  | x | ) | (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHSR_SOURCE_SHIFT)) & ROMC_ROMPATCHSR_SOURCE_MASK)

SOURCE 0b000000..Address Comparator 0 matched 0b000001..Address Comparator 1 matched 0b001111..Address Comparator 15 matched

Definition at line 36103 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHSR_SOURCE_MASK

#define ROMC_ROMPATCHSR_SOURCE_MASK (0x3FU)

Definition at line 36096 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHSR_SOURCE_SHIFT

#define ROMC_ROMPATCHSR_SOURCE_SHIFT (0U)

Definition at line 36097 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHSR_SW

#define ROMC_ROMPATCHSR_SW | ( |  | x | ) | (((uint32_t)(((uint32_t)(x)) << ROMC_ROMPATCHSR_SW_SHIFT)) & ROMC_ROMPATCHSR_SW_MASK)

SW 0b0..no event or comparator collisions 0b1..a collision has occurred

Definition at line 36110 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHSR_SW_MASK

#define ROMC_ROMPATCHSR_SW_MASK (0x20000U)

Definition at line 36104 of file MIMXRT1062.h.

## ◆ ROMC_ROMPATCHSR_SW_SHIFT

#define ROMC_ROMPATCHSR_SW_SHIFT (17U)

Definition at line 36105 of file MIMXRT1062.h.