Document ID
APT-DS-SLVS-RX-0001
Revision
2.1
IP version
3.4.1
Release date
November 2026
Chapter 4: Register Map

4.8Programming ECC_BLOCK

In the ECC build each line payload is split into Basic Blocks of 224 information bytes and a last block with the remainder. ECC_BLOCK tells the core where the last block starts. Compute it from the sensor mode:

PL = ceil16(Line Length x Pixel Bit / 8) payload length in bytes, rounded up to 16 n = floor(PL / 224) r = PL mod 224 r != 0 : ECC_BLOCK = (r << 16) | n n Basic Blocks, then a last block of r bytes r == 0 : ECC_BLOCK = (224 << 16) | (n - 1) the last Basic Block is the last block

Example: 5328 pixels at RAW12 is 7,992 bytes, rounded up to PL = 8,000. Then n = 35 and r = 160, so ECC_BLOCK = 0x00A00023. When the sensor reports the line length in the packet header, the core derives the same layout itself; keep ECC_BLOCK programmed for the line length the sensor sends.

Table 4-2.ECC_BLOCK values for common line formats.
ModeLine LengthPixel BitPL (bytes)nLast blockECC_BLOCK
IMX530 full width5328RAW12800035160 B0x00A00023
IMX547 full width2472RAW12371216128 B0x00800010
4K UHD3840RAW838401732 B0x00200011
Full HD1920RAW10240010160 B0x00A0000A
Exact blocks1792RAW817928224 B (last Basic Block)0x00E00007