WFI32E02 memory map

Where everything sits, at its exact address. The WFI32E02 has one 32-bit address space, seen through the MIPS32 segments: program flash at 0x90000000 (KSEG0, cached), the boot flash the chip starts from after a reset at 0xBFC00000, RAM at 0x80000000 and the special function registers from 0xBF800000 (KSEG1, uncached). These are the virtual addresses XC32 and the datasheet's register tables use; for flash, boot flash, RAM and the SFRs the physical address is the same with the top three bits cleared (0x9D000000 is 0x1D000000).

Memory map

Program flash, boot flash, RAM and the SFRs in the one 32-bit space (the configuration words are listed below).

Boot flash (lowerbootalias)0xBFC00000 – 0xBFC0FFFF64 KB
SFRs (periph_indep_b)0xBF920000 – 0xBF93FFFF128 KB
SFRs (periph_indep_a)0xBF8C0000 – 0xBF8E5FFF152 KB
SFRs (periph_pb4)0xBF870000 – 0xBF87FFFF64 KB
SFRs (periph_pb3)0xBF840000 – 0xBF85FFFF128 KB
SFRs (periph_pb2)0xBF820000 – 0xBF83FFFF128 KB
SFRs (periph_pb1b)0xBF80FE00 – 0xBF814EFF20.3 KB
SFRs (periph_pb1a)0xBF800500 – 0xBF802FFF10.8 KB
SFRs (configsfr1)0xBF800070 – 0xBF8004FF1.1 KB
SFRs (configsfr0)0xBF800000 – 0xBF80006F112 B
RAM (crypto1ucm)0x9F902000 – 0x9F903FFF8 KB
RAM (crypto1scm)0x9F900000 – 0x9F901FFF8 KB
RAM (wcmdatamem)0x9F803000 – 0x9F804FFF8 KB
Program flash0x90000000 – 0x900FFFFF1 MB
RAM0x80000000 – 0x8003FFFF256 KB

Every segment

SegmentSpaceStartEndSizePage
RAMbase0x800000000x8003FFFF256 KB
Program flashbase0x900000000x900FFFFF1 MB
RAM (wcmdatamem)base0x9F8030000x9F804FFF8 KB
RAM (crypto1scm)base0x9F9000000x9F901FFF8 KB
RAM (crypto1ucm)base0x9F9020000x9F903FFF8 KB
SFRs (configsfr0)base0xBF8000000xBF80006F112 B
SFRs (configsfr1)base0xBF8000700xBF8004FF1.1 KB
SFRs (periph_pb1a)base0xBF8005000xBF802FFF10.8 KB
SFRs (periph_pb1b)base0xBF80FE000xBF814EFF20.3 KB
SFRs (periph_pb2)base0xBF8200000xBF83FFFF128 KB
SFRs (periph_pb3)base0xBF8400000xBF85FFFF128 KB
SFRs (periph_pb4)base0xBF8700000xBF87FFFF64 KB
SFRs (periph_indep_a)base0xBF8C00000xBF8E5FFF152 KB
SFRs (periph_indep_b)base0xBF9200000xBF93FFFF128 KB
Boot flash (lowerbootalias)base0xBFC000000xBFC0FFFF64 KB
Boot flash (otpmemory)base0xBFC160000xBFC16FFF4 KB
Configuration words (altconfig)base0xBFC55E880xBFC55EB344 B
Configuration words (altcodeprotect)base0xBFC55EBC0xBFC55EBF4 B
Configuration words (config)base0xBFC55F880xBFC55FB344 B
Configuration words (codeprotect)base0xBFC55FBC0xBFC55FBF4 B
Configuration words (signfuse)base0xBFC55FDC0xBFC55FDF4 B