The blocks of a UF2 file are not the program: the program is what a board holds in flash after the blocks have been written. This page describes how the explorer puts the blocks together, how it decides which processor the code is for, and where it looks for the first instructions. The format itself is described on blocks and flags.
Assembling the image
- Only blocks with correct magic numbers, without the not-main-flash flag and without the file-container flag are written to flash.
- The blocks are grouped by family ID (blocks without one are a group of their own), and each group is its own image.
- Each block’s payload goes to its target address. Blocks that touch make one segment; blocks with a hole between them make two. A hole is shown as a gap (information, not an error), and its size is the number of bytes of flash that the file does not write. The UF2 README calls each block “self-contained and independent of others” and gives it its own target address; it nowhere requires the addresses to be contiguous.
- Where two blocks write the same addresses, the one later in the file wins, as when a board writes them in arrival order. The explorer reports it as an overlap.
- A block written at a lower address than the block before it, in the same family, is counted as out of order. That is normal for some tools and is not a fault.
- When the file holds several families the one with the most data is shown; the choice Family to show picks another.
A real example is Pimoroni’s MicroPython for the Presto, presto-v1.0.0-micropython-with-filesystem.uf2: one family
(RP2350_ARM_S), two segments (the firmware from 0x10000000 and a filesystem from 0x10200000) and a gap of
831,488 bytes between them. Another, flash_nuke.uf2, holds two families whose blocks go to the same RAM addresses, one for
the RP2040 and one for the “absolute” download used by the RP2350.
Which processor
A UF2 file never says which processor runs its code; only the family ID hints at the chip. The explorer keeps a table of the processor core of each chip family, and every entry cites a public source: a vendor datasheet, a vendor product page, or a header or description file that the vendor publishes (the last column links to the list of sources below; raw copies of each are kept with the site’s test material). The UF2 repository’s own list gives only the family names, never the core. The table sets the default of the Processor choice; the choice overrides it.
Unknown cores. A family that is not in the table has an Unknown core: the viewer’s Core column says Unknown,
no processor is chosen for the file, and the code is shown as bytes only until you pick one in the Processor dropdown. Three
families of the list are left, and none of them names a chip: 0xe48bff57 (RP2XXX_ABSOLUTE: “Absolute (unpartitioned)
download”) and 0xe48bff58 (RP2XXX_DATA: “Data partition download”) are download layouts that hold data or a whole-flash image
for Raspberry Pi microcontrollers (the chips that run the code have their own family IDs), and 0xf4b47471 (Adaboot) is a
bootloader (“Adafruit maintained MCUboot+UF2 bootloader that manages board checks using extension tags”), not a chip. Every other
family of the list, 77 of 80, has a row below. A family ID that is not in the list at all (a private ID) is also Unknown.
Some rows are weaker than a datasheet and say so in their source entry: the cores of the Realtek Ameba parts come from the macros of Realtek’s SDK headers (no datasheet could be fetched), the Bouffalo RISC-V extension strings come from the Bouffalo SDK’s toolchain table (a compiler setting), the ESP32-H4 and H21 from ESP-IDF’s own build files (their datasheets could not be fetched), the CSK4 from the CSK4002 brief only, and the WCH, Analog Devices, Puya, GigaDevice and XRadio rows from vendor SDK headers or READMEs. The Beken parts are an ARM968E-S, the RZ/A1LU a Cortex-A9 and the FX2 an 8051: none of them is a Cortex-M, so they are decoded by the decoders named under “Cores that were bytes only” below (our Thumb decoder is for Cortex-M). The CSK6 is a Cortex-M33 by its device tree (the datasheet says “ARM STAR”) and is decoded as ARMv8-M.
| Family ID | Name | Core | Source |
|---|---|---|---|
0xe48bff56 | RP2040 | Cortex-M0+ | rp2040 |
0xe48bff59 | RP2350_ARM_S | Cortex-M33 | rp2350 |
0xe48bff5b | RP2350_ARM_NS | Cortex-M33 | rp2350 |
0xe48bff5a | RP2350_RISCV | Hazard3 RV32IMAC+ | rp2350 |
0x647824b6 | STM32F0 | Cortex-M0 | st-f0 |
0x5ee21072 | STM32F1 | Cortex-M3 | st-f1 |
0x5d1a0a2e | STM32F2 | Cortex-M3 | st-f2 |
0x6b846188 | STM32F3 | Cortex-M4 | st-f3 |
0x57755a57 | STM32F4 | Cortex-M4 | st-f4 |
0x6d0922fa | STM32F407 | Cortex-M4 | st-f4 |
0x8fb060fe | STM32F407VG | Cortex-M4 | st-f4 |
0x2dc309c5 | STM32F411xE | Cortex-M4 | st-f411 |
0x06d1097b | STM32F411xC | Cortex-M4 | st-f411 |
0x53b80f00 | STM32F7 | Cortex-M7 | st-f7 |
0x300f5633 | STM32G0 | Cortex-M0+ | st-g0 |
0x4c71240a | STM32G4 | Cortex-M4 | st-g4 |
0x4e8f1c5d | STM32H5 | Cortex-M33 | st-h5 |
0x6db66082 | STM32H7 | Cortex-M7 | st-h7 |
0x202e3a91 | STM32L0 | Cortex-M0+ | st-l0 |
0x1e1f432d | STM32L1 | Cortex-M3 | st-l1 |
0x00ff6919 | STM32L4 | Cortex-M4 | st-l4 |
0x04240bdf | STM32L5 | Cortex-M33 | st-l5 |
0x70d16653 | STM32WB | Cortex-M4 | st-wb |
0x21460ff0 | STM32WL | Cortex-M4 | st-wl |
0x1b57745f | NRF52 | Cortex-M4 | nrf52 |
0x621e937a | NRF52833 | Cortex-M4 | nrf52 |
0xada52840 | NRF52840 | Cortex-M4 | nrf52 |
0x820d9a5f | NRF52820 | Cortex-M4 | nrf52 |
0x72721d4e | NRF52832xxAA | Cortex-M4 | nrf52 |
0x6f752678 | NRF52832xxAB | Cortex-M4 | nrf52 |
0x68ed2b88 | SAMD21 | Cortex-M0+ | mchp-samd21 |
0x55114460 | SAMD51 | Cortex-M4 | mchp-samd51 |
0x1851780a | SAML21 | Cortex-M0+ | mchp-saml21 |
0x16573617 | ATMEGA32 | AVR8 (ATmega32, AVR5 instruction set) | mchp-atmega |
0x2abc77ec | LPC55 | Cortex-M33 | lpc55 |
0x4fb2d5bd | MIMXRT10XX | Cortex-M7 | rt10xx |
0x7be8976d | RA4M1 | Cortex-M4 | ra4m1 |
0x1c5f21b0 | ESP32 | Xtensa LX6 | esp32 |
0xbfdd4eee | ESP32S2 | Xtensa LX7 | esp32s2 |
0xc47e5767 | ESP32S3 | Xtensa LX7 | esp32s3 |
0x7eab61ed | ESP8266 | Tensilica L106 (Xtensa) | esp8266 |
0xd42ba06c | ESP32C3 | RV32IMC | esp32c3 |
0x2b88d29c | ESP32C2 | RV32IMAC | esp32c2 |
0x540ddf62 | ESP32C6 | RV32IMAC | esp32c6 |
0x332726f6 | ESP32H2 | RV32IMAC | esp32h2 |
0x3d308e94 | ESP32P4 | RV32IMAFC | esp32p4 |
0xf71c0343 | ESP32C5 | RV32IMAC | esp32c5 |
0x77d850c4 | ESP32C61 | RV32IMAC | esp32c61 |
0x9af03e33 | GD32VF103 | RV32IMAC (vendor library build flags; the datasheet says RISC-V 32-bit) | gd32vf103 |
0x31d228c6 | GD32F350 | Cortex-M4 | gd32f3x0 |
0x22e0d6fc | RTL8710B | Cortex-M4 | amebaz |
0x3379cfe2 | RTL8720D | KM4: ARMv8-M Mainline (application core; the chip also has an ARMv8-M Baseline KM0) | amebad |
0x51e903a8 | XR809 | Cortex-M4F | xr809 |
0x5a18069b | FX2 | Enhanced 8051 | fx2 |
0x675a40b0 | BK7231U | ARM968E-S (ARMv5TE) | beken |
0x7b3ef230 | BK7231N | ARM968E-S (ARMv5TE) | beken |
0x6a82cc42 | BK7251 | ARM968E-S (ARMv5TE) | beken |
0x7f83e793 | KL32L2 | Cortex-M0+ | nxp-kl32 |
0x9fffd543 | RTL8710A | Cortex-M3 | ameba1 |
0xde1270b7 | BL602 | RV32IMAFC (SDK build flags; the datasheet says RISC CPU with FPU) | bl602 |
0x11de784a | M0SENSE | SiFive E24, RV32IMAFC (SDK build flags) | bl702 |
0x4b684d71 | MaixPlay-U4 | RV32IMAFC plus the P (DSP) extension, which the decoder does not decode (BL616/BL618 reference manual p. 27) | bl618 |
0xe08f7564 | RTL8720C | ARMv8-M Mainline with DSP (Cortex-M33 class) | amebaz2 |
0x4f6ace52 | CSK4 | RISC-V 32-bit (CSK4002) | csk4 |
0x6e7348a8 | CSK6 | Cortex-M33 (device tree; the datasheet says "ARM STAR") with a HiFi4 DSP core | csk6 |
0x9517422f | RZA1LU | Cortex-A9 (ARMv7-A) | rza1lu |
0xa0c97b8e | AT32F415 | Cortex-M4 | at32f415 |
0x699b62ec | CH32V | Qingke V4 (V4B, V4C: RV32IMAC; V4F: RV32IMACF; the custom XW instructions are not decoded; profile of the V4F) | ch32v |
0x7b8c32a7 | CH32V4X7 | Qingke V3V (RISC-V with the V vector extension) | ch32v4 |
0x7410520a | MAX32690 | Cortex-M4F (the chip also has a RISC-V core) | adi-max32690 |
0xd63f8632 | MAX32650 | Cortex-M4 | adi-max32650 |
0xf0c30d71 | MAX32666 | Cortex-M4 | adi-max32665 |
0x91d3fd18 | MAX78002 | Cortex-M4F (the chip also has a RISC-V core) | adi-max78002 |
0x7d7a66ef | PY32F071-UVK5-V3 | Cortex-M0+ | py32f071 |
0x9e0baa8a | ESP32H4 | RV32IMAFCB | esp32h4 |
0xb6dd00af | ESP32H21 | RV32IMAC | esp32h21 |
0x3101f7c1 | ESP32S31 | RV32IMAFCB (HP system, dual core) | esp32s31 |
Two entries differ from what this page said before it had sources: the ESP32-C2 is RV32IMAC in Espressif’s datasheet (the ESP8684 series datasheet, which says it is the ESP32-C2 group), not RV32IMC; and Espressif’s ESP8266EX datasheet calls the core “Tensilica L106”, with a pointer to the Xtensa instruction set, so the name “LX106” is no longer used. The BL602 and KL32L2 rows, once removed for lack of a source, are back, with sources. The ESP32-P4 row names its high-performance cores (RV32IMAFC); its low-power core is RV32IMAC. The GD32VF103 datasheet says “RISC-V 32-bit” but, in the pages read, not the extensions, so the decoder keeps its general default profile for it.
The ARM cores map to architecture levels as a decoder setting (this is not something the sources say): Cortex-M0 and M0+ to ARMv6-M,
M3 to ARMv7-M, M4 and M7 to ARMv7E-M, and the M33 to ARMv8-M Mainline with DSP. The Hazard3 cores of the RP2350 are read as RV32IMAC
with the extensions the RP2350 datasheet lists (page 227: C/Zca, Zba, Zbb, Zbs, Zbkb, Zcb, Zcmp, Zicsr, Zifencei; it does not list Zcmt,
so the profile has none). The floating-point unit option follows the source where it says: the nRF52 headers give an FPU on the nRF52832,
52833 and 52840 and none on the nRF52820 (__FPU_PRESENT 0), Artery’s header none on the AT32F415, Realtek’s none on the
RTL8720C, and the GD32F350, XR809, RTL8710B, RTL8720D and Analog Devices MAX parts one; for other cores the default follows the
architecture level (on for ARMv7E-M and ARMv8-M Mainline). The RISC-V profile strings of the ESP32-H4 and S31 (rv32imafcb, that is
Zba, Zbb and Zbs with IMAFC) and the Bouffalo parts come from the toolchain settings named in their sources.
Sources of the core table
- rp2040: RP2040 datasheet, p. 9 “Dual ARM Cortex-M0+ @ 133MHz”.
- rp2350: RP2350 datasheet, p. 14 “Dual Cortex-M33 or Hazard3 processors at 150 MHz”; p. 33 Hazard3 “implementing the RV32IMAC instruction set, plus extensions”; p. 227 the extension list.
- st-f0: ST’s CMSIS device header stm32f072xb.h: Cortex-M0.
- st-f1: stm32f103xb.h: Cortex-M3.
- st-f2: stm32f207xx.h: Cortex-M3.
- st-f3: stm32f303xe.h: Cortex-M4.
- st-f4: stm32f407xx.h: Cortex-M4.
- st-f411: stm32f411xe.h: Cortex-M4; ST’s stm32f4xx.h says this header covers the F411CC, RC and VC (the xC parts) as well as the xE parts.
- st-f7: stm32f746xx.h: Cortex-M7.
- st-g0: stm32g071xx.h: Cortex-M0+.
- st-g4: stm32g431xx.h: Cortex-M4.
- st-h5: stm32h563xx.h: “ARM Cortex-M33 Specific Interrupt Numbers”.
- st-h7: stm32h743xx.h: Cortex-M7 (
__CM7_REV). - st-l0: stm32l053xx.h: Cortex-M0+.
- st-l1: stm32l152xb.h: Cortex-M3.
- st-l4: stm32l476xx.h: Cortex-M4.
- st-l5: stm32l552xx.h: “ARM Cortex-M33 Specific Interrupt Numbers”.
- st-wb: stm32wb55xx.h: Cortex-M4.
- st-wl: stm32wle5xx.h: Cortex-M4.
- nrf52: Nordic’s nrfx MDK headers (tag v3.0.0,
nrf52840.h,nrf52833.h,nrf52820.h,nrf52.hfor the nRF52832): Cortex-M4. The generic NRF52 family is taken from these four chips. - mchp-samd21: Microchip SAMD21 device family pack description: Dcore “Cortex-M0+” for all 34 devices.
- mchp-samd51: SAMD51 pack description: “Cortex-M4”.
- mchp-saml21: SAML21 pack description: “Cortex-M0+”.
- mchp-atmega: ATmega pack description: ATmega32 has Dcore “AVR8” (an 8-bit AVR; the viewer has no AVR decoder).
- lpc55: NXP’s SVD of the LPC55S69: cpu CM33.
- rt10xx: NXP’s SVD of the MIMXRT1052: cpu CM7.
- ra4m1: Renesas FSP header R7FA4M1AB.h: “ARM Cortex-M4 Processor”; and the RA4M1 product page.
- esp32: ESP32 datasheet: “Xtensa single-/dual-core 32-bit LX6 microprocessor(s)”.
- esp32s2: ESP32-S2 datasheet: “Xtensa single-core 32-bit LX7 microprocessor”.
- esp32s3: ESP32-S3 datasheet: “Xtensa dual-core 32-bit LX7 microprocessor”.
- esp8266: ESP8266EX datasheet: the integrated “Tensilica L106 32-bit RISC processor”, with a pointer to the Xtensa Instruction Set Architecture summary.
- esp32c3: ESP32-C3 datasheet: “32-bit RISC-V single-core processor”, “RV32IMC ISA”.
- esp32c2: ESP8684 datasheet (the ESP32-C2 group): “RV32IMAC ISA”.
- esp32c6: ESP32-C6 datasheet: high-performance 32-bit RISC-V processor, “RV32IMAC ISA”.
- esp32h2: ESP32-H2 datasheet: “RV32IMAC ISA”.
- esp32p4: ESP32-P4 datasheet: HP RISC-V dual-core CPU, “RV32IMAFC ISA”.
- esp32c5: ESP32-C5 datasheet: “RV32IMAC ISA”.
- esp32c61: ESP32-C61 datasheet: “32-bit RISC-V single-core microprocessor”, “RV32IMAC ISA”.
- gd32vf103: GD32VF103 datasheet: “RISC-V 32-bit MCU” (no extensions named); and the GigaDevice firmware library Template/Makefile, line 64: “-march=rv32imac -mabi=ilp32 -mcmodel=medlow”.
- gd32f3x0: GigaDevice’s gd32f3x0.h as shipped in Zephyr’s hal_gigadevice: “configuration of the Cortex-M4 processor and core peripherals”,
__FPU_PRESENT 1U. A vendor header through a mirror, not a datasheet. - amebaz: Realtek’s SDK header rtl8710b.h and its
rtl8711b_vector.h(“Cortex-M4 Processor Exceptions Numbers”):__FPU_PRESENT 1,core_cm4.h. The same header can also selectcore_cm3.h, so this is weaker than a datasheet (none could be fetched). - amebad: Realtek’s SDK header rtl8721d.h (and the Arduino core’s boards.txt, which says
tarch=cortex-m33): two cores, KM4 (core_armv8mml.h, FPU present, the application core) and KM0 (core_armv8mbl.h). The names KM4 and KM0 and the pairing come from macro names and includes, not from prose. - xr809: XRadio’s SDK chip.h and config.mk:
__CONFIG_CPU_CM4Fgives__FPU_PRESENT 1, and the build default is__CONFIG_CPU_CM4F ?= y(a Cortex-M3 variant can be selected). - fx2: Cypress CY7C68013A (EZ-USB FX2LP) datasheet, through a distributor’s copy, p. 2: “Single-chip integrated USB 2.0 transceiver, smart SIE, and enhanced 8051 microprocessor”. The viewer has no 8051 decoder.
- beken: Beken’s bk_freertos_sdk application.mk: bk7231u, bk7231n and bk7251 are built with
-mcpu=arm968e-s -march=armv5te: an ARM968E-S (ARMv5TE), not a Cortex-M, so the Cortex-M decoder is not chosen. - nxp-kl32: NXP K32 L2 fact sheet, p. 1: “This family includes a low power Arm Cortex-M0+ processor”.
- ameba1: Realtek’s SDK header rtl8195a.h: “Cortex M3 Core Configuration”,
__CM3_REV 0x0200. - bl602: BL602/BL604 datasheet, p. 9: “32-bit RISC CPU contains FPU (floating-point unit) for 32-bit single-precision arithmetic”; the Bouffalo SDK documents say RISC-V and give rv32imafc_zicsr_zifencei / ilp32f in their toolchain table. The extension string is a toolchain setting, not a hardware statement.
- bl702: BL702/BL704/BL706 datasheet, p. 10: “32-bit RISC CPU contains FPU”; the bl_iot_sdk documents say “SiFive E24 Core RISC-V” and the SDK toolchain table gives rv32imafc_zicsr_zifencei.
- bl618: BL616/BL618 datasheet, p. 2: “32-bit RISC-V CPU with FPU and DSP”; and the BL616/BL618 reference manual v0.95, section 1.2.1, p. 27: “Supports RISC-V RV32IMAFCP instruction set” (P is the 0.9 packed-SIMD proposal the manual lists). The decoder has no P extension, so the profile is rv32imafc.
- amebaz2: Realtek’s SDK header rtl8710c.h: “Configuration of the ARM ARMV8MML Processor and Core Peripherals”,
__FPU_PRESENT 0,__DSP_PRESENT 1. - csk4: LISTENAI CSK4002 brief, p. 1: “CSK4002 是一款 32 位高效能 RISC-V CPU 处理器” (a 32-bit high-performance RISC-V CPU). Only the CSK4002 was found, not the CSK300x.
- csk6: the device tree
csk6.dtsiof the LISTENAI Zephyr port (samples/uf2/sources/listenai/), line 20, the CPU node:compatible = "arm,cortex-m33", with anarm,armv8m-mpuat line 26. The CSK6002 datasheet V1.8, p. 6, words it differently: “The CSK6 serial is a dual-core microcontroller embedded with an ARM STAR core and a HiFi4 core.” and names no Arm architecture. The table follows the device tree; a Cortex-M33 is Armv8-M Mainline with DSP, so the code is decoded as ARMv8-M Mainline with DSP. The device tree has no FPU property, so no FPU is claimed. If the core is a different one, choose another architecture in the options bar. - rza1lu: Renesas RZ/A1LU product page: “Main CPU | Cortex-A9”, “CPU | Cortex-A9 x 1”. The Mbed OS device header
RZ_A1LU.h(GR-LYCHEE port,samples/uf2/sources/renesas-rza1lu/), lines 642 and 645:#define __CORTEX_A 9Uand#define __FPU_PRESENT 1U, so the FPU (VFP) is present and the decoder’s VFP option is on. - at32f415: Artery’s at32f415.h: “configuration of the cortex-m4 processor and core peripherals”,
__FPU_PRESENT 0U. - ch32v: WCH’s CH32V20x README (CH32V203 “Qingke V4B”, CH32V208 “Qingke V4C”) and its CH32V307 README (“RISC-V4F processor”, “single-precision float point instruction sets added”). The family covers V4B, V4C and V4F parts and the READMEs give no extension string. The QingKeV4 Processor Manual V1.2 (English, a mirror copy; the Chinese V1.0 is on wch.cn) says: “V4 series all support RV32IMAC instruction set extensions, among which V4F supports single-precision hardware floating-point, i.e. RV32IMACF extensions”, and lists XW (custom compressed byte and half-word loads and stores) for V4B, V4C and V4F. The viewer therefore uses the V4F profile, rv32imafc, for the whole family (a superset of the V4B and V4C), and does not decode the XW instructions.
- ch32v4: WCH’s CH32V407/CH32V467 README: “Qingke 32-bit RISC-V3V core”, “Supports V vector instruction set”. No extension string, so no profile is set.
- adi-max32690: Analog Devices MSDK max32690.h:
__CM4_REV“Cortex-M4 Core Revision”,__FPU_PRESENT 1, and aRISCV_IRQn: the chip has a second, RISC-V core (the MSDK’s RISC-V build default is rv32imc_zicsr_zifencei). - adi-max32650: MSDK max32650.h:
__CM4_REV,__FPU_PRESENT 1. - adi-max32665: MSDK max32665.h:
__CM4_REV,__FPU_PRESENT 1. - adi-max78002: MSDK max78002.h:
__CM4_REV,__FPU_PRESENT 1and aRISCV_IRQn(a second, RISC-V core). - py32f071: py32f071xB.h (Puya’s header as mirrored in a community template): “CMSIS Cortex-M0+ Device Peripheral Access Layer Header File”.
- esp32h4: ESP-IDF soc_caps.h of the ESP32-H4:
SOC_CPU_CORES_NUM (2U),SOC_CPU_HAS_FPU 1; ESP-IDF’scomponents/soc/project_include.cmakeselects-march=rv32imafcbfor it. Espressif’s product page calls it a dual-core 32-bit RISC-V at 96 MHz with 384 KB RAM. No datasheet is published yet. - esp32h21: ESP-IDF soc_caps.h of the ESP32-H21:
SOC_CPU_CORES_NUM (1U); project_include.cmake selects-march=rv32imacfor the ESP32-H2 and H21. Espressif’s product page calls the H21 a single-core 32-bit RISC-V at 96 MHz. No datasheet is published yet. - esp32s31: ESP32-S31 datasheet (a pre-release, v0.5), p. 4: “32-bit RISC-V dual-core processor up to 320 MHz for the HP system”, “Single-precision floating-point unit (FPU) per core”; project_include.cmake selects
-march=rv32imafcb.
Where a source is a PDF, we read its text with a PDF reader and quote the lines above; where it is a header or description file, the quoted line is in its first lines. The sources were fetched on 19 November 2026.
The Cortex-M vector table
A Cortex-M processor starts by reading two words from its vector table: the initial stack pointer, then the address of the reset handler. The words after them are the addresses of the other exception handlers; each has its low bit set, the Thumb bit, because a Cortex-M runs Thumb instructions only. After the 16 system words come one word per device interrupt.
| Word | Exception | ARMv6-M | ARMv7-M and ARMv7E-M | ARMv8-M Mainline |
|---|---|---|---|---|
| 0 | Initial stack pointer | yes | yes | yes |
| 1 | Reset | yes | yes | yes |
| 2 | NMI | yes | yes | yes |
| 3 | HardFault | yes | yes | yes |
| 4 | MemManage | reserved | yes | yes |
| 5 | BusFault | reserved | yes | yes |
| 6 | UsageFault | reserved | yes | yes |
| 7 | SecureFault | reserved | reserved | yes |
| 8–10 | reserved | reserved | reserved | reserved |
| 11 | SVCall | yes | yes | yes |
| 12 | DebugMonitor | reserved | yes | yes |
| 13 | reserved | reserved | reserved | reserved |
| 14 | PendSV | yes | yes | yes |
| 15 | SysTick | yes | yes | yes |
| 16 and on | IRQ 0, 1, … | device | device | device |
The names are from the ARM architecture reference manuals as we know them; the viewer did not read the manuals. The table above is also how the viewer names the words; SecureFault is shown for ARMv8-M Mainline although a core without the Security Extension does not have it.
How many interrupts
The file does not say how many interrupts the chip has, so the explorer shows a number of words you choose: 48 by default (the 16 system words and 32 interrupts). The interrupt controller of a Cortex-M0 and M0+ has room for up to 32 interrupts, that of the larger cores for up to 240; a chip has fewer than its core allows. The words after the real table are code or data, so a larger number shows some of those as handlers. To keep code visible, the table is cut short where the first handler of the 16 system words lies at or after the 64th byte of the table: the words from there on are code, not table. A short table, with the reset handler right behind it, is therefore shown with only the words before the handler (at least 16).
Where the table is
The table is at the start of the image in most Cortex-M firmware. A flash image for the RP2040 is different: its boot ROM copies
256 bytes from the start of flash, checks them with a CRC-32 stored in the last four bytes, and runs them as a second-stage
bootloader that sets up the flash for execution in place; the program, with its vector table, follows at 0x10000100.
An image that is loaded into RAM, such as flash_nuke.uf2, may start with code instead.
The Vector table choice therefore offers: at the start, 256 bytes after the start, or none. Its default is the first of those two
positions (the second first for an RP2040 image in flash) that holds a table the viewer accepts: a stack pointer that is a multiple of 4
between 0x10000000 and 0x3FFFFFFF, a reset handler with the Thumb bit set, and every other handler zero or with the
Thumb bit set. If neither does, the default is none. That is a check of the words, not a way of telling code from data, and the choice
overrides it. The disassembly then opens at the reset handler, or at the start address you give.
Register and memory names
The viewer names the addresses in the ARMv6-M system region and, for the RP2040, the memory regions and peripheral bases. The names
are those of the Raspberry Pi Pico SDK headers (pico-sdk:
hardware/regs/m0plus.h and addressmap.h), as read in November 2026. They label an address that a branch or
a reference lands on exactly; the viewer does not resolve the addresses that a program builds in registers.
| Address | Name | Meaning |
|---|---|---|
0xE000E010 | SYST_CSR | SysTick control and status |
0xE000E014 | SYST_RVR | SysTick reload value |
0xE000E018 | SYST_CVR | SysTick current value |
0xE000E01C | SYST_CALIB | SysTick calibration value |
0xE000E100 | NVIC_ISER | Interrupt set-enable |
0xE000E180 | NVIC_ICER | Interrupt clear-enable |
0xE000E200 | NVIC_ISPR | Interrupt set-pending |
0xE000E280 | NVIC_ICPR | Interrupt clear-pending |
0xE000E400 | NVIC_IPR0 | Interrupt priority 0 (interrupts 0-3); IPR1 to IPR7 follow every 4 bytes |
0xE000ED00 | CPUID | CPUID base register |
0xE000ED04 | ICSR | Interrupt control and state |
0xE000ED08 | VTOR | Vector table offset |
0xE000ED0C | AIRCR | Application interrupt and reset control |
0xE000ED10 | SCR | System control |
0xE000ED14 | CCR | Configuration and control |
0xE000ED1C | SHPR2 | System handler priority 2 (SVCall) |
0xE000ED20 | SHPR3 | System handler priority 3 (PendSV, SysTick) |
0xE000ED24 | SHCSR | System handler control and state |
0xE000ED90 | MPU_TYPE | MPU type |
0xE000ED94 | MPU_CTRL | MPU control |
0xE000ED98 | MPU_RNR | MPU region number |
0xE000ED9C | MPU_RBAR | MPU region base address |
0xE000EDA0 | MPU_RASR | MPU region attributes and size |
The RP2040 memory regions and peripheral bases are listed in the viewer: XIP_BASE 0x10000000, SRAM_BASE
0x20000000, CLOCKS_BASE 0x40008000, IO_BANK0_BASE 0x40014000, UART0_BASE
0x40034000, TIMER_BASE 0x40054000, SIO_BASE 0xD0000000, PPB_BASE
0xE0000000 and the others. The system region is named for every Cortex-M family; the memory maps of the other families are
described below.
Memory maps of the families
For each family whose vendor file was read, the viewer has a Memory map table (address, end, name, kind) that names where the
flash, the RAM and the peripheral blocks start. The names come from the vendor’s own files, copied unchanged, and are used in three places:
the Target address range field of the file says which window the target addresses of the family lie in; the
Vector table says where the initial stack pointer and each handler point (top of the stack (in SRAM_BASE + 0x42000),
outside the image (XIP_BASE + 0x100)); and the disassembly labels an operand that equals the start of a window or peripheral with its name.
The vendor files give a base, not a size (a flash or a RAM depends on the device), so a window runs from its start to the next
start in the table, except for the ESP chips, whose soc.h gives both ends.
| Families | What is named | From |
|---|---|---|
| RP2040 | ROM, XIP flash and its aliases, the SRAM banks, every peripheral base, SIO, the private peripheral bus | pico-sdk addressmap.h |
| RP2350 (Arm and RISC-V) | the same kinds for the RP2350, 74 entries | pico-sdk addressmap.h of the RP2350 |
| STM32 (F0, F1, F2, F3, F4, F411, F7, G0, G4, H5, H7, L0, L1, L4, L5, WB, WL) | flash, SRAM banks, CCM and TCM RAM where the device has them, the APB, AHB and (H5, L5) secure and non-secure peripheral buses | the *_BASE defines of ST’s CMSIS device headers (cmsis_device_f4 and its sister repositories) |
| nRF52 (six families) | flash and RAM with the size of the chip (nRF52840 1 MB and 256 KB, nRF52833 512 KB and 128 KB, nRF52832 512 KB and 64 KB or, for the xxAB, 256 KB and 32 KB, nRF52820 256 KB and 32 KB; the generic NRF52 family ID is read as the nRF52832), FICR, UICR, the peripherals the chip has (the nRF52840’s list minus what the chip’s own SVD lacks), the system region. The nRF52810 and nRF52811 have no family ID in Microsoft’s list. | nrfx nrf52840.h, the _xxaa.ld linker script and the SVD file of each chip |
| SAMD21, SAMD51, SAML21 | flash, RWW and user row, the RAMs, the HPB peripheral buses, SEEPROM, SDHC, the system region | the <memory> elements of Microchip’s device family packs (SAMD21, SAMD51, SAML21) |
| LPC55, MIMXRT10XX | every peripheral base, and the flash and RAM regions of the NXP SDK’s linker script for the chip (LPC55S69: flash areas of core 0 and core 1, SRAM, USB SRAM; MIMXRT1052: ITCM, DTCM, OCRAM, FlexSPI NOR). These are the regions the SDK gives a program, not a statement of the chip’s memory. The viewer option Chip series also offers the windows of the LPC5502, 5506, 5512, 5526, 5534, S04, S16, S28 and S36 and of the MIMXRT1011, 1015, 1021, 1024, 1041 and 1062, each taken from that chip’s own SDK linker script (the 5534 and S36 scripts at their macro defaults); the MIMXRT1064 and 1060 are not offered (their script was not fetched). Nothing in the image tells the chips apart, so there is no detection: the default is the LPC55S69 and the MIMXRT1052, and the register names are always those of those two SVD files. | NXP’s SVD files (LPC55S69, MIMXRT1052) |
| RA4M1 | every peripheral base, the data flash start (FSP BSP_FEATURE_FLASH_DATA_FLASH_START) and the code flash, SRAM and data flash windows (256 KB, 32 KB, 8 KB from Renesas’s RA4M1 product page; the starts 0x0 and 0x20000000 are the Cortex-M code and SRAM regions, not stated in the files read) | Renesas FSP R7FA4M1AB.h and bsp_feature.h |
| GD32VF103 | flash, SRAM, option bytes, debug, EXMC and every peripheral base of the GigaDevice firmware library header gd32vf103.h (29 entries, added in round 9; the RISC-V core’s own timer and interrupt controller are not in the header) | gd32vf103.h |
| GD32F350, AT32F415, PY32F071, XR809, RTL8720C, MAX32690, MAX32650, MAX32665, MAX78002, ATmega32 | GD32F350 (the GD32F3x0 header), AT32F415, PY32F071: flash, SRAM and every peripheral base of the header; XR809 and RTL8720C: peripheral bases only (the headers give no flash or RAM window); the four Analog Devices chips: where each memory region starts (flash, info block, SRAM, XIP and so on; no sizes, no peripherals); ATmega32: the 32 KB flash | the vendor headers saved in samples/uf2/sources/cores2/ (the same files as the core table) and Microchip’s ATmega pack file |
| RTL8710A, RTL8710B, RTL8720D | every peripheral base NAME_BASE of the SDK’s hal_platform.h, plus the flash window (SPI_FLASH), and for the RTL8710A the SDRAM start, for the RTL8720D the PSRAM, retention RAM and RRAM starts; the RTL8720D map has the peripherals of both cores (KM4 at 0x40000000, KM0 at 0x48000000). No sizes. The register names inside the peripherals are named for the RTL8710B (25 blocks) and the RTL8720D (50 blocks, KM4 and KM0 views; the KM0 copies of GDMA and WDG are listed as GDMA_LP and WDG_LP), from the register structs of the two hal_platform.h files (C layout, checked address for address by a test with its own reader). The RTL8710A register names (25 blocks: system control, GPIO, timer, SDR controller, flash controller, ADC, DAC, three UARTs, three SSI, four I2C, SDIO device with the MII registers, SDIO host, two GDMA, two I2S, two PCM) come from the REG_ offset defines of the 23 saved rtl8195a-fwlib headers (that SDK has no register structs); a name is the define without REG_, two defines at one offset are written with a slash, and the headers’ own misspellings (SPC_RXUICR, SPIC_FLASE_SIZE, GDMA_MASK_INT_INT_ERR) are kept. A test with its own reader compares every block address for address. For the RTL8710A the blocks stay unnamed that no saved header lists registers for: NFC interface, vendor registers, log UART, crypto, Wi-Fi, USB OTG, the second DAC, and the SDRAM and flash windows; the second naming sets of the SDR controller (MS_PCTL_), the SDIO host and the MII verify registers, and the gSPI offsets (read through the host interface) are not used. The RTL8710A I2C bases are linked to their header by name only. Blocks the headers give no struct for are named from other SDK headers where those give offsets: on the RTL8710B the system control (SYSTEM_CTRL, the REG_SYS_* and peri_on offsets), the SDIO device and the two GDMA blocks; on the RTL8720D the SDIO device, the crypto engine (IPSEC) and the secure CRC alias (CRC_S), and from the low-power system control (SYSTEM_CTRL_LP) only the eight registers the SDK code reads. The Wi-Fi and USB blocks and the rest of the RTL8720D system control stay unnamed because no saved header lists their registers. The RTC block is taken at RTC_BASE because the header’s RTC_DEV macro is unbalanced. Two headers print an offset comment that disagrees with the layout (timer SR, RTC ISR, and GDMA RAW_DST_TRAN on the RTL8720D); the layout is used. | the hal_platform.h files of Realtek’s ameba-rtos-1 (8195A, 8711B) and ameba-rtos-d (AmebaD), saved in samples/uf2/sources/realtek/ |
| CSK6 | the 27 peripheral blocks of the Arm-core device tree (DMA, USB, SD/MMC, timers, watchdogs, crypto, UART0 to 2, IR, SPI0/1, I2C0/1, GPT, GPIOA/B, ADC, TRNG, mailbox, pinmux, flash controller, key sense, RTC, DVP) and the memory windows ITCM 16 KB at 0x10000, SRAM 320 KB at 0x80000, DTCM 16 KB at 0x20000000, PSRAM 8 MB at 0x30000000 and flash 8 MB at 0x18000000. The HiFi4 core’s own address space (SRAM at 0x60000000) is not mapped; the register names inside the peripherals are not given. | the csk6.dtsi device tree (and its four variant files) of the LISTENAI Zephyr port, from OpenRTX’s mirror of cloud.listenai.com/zephyr/csk, saved in samples/uf2/sources/listenai/. Its CPU node (line 20) says arm,cortex-m33, which the core table above follows; the datasheet words it “ARM STAR”. |
| RZ/A1LU | the memory windows of the Mbed OS header (NOR flash 0x0 and 0x04000000, SDRAM 0x08000000 and 0x0C000000, user areas 0x10000000 and 0x14000000, SPI multi-I/O flash 0x18000000 and 0x1C000000, SPI_MIO, BSC, the uncached SRAM alias at 0x60000000), the on-chip SRAM at 0x20000000 (3 MB: pages 0 to 3 of 512 KB and page 4 of 1 MB, hardware manual section 5.4, Table 5.5, pages 5-7 and 5-8, and Table 40.1; also the end of the linker script’s last RAM region, 0x20300000) the two peripheral areas (0xE8000000, 0xFCF00000) and 45 peripheral blocks (serial, SPI, I2C, CAN, ADC, USB, Ethernet, SD/MMC, DMA, interrupt controller and GIC interface, video, GPIO, timers, watchdog, RTC, clock generator and others). A window runs to the next start. The hardware manual (R01UH0437EJ0700 Rev.7.00, the RZ/A1L, RZ/A1LU and RZ/A1LC user’s manual: hardware) says in section 5.4, Table 5.5 (pages 5-7 and 5-8) that each chip-select space CS0 to CS5 is 64 MB (0x0, 0x04000000, 0x08000000, 0x0C000000, 0x10000000, 0x14000000) and the SPI multi-I/O space 0x18000000 to 0x1BFFFFFF is 64 MB, and in Table 8.2 (section 8.3.1, page 8-4) that CS0 and CS1 take NOR flash or SRAM and CS2 and CS3 take SDRAM; so the NOR flash and SDRAM windows are 64 MB address spaces, not memory sizes: neither the manual nor the datasheet (R01DS0480EJ0100, page 1) states how large the flash or SDRAM chip is, because it is external and the board’s choice, and the 8 MB application size of the linker script is the board port’s. The register names are given for 46 blocks (2999 registers), from the typedef struct of each *_iodefine.h file laid out in member order (a test with its own reader compares every offset, size and name with the headers, and checks that each of the 44 header instances at a fixed address is a block); the DMAC and INTC headers have a 350 MB padding member, so each is two blocks (DMAC and DMAC_DMARS at 0xFCFE1000, INTC and INTC_ICR at 0xFCFEF800). The CPG struct of the header spans other blocks (0x11801 bytes), so a register lookup skips a block that covers the address without a register there. A register of 1 or 2 bytes followed by padding is given 4 bytes by the viewer. Blocks without a header file stay unnamed; no name comes from the manual’s register chapters. | Mbed OS RZ_A1LU.h (lines 617 to 633), the *_iodefine.h files and RZA1LU.ld of the GR-LYCHEE port (mbed-os), saved in samples/uf2/sources/renesas-rza1lu/. The header’s private timer address (0x82000600) is left out: it is outside the peripheral area. |
| BK7231U, BK7231N, BK7251 | the base of every peripheral block the SDK driver headers give (system control, ICU, UART1/2, I2C1/2, SPI, GPIO, watchdog, SARADC, PWM, flash controller, USB, DMA and so on), in the branch the chip’s CFG_SOC_NAME selects (BK7251 is SOC_BK7221U). A header gives where a block sits, not whether the chip has it; blocks that only the BK7252N or BK7271 branch defines are left out; no flash or RAM windows. The registers inside the blocks are named for all three chips (BK7231U 22 blocks and 320 registers, BK7231N 20 and 255, BK7251 23 and 372; see Registers inside the peripherals). The BK7231N has no PWM and no AUDIO block: its headers give the PWM as function-like macros (REG_PWM_GROUP_ADDR(x)), and the AUDIO base 0x802B00 is the base the N shares with its PWM. None of the three has USB (the headers write its registers as (*((VUINT8_PTR)(USB_BASE_ADDR + 0x0F)))) or UART3 registers named, because the headers give none; the FFT memory at +0x200 is a buffer, not a register. | Beken’s bk_freertos_sdk beken378/driver/* and beken378/app/config/sys_config_*.h, saved in samples/uf2/sources/beken/ |
| ESP32, S2, S3, C3, C2, C6, H2, C5, C61, P4, H21, H4, S31 | the IRAM, DRAM, IROM, DROM, ROM, RTC and external-RAM windows (all), and every peripheral base DR_REG_*_BASE (all 13 chips; the P4 file is in register/hw_ver3/soc/, the H4 file in include/soc/) | ESP-IDF components/soc/<chip>/include/soc/soc.h and register/soc/reg_base.h |
| ESP8266 | DPORT, DRAM, IRAM, IROM | esptool esptool/targets/esp8266.py (MEMORY_MAP) |
The families that still have no map, and why:
the LISTENAI CSK4 (no SDK, header or device tree for it was found in the LISTENAI, OpenRTX and OpenLisa repositories or by search; the brief saved has no address map), the Cypress FX2 (fx2lib’s fx2regs.h is saved and gives the registers and endpoint buffers, but they sit in the 8051’s external data space, not in the code addresses a UF2 file loads, so they are not mapped), the nRF52810 and nRF52811 (no family ID) and the three families that name no chip (RP2XXX_ABSOLUTE, RP2XXX_DATA, Adaboot). Where a map
exists the registers inside the peripherals are named only for the families of the next section. For the ESP chips the
target addresses of a UF2 file are flash offsets, not CPU addresses, so the ESP windows name the load addresses of the segments of the ESP images
(next section), not the target addresses of the blocks.
Registers, interrupt names, and code and data
Registers inside the peripherals
An instruction that loads from or stores to an address the code has just built (a literal pool word, movw and movt, an
immediate and an add, lui and auipc, l32r) gets a Registers note in the disassembly:
GPIOA.ODR, SSI.CTRLR0, IO_BANK0.GPIO25_CTRL (SET alias). The tracker follows constants through one run of
instructions (it forgets them after a call, at a branch target it reaches from elsewhere, and when the register is written by anything it does not
understand), so an access whose address is computed beyond that is not named. The names come from register maps made from the vendors’ SVD
files (single raw files saved in samples/uf2/sources/svd/): the RP2040 (Raspberry Pi’s RP2040.svd, with the
atomic XOR, SET and CLEAR aliases at +0x1000, +0x2000 and +0x3000 of a peripheral, from the RP2040 datasheet’s description of atomic register access)
and the STM32F4 (the SVD for the STM32F407 line, which lists the peripherals of the whole F405/407/427/429 group, so a peripheral the
F407 itself lacks is in it). The same maps were made in round 9 for every other family whose SVD file is saved: the STM32 F0, F1, F2, F3, F411, F7, G0, G4, H5, H7, L0, L1, L4, L5, WB and WL (ST’s SVD files; H5, WB and WL
from the modm-io conversion of them), SAMD21, SAMD51 and SAML21 (the SAML21 from the SAML21B pack, ATSAML21J18B), the nRF52 (the SVD of each chip, the nRF52832 from nrfx’s nrf52.svd),
RA4M1, LPC55, MIMXRT1052, RP2350 and the ESP32, S2, S3, C2, C3, C6, H2 and P4 (Espressif’s SVD files). The array registers carry their index (DEVICEID[0], PIN_CNF[3]).
The data files are in explorer/formats/uf2/regs/, written by scripts/uf2/svd-to-regs-files.mjs. For a family with no map
the note names the peripheral block and the offset and says that no register map exists (register not named): the families without an SVD or header. The ESP8266 has a map written by hand from the register macros of the ESP8266_RTOS_SDK headers (components/esp8266/include/esp8266/*_register.h and eagle_soc.h); only registers those headers name by an offset are listed. The CH32V family uses WCH’s CH32V307 SVD for all parts (the CH32V203 shares addresses and registers with it for the peripherals it has; one it lacks is still named), and the CH32V4X7 has no register names because WCH publishes no SVD file for it. The RP2350’s SET, XOR and CLEAR aliases (+0x2000, +0x1000, +0x3000, from REG_ALIAS_*_BITS in the Pico SDK) are named like the RP2040’s. The PY32F071 has a map from the SVD file of the py32-rs project (svd/PY32F071xx.svd in py32-rs/py32-data, a community file, not one taken from Puya’s own site; 43 peripherals), and every peripheral base of the file is an entry of the memory map made from Puya’s header. The ESP32-C5, C61, H21, H4 and S31 (for which Espressif publishes no SVD file)
have maps made from the ESP-IDF register headers (components/soc/<chip>/register/soc/*_reg.h, commit ad20ded6, with the base macros of the chip’s include headers evaluated by scripts/uf2/esp-idf-regs-to-files.mjs); the headers
of the interrupt matrix aliases (system_reg.h, interrupt_reg.h) and of peripherals whose base macro the chip’s headers do not define (the UHCI of the C5, H21, H4 and S31, the LP I2C, LP SPI, LP interrupt, RTC clock calibration and memory monitor of the S31, the memory monitor of the H21, the USB OTG and zero detector of the H4, the SDIO of the C5) give no peripheral.
The Beken BK7231U, BK7231N and BK7251 have register maps written by hand from the SDK driver headers of Beken’s bk_freertos_sdk (beken378/driver/*, with the #if branches evaluated for each chip by scripts/uf2/realtek-beken-regs-to-text.mjs). The BK7231N has no PWM or AUDIO map and none of the three has USB or UART3 registers, because the headers do not give them (see the table above).
Interrupt names
The vector table names the external interrupts: IRQ 0: TIMER_IRQ_0. The lists are the IRQn_Type enums of ST’s device headers (17
STM32 families), the SVD files of Nordic (nRF52840, 833, 820 and 832), Microchip (SAMD21, SAMD51), NXP (LPC55, MIMXRT1052) and Raspberry Pi (RP2040, RP2350);
The SAML21 (Microchip’s SAML21B pack: its SVD and header, which agree except that the SVD names interrupt 0 “SYSTEM” where
the header lists its six sources, and has no number 25, the header’s PTC) and the Renesas RA4M1 (the 32 slots the SVD names IEL0 to IEL31) were added in round 9. The RA4M1’s slots
are given to ICU events by the program, not fixed by the chip, so the file cannot say which event a slot serves; that is not named. Not named either: families whose cores are not Cortex-M.
Code and data
The disassembly follows the code from where it starts and shows what it does not reach as data. Roots: the reset handler and every handler of a Cortex-M
vector table (and the RP2040’s second-stage bootloader), the entry point of each ESP image, the eight exception vectors of an ARM-state image, the AVR
interrupt vectors. From each root the walk decodes with our own decoders until the flow ends, follows branches and calls, reads the table of a
tbb or tbh (its length from the cmp before it, or else it ends where its first target begins), takes the word a literal load fetches as data, follows a function pointer
found in a literal pool or, for Thumb, RISC-V and Xtensa, in data (it must decode cleanly there), and resolves an indirect jump or call when the register holds
a constant. The Data in the image table lists the rest: vector table, literal pool, jump table, ASCII strings, other data, with a hint when a data run
starts like a Thumb function. The option Code and data chooses Follow code (the default) or Disassemble everything. Limits: a function reached only through a pointer the walk does not look at
stays data, and so does code that is never called; code that is copied to RAM at start-up and run there (the RP2040 does this for time-critical functions)
lies in the flash image at flash addresses and is shown as data there, except when the image says explicitly where the copy is: the pico-sdk start-up (RP2040, RP2350) copies with a
table of { source, destination start, destination end } that the binary info header (magic 0x7188EBF2, in the first 1 KB) names; each entry gets a second region at its RAM address,
where the code the flash code points to is followed and shown as instructions. Three other start-ups are recognised, read from the files themselves (Zephyr 4.0.0 kernel/xip.c, nrfx 3.9.0 mdk/gcc_startup_nrf52840.S, the CMSIS startup_ARMCM4.S): a call whose registers the walk knows to hold a RAM block’s first and end address and its place in the image (Nordic’s copy_region, in r1, r2 and r3), a call with (RAM start, image address, length) in r0 to r2 (Zephyr’s z_early_memcpy, with the length computed as end minus start), and an address the code loads that points at a table of rows { image address, RAM address, length in words } (the CMSIS copy table). The RAM block is then taken as a copy of those bytes: a call or pointer into it is followed in the image, and the instructions are shown at their flash addresses, not at the RAM addresses (so a branch inside the block shows its flash target). A start-up that copies in an inline loop (the older nRF5 SDK files, many vendor start-ups) is not recognised: its copied code is still shown as data at the flash addresses. The walk has no limit on the size of the image, on the number of
instructions, jump table entries or copy table rows, and every run of the Data in the image table can be reached (past 3,000 runs its rows are made a page at a time).
It reads the image in pieces and keeps one byte of marks for each byte of the stretches it marks, so what can end a very large walk is the browser refusing memory, and the page then says so. In a chip with one SRAM window for code and data (ESP32-C2, C3, C6, H2 and so on) a data segment in that window is never reached, so it stays data.
Cores that were bytes only
The three Beken chips (ARM968E-S, ARMv5TE) and the RZ/A1LU (Cortex-A9, ARMv7-A) are decoded as ARM state (the ARM state (A32) processor choice); the code of an RZ/A1LU may use Thumb-2 too, which this default does not switch to. The ATmega32 is decoded as AVR (variant avr5). The CSK6 is a Cortex-M33 by its device tree (see its source above), decoded as Armv8-M Mainline. The Cypress FX2 is an 8051: its code is decoded by our MCS-51 decoder (8051 instruction set), followed from the reset vector at the start of the image; its special function registers are named and the instruction timing is that of Cypress’s EZ-USB Technical Reference Manual.
ESP flash images in a UF2 file
A UF2 file for an Espressif chip carries the flash of the chip: ESP-IDF’s mkuf2.py and esptool’s merge-bin --format uf2
give each input file the flash offset it is written to as its target address. The viewer looks in the flash image of an ESP family for
ESP images at the start of every stretch of data and at every 0x1000 boundary: an image is accepted when its 0xE9
header, its segment headers, the checksum byte and its chip id (the one of the family, from esp_app_format.h) agree, and a
partition table when it starts 0xAA50. The ESP application image format is described on the
ESP image page; the code that reads it is shared with the ESP image viewer.
- ESP partition table: its entries and its MD5 entry, checked.
- ESP images: one row per image with its flash offset, its role (a partition entry that starts there, or the second-stage bootloader when it lies before the table), chip, entry point, segment count, length, checksum, SHA-256 and the application description (project, version).
- ESP image at …: the header (flash mode, speed and size, entry point and the window it lies in, chip revisions), the checksum and SHA-256 verified, the application description, and a table of the segments with load address, window name (IRAM, DRAM, IROM, DROM, RTC) and the flash offset of the data.
- Code: the segments in an IRAM or IROM window are disassembled at their load addresses, with the Xtensa decoder (ESP32, S2, S3, ESP8266) or the RISC-V decoder (the others) in the configuration the family’s core names; the start address is the entry point of the application image. The data segments are not decoded. Where a chip has one SRAM window for code and data (ESP32-C6, H2, C5, C61, P4, H21, H4, S31), a data segment in that window is decoded as code too: the viewer cannot tell them apart.
The ESP8266 has an older layout (8-byte header, no chip id, no SHA-256) which is read the same way. A flash with no image in it is shown as raw code from its first byte, and the page says none was found.
Sources
- microsoft/uf2 – the format and the list of families
- pico-sdk – the register and address names of the RP2040
- SEGGER Knowledge Base: RP2040 – the 256-byte second stage and its CRC
- The RP2040 bootloader – the boot sequence and the vector table after the second stage
- ESP-IDF components/soc – the address windows and peripheral bases of the ESP chips; esp_app_format.h – the image header and the chip ids
- esptool –
merge-bin --format uf2, the ESP8266 memory map, and the ESP8266 firmware image format - Adafruit TinyUF2 and MicroPython for the ESP32-S3 – ESP UF2 files