Freescale MPC5125 MPU NAND Flash Boot Application Note AN4033

Freescale application note AN4033 describing how to boot the MPC5125 MPU from NAND flash on the TWR-MPC5125 board, including U-Boot setup.


Freescale MPC5125 MPU NAND Flash Boot Application Note AN4033 - cover page
Brand
Freescale
Category
microcontrollers
Document type
Application Note
Language
English
Pages
18
File format
PDF
File size
446 KB
Published
09 November, 2026
Updated
09 November, 2026
MD5 checksum
13EECB949E730CDA5DD4A35CAD1A6772

About this manual

This application note (document number AN4033, Rev. 0, 01/2010) describes the procedures to perform NAND flash boot with the Freescale MPC5125 MPU. The hardware platform used in the example is a TWR-MPC5125 board, and the note is based on the MPC5125 Microcontroller Reference Manual (MPC5125RM) and the schematics of the TWR-MPC5125.

It covers board preparation, the MPC5125 reset and I/O control settings that affect NAND boot, the silicon boot behavior of the NAND Flash Controller, and the U-Boot NAND flash boot software. It explains how to add NAND flash boot support to U-Boot, which files are modified, and describes the nand_spl source code (nandstart.S and nandload.c). An appendix gives the TWR-MPC5125 board layout.

What's inside

  • Introduction
  • TWR-MPC5125 Board Preparation
  • MPC5125 Microcontroller Configuration
  • Reset
  • I/O Control
  • NAND Flash Boot
  • U-Boot NAND Flash Boot Software
  • Adding NAND Flash Boot Support to U-Boot
  • Files Modified in U-boot
  • Description of the nand_spl Directory Source Code

Specifications

Boot block row addresses0, 256, 512, and 768
Boot burst read size4 pages, a total of 4 KB
ECC correction depth32 bits errors in an NFC page
USB-to-serial port setting115,200 baud, 8 data bits, 1 stop bit, no hardware handshaking
NAND flash on TWR-MPC5125Micron M29F64G08CFABA, 8-bit bus width, (4096 + 224 bytes) pages
Boot image address range after boot0 to 3983
NAND flash offset for u-boot.bin0x0080_0000

Frequently asked questions

How do I make the TWR-MPC5125 board boot from NAND flash?

You must turn SW1 positions 1 and 2 to ON so that the board boots from NAND flash.

Which ROMLOC value selects NAND boot on the MPC5125?

ROMLOC[1:0] selects the boot device, and a value of 01 selects a NAND boot.

Which commands build a NAND flash boot U-Boot image?

Use make clean, then make ads5125_nand_config, then make; the resulting images are placed in the u-boot source tree and the nand_spl sub-directory.

What serial console settings are used after programming the images?

Set the serial console to 115200, 8-N-1, attach the board through the USB-to-serial port, and reset the board.

Download PDF (446 KB)

More Freescale Manuals


View all Freescale manuals →