i.MX53 SODIMM PC Loading bootloader

From Voipac Wiki
Revision as of 20:03, 31 August 2021 by Voipac (talk | contribs)
Jump to navigation Jump to search

This page shows the steps how to initiate On-Chip Debugging and load bootloader into i.MX53 SODIMM PC - Development kit.

JTAG Debugger and Programmer Installation

  • Connect JTAG Cable to USB port on a computer. JTAG device should be automatically recognized and prepared for usage.
  • Download OpenOCD v0.6.0 software
  • Unzip the files

JTAG cable with serial line.jpg

Running Open On-Chip Debugger

Locate the folder where the software was unpacked. Run OpenOCD utility in command line (by using Total Commander or Windows Command Prompt):

openocd.exe -f vmx53w.cfg

580px

Debugging session is opened and running:
i.MX53 SODIMM PC-Development Kit-OpenOCD running.png

Connecting to Open On-Chip Debugger session

Using Windows Telnet Client

Click on Start/Run (or press Windows key + R), and open the Telnet session using 4444 port:

telnet localhost 4444

i.MX25 SODIMM Base Board-Telnet.png

Telnet session is active and ready for use:
i.MX25 SODIMM Base Board-Telnet ready.png

Using terminal emulator

To open Telnet service using TeraTerm program, click on File/New Connection, select TCP/IP option and type 4444 into TCP port# field. The IP address to connect to is localhost (127.0.0.1):
i.MX25 SODIMM Base Board-Telnet session.png

TeraTerm session is running and ready for use:
i.MX25 SODIMM Base Board-Telnet ready TeraTerm.png

Establishing serial connection

Open TeraTerm program, click on File/New Connection, choose Serial and select the port which was assigned to the serial console:
i.MX25 SODIMM Base Board-Serial connection.png

A successful connection is created only if the following serial port settings are applied (115200, 8n1):
i.MX25 SODIMM Base Board-Serial console settings.png

Selecting boot mode

In order to disable direct boot, H902 jumper (BOOTMODE) must be placed between pins 1 and 2. This enables serial boot and loading files over Telnet service. The main reason for using this mode is to rewrite bootloader image in case of update or recovery.

Direct Boot (Boot from E-Fuses) is selected when BOOTMODE jumper pins 2 and 3 are shortened. This is the default mode of module operation.

i.MX25 SODIMM Base Board-Direct boot.jpg i.MX25 SODIMM Base Board-Serial boot.jpg
Serial Boot Direct Boot (Boot from E-Fuses)

Loading bootloader

The following commands need to be placed inside Localhost Telnet session and executed one by one. Console logs are included for comparison:

reset_halt

i.MX53 SODIMM PC-Development Kit-OpenOCD reset halt.png

step

i.MX53 SODIMM PC-Development Kit-OpenOCD step.png

resume

i.MX53 SODIMM PC-Development Kit-OpenOCD resume.png

vmx53_init

i.MX53 SODIMM PC-Development Kit-OpenOCD init.png

boot

i.MX53 SODIMM PC-Development Kit-OpenOCD boot.png

Barebox was loaded into the i.MX53 SODIMM PC Module SRAM and executed:
i.MX53 SODIMM PC-Development Kit-Bootloader loaded.png

As this fresh Barebox is stored in SRAM only at this point, switching the module off causes the bootloader to be erased. To store the new Barebox and use it automatically after power on, image flashing is required. Follow this section to do so.