LAN969x Flashing and Debrick Instruction

If VelocityDRIVE-SP is not capable of booting on a given board, then it may be necessary to follow the "de-brick" procedure where the NOR flash is erased and programmed with a new image. This can be done in a few different ways; this page will describe the simplest method.

Before starting, make sure all of the following prerequisites are met:

  • Physical access to the board

  • A USB-UART connection to a PC

  • A browser with serial port support (Edge or Chrome)

  • A firmware image file to be installed (see SW Binary Packets for download instructions)

  • Access to the DIP switches

1. Debrick using fwu.html

The LAN969x SoC contains a ROM monitor which can be used to download a new image over UART, and then write it to the NOR flash. The advantage of this method is that it is simple to follow and does not require any special tools.

This method is described in the following sections.

1.1. Prepare the Board

Toggle the Boot-Mode DIP switch into position 1011 (0xb) to select the high-speed monitor mode. The position of the DIP switch is shown here (the red dots are added to the picture to make it easier to see):

dip 11

Once the DIP setting is done, reset or power on the board.

1.2. Open FWU.html

To communicate with the board, the fwu-lan969x_a0-release.html tool is used.

  1. Follow the link to save the file to your PC.

  2. Make sure to open the downloaded HTML file in either Chrome or Edge

    1. These are the only browsers with UART support built-in.

    2. If using Linux, make sure the user running Chrome has access to the UART.

This only works if no other application/process is using the UART. Therefore, make sure to close any terminal emulators and/or VelocityDRIVE-CT which may open the UART.

You should now see a web page like the one below:

lan969x debrick fwu connect
  1. Start by selecting the baud rate, and set this to 921600 baud per second.

  2. Then select "Connect device"

When selecting "Connect device" you should see a pop-up asking which UART device to use. This should look like the image below:

lan969x debrick fwu uart

Select the one with "MCP2200" in its name, and hit connect.

At this point, the fwu tool is initialized and is ready for usage.

1.3. Download and BL2u

The BL2u image is a second-stage image including the code needed to program the NOR flash. This image is embedded in the HTML page; you just need to hit the "Download BL2u" button as shown below:

lan969x debrick fwu bl2u dl

1.4. Programming the Flash Image

Once the BL2u image in the previous step is fully downloaded and loaded, the UI will change a bit and should look like the screenshot below:

lan969x debrick fwu upload
These steps will erase and program the NOR flash entirely; all firmware and configuration on the board will be lost.

Here are the required steps:

  1. Click the "Incremental" tab

  2. Choose "NOR Flash"

  3. Choose the file to be programmed.

    1. This must be a 2MB img file.

  4. Click "Incremental Write Image".

    1. A progress bar will be shown, it will go to 100% a few times. This is because it is the incremental mode where the image is being uploaded in chunks and written.

Once it has completed, make sure to close the HTML browser/tab as this is the only way to disconnect the UART.

1.5. Booting Newly Programmed Image

Finally, change the boot-mode DIP switch back to: 0100 (0x4) or 0001 (0x1) to boot from the newly programmed NOR flash. Settings shown here:

Strap Value DIP-Setting LAN969x (A0)

0001 (0x1)

dip 1

Default development boot mode for VelocityDRIVE-SP
Booting from SPI-NOR 25MHz mode 1-1-1
BootROM traces activated on FlexCOM-0 in UART mode 115200 1N8.

0100 (0x4)

dip 4

Default boot mode for VelocityDRIVE-SP
Booting from SPI-NOR 25MHz mode 1-1-1
BootROM traces disabled.
VelocityDRIVE uses FlexCOM-0 in UART mode 115200 1N8.