Skip to technical reference content
INDEPENDENT HARDWARE SERVICE REFERENCE · ZERO FIRMWARE FILES HOSTED
BIOS Archives IC emblem
BIOS Archives

PEI / ACTIVE DDR5 MEMORY TRAINING

Motherboard Code 15: AM5 DDR5 Training & Stuck-15 Bench Guide

PORT 80h HEX
15

Hex Code 15 ("Pre-memory System Agent initialization is started") is the signature AMD AM5 (Ryzen 7000, 8000, and 9000) DDR5 memory training checkpoint. On first boot, right after clearing CMOS, after swapping RAM kits, or immediately following a BIOS flash, ASUS, MSI, Gigabyte, and ASRock AM5 boards routinely park on Code 15 with an illuminated Amber/Yellow DRAM LED for 60 to 180 seconds—and up to 5 minutes on 64 GB to 192 GB kits. Do not hit the reset button prematurely.

AMI Aptio UEFI Architecture

Why AM5 DDR5 Motherboards Hold Code 15 Longer Than DDR4 Boards

Unlike DDR4, every DDR5 module integrates an onboard Power Management IC (PMIC) and splits each stick into two independent 32-bit addressable sub-channels (40-bit with on-die ECC). During Pre-EFI Initialization (PEI), the AMD AGESA memory reference code sweeps read/write eye margins, receiver decision-feedback equalization (DFE), command-address timing, and on-die termination impedances across every rank before releasing execution to DXE. While those sweeps run, Port 80h holds static hex 15 so technicians know the Integrated Memory Controller is actively calibrating rather than dead.

Two distinct scenarios look identical during the first 60 seconds: healthy first-time training versus a genuinely wedged training loop. Healthy training holds steady on Code 15 with fans running at moderate speed, then abruptly transitions through codes 4F, 64, 90, and A0/AA with video output on screen. A true Code 15 hang remains motionless past 5 minutes (even with a single JEDEC stick), or cycles endlessly between 15 and C5 without ever lighting the VGA or BOOT LEDs. On boards updated to modern AGESA releases, enabling Memory Context Restore alongside Power Down Enable caches trained timing parameters in NVRAM so subsequent cold boots clear Code 15 in under 12 seconds.

Common Causes Ordered by Diagnostic Priority (Code 15)

Ordered from fastest, non-destructive hardware checks to deeper board and socket isolation—not a statistical failure-rate survey.

Likely Cause Check Order Technical Cause & Verification Check
Normal first-boot or post-CMOS DDR5 memory training in progress 1st Check · Wait First Expected behavior on B650/X670/X870 builds. Two-stick 32 GB kits typically finish in 60–120 seconds; 64 GB–192 GB or 4-DIMM setups can take 3–5 minutes.
Power interrupted mid-training or mismatched Memory Context Restore settings 2nd Check · Common Forcing shutdown during Code 15 leaves partial training tables in NVRAM. Enabling Memory Context Restore while Power Down Enable stays Disabled triggers hangs or Windows BSODs.
DDR5 sticks installed in slots A1/B1, unseated bottom latch, or 4-DIMM EXPO instability 3rd Check · Common AM5 daisy-chain slots require A2 and B2 (2nd and 4th slots from the CPU). Four high-speed DDR5 sticks frequently fail to exit Code 15 at 6000 MT/s.
Early factory BIOS missing non-binary 24 GB / 48 GB DDR5 or Ryzen 9000 AGESA support 4th Check · Firmware Older AM5 factory BIOS stock stalls permanently on Code 15 with 48 GB/96 GB kits or Ryzen 9000 CPUs until updated via CPU-less FlashBack or Q-Flash Plus.

Step-by-Step Repair & Verification Procedure for Code 15

  1. Start a real timer before touching any button: wait a full 3 minutes for 2x16 GB or 2x32 GB DDR5 kits, and a full 5 minutes for 4-stick or 96 GB–192 GB kits. Do not flip the PSU switch during this window.
  2. If Code 15 remains frozen past 5 minutes with zero code transitions, hold Power for 5 seconds, switch the PSU OFF, unplug AC power, and clear CMOS via the rear button or 2-pin CLRTC / JBAT1 / CLR_CMOS jumper for 10 seconds.
  3. Pull all RAM sticks and seat ONLY ONE DDR5 stick firmly into slot A2 (2nd slot away from the CPU), pressing both the latched top edge and unlatched bottom edge completely flush.
  4. Power on and allow up to 3 minutes for baseline JEDEC 4800 MT/s training. Once BIOS appears on screen, note your BIOS version and update to the latest official AGESA build from your motherboard vendor.
  5. If even a single stick in A2 hangs past 5 minutes on a brand-new Ryzen 9000 or 48 GB/96 GB DDR5 build, prepare a FAT32 MBR USB drive and flash the latest official BIOS via CPU-less FlashBack / Q-Flash Plus / MSI.ROM.
  6. Reinstall the second matched stick in slot B2, verify clean stock boot, enable EXPO Profile 1, and pair Memory Context Restore = Enabled with Power Down Enable = Enabled (keeping SoC voltage within safe vendor limits).
  7. If slot A2 trains cleanly with each stick individually while adding any stick to B2 stalls permanently on Code 15, loosen CPU cooler mounting screws half a turn and inspect the AM5 LGA1718 socket pins under bright angled light.
Platform Nuance

ASUS ROG Crosshair / Strix / ProArt AM5 (X670E, B650E, X870E)

Displays steady 15 with an Amber/Yellow DRAM Q-LED. Once inside BIOS, set AI Tweaker -> DRAM Timing Control -> Memory Context Restore = Enabled AND Power Down Enable = Enabled to cut daily boot times from 65 seconds to ~15 seconds.

Platform Nuance

MSI MEG / MPG / MAG & Gigabyte AORUS / ASRock AM5

MSI lights Red CPU + Yellow DRAM EZ Debug LEDs concurrently while holding Code 15. On MSI, toggle Advanced DRAM Configuration -> Memory Context Restore = Enabled and Power Down Enable = Enabled; on Gigabyte, look under Settings -> AMD CBS -> UMC Common Options -> DDR Options.

Related POST Hex Codes

  • C5 AM5 DDR5 Memory Training Failure / OEM Pre-Memory DRAM Fault
    Open →
  • 0d Reserved AMI SEC/PEI Error — AM4/AM5 DRAM Timing & SMBus Monitoring Conflict
    Open →
  • 55 Memory Not Installed (No Usable RAM Detected)
    Open →
  • 14 Pre-Memory CPU Initialization Started
    Open →

Frequently Asked Questions

How long is normal for Code 15 on an AM5 motherboard?

On a fresh AM5 build, after clearing CMOS, or right after updating BIOS, 60 to 180 seconds on Code 15 is normal for 2-stick DDR5 kits. Large 96 GB to 192 GB or 4-DIMM kits can require 3 to 5 full minutes before video initializes.

How do I stop Code 15 from taking a minute on every boot?

Update to the newest official AGESA BIOS, then enable BOTH Memory Context Restore AND Power Down Enable in UEFI DRAM settings. The next single boot trains once, and subsequent boots skip full retraining.

Does Code 15 mean my RAM or CPU is defective?

Usually no. Code 15 is an active training status rather than a hard fault code. Only suspect hardware after waiting 5 minutes, clearing CMOS, testing one stick in slot A2, and updating to current AGESA firmware.

What if my board alternates between Code 15 and Code C5?

Bouncing from 15 to C5 indicates DDR5 training failed on the current slots or EXPO profile. Clear CMOS, confirm sticks sit strictly in A2 and B2, and flash the newest official AGESA BIOS.