HDR Camera FPGA Updater v12

Introduction

This manual explains how to use the HDR Camera FPGA Updater v12 (hdrcam_updater_v12.spk).

Follow the steps below to update the FPGA:
Step 1. Download hdrcam_updater_v12.spk
Step 2. Download Tool
Step 3. Confirmation of connection port
Step 4. Flash hdrcam_updater_v12.spk
Step 5. Execution of hdrcam_updater_v12.spk

Notes

Do not disconnect power to the Main board, disconnect the HDR camera board from the Main board, or shut down the PC while running hdrcam_updater_v12.spk, as this may cause the HDR camera board to fail.

Step 1. Download hdrcam_updater_v12.spk

Download hdrcam_updater_v12.spk and save it in an appropriate folder.

Step 2. Download Tool

To use hdrcam_updater_v12.spk, you will need a flash_writer for your environment. Download the file from the following site and save it in the same folder where you saved hdrcam_updater_v12.spk downloaded in step 1.

Windows:
https://github.com/sonydevworld/spresense/blob/master/sdk/tools/windows/flash_writer.exe

MacOS:
https://github.com/sonydevworld/spresense/blob/master/sdk/tools/macos/flash_writer

Linux:
https://github.com/sonydevworld/spresense/blob/master/sdk/tools/linux/flash_writer

Step 3. Confirmation of connection port

Follow the instructions described in [USB connection] section https://developer.sony.com/spresense/development-guides/sdk_set_up_en.html#_usb_connection to find the connection port name on your environment.

Step 4. Flash hdrcam_updater_v12.spk

With the HDR camera connected to the Main board, make sure the Main board is connected to your computer via USB.

Open a terminal on your computer, go to the hdrcam_updater_v12.spk and flash_writer folders downloaded in Steps 1 and 2, and execute the following commands. Note that where it says <confirmed USB serial port name>, enter the serial port name you confirmed in step 3.

Windows:

.\flash_writer.exe -c <confirmed USB serial port name> hdrcam_updater_v12.spk

MacOS:

./flash_writer -c <confirmed USB serial port name> hdrcam_updater_v12.spk

Linux:

./flash_writer -c <confirmed USB serial port name> hdrcam_updater_v12.spk

When writing is completed, the following log will be displayed on the terminal.

The writing is now complete.

Step 5. Execution of hdrcam_updater_v12.spk

When the writing of hdrcam_updater_v12.spk is completed in step 4, the FPGA writing will start automatically.

The contents of the execution can be confirmed by the lighting and blinking patterns of the four green LEDs on the Main board.

The LEDs are numbered from right to left: 0, 1, 2, and 3.

The FPGA Updater performs the following processes sequentially:

Process 1: Check the connection of the HDR camera and confirm if it has already

been updated.

Process 2: Erase Flash in FPGA

Process 3: Writing a new image to the Flash of FPGA

Process 4: Verify the written image

The LED display pattern for each process is as follows:




LED indication for Process 1:


Four LEDs (LED0 to LED3) blink repeatedly at the same time.


LED indication for Process 2:


LEDs blink alternately in the order of LED0 ⇒ LED1 ⇒ LED2 ⇒ LED3 blinks alternately in the order of LED0 ⇒ LED1 ⇒ LED2 ⇒ LED3, and returns to LED0 when LED3 is reached.


LED indication for process 3:


LED0 ⇒ LED1 ⇒ LED2 ⇒ LED3 When all four LEDs are lit, all LEDs turn off, Repeat the process.


LED indication for process 4:


LED0 and LED1, LED2 and LED3 blink alternately.

When the FPGA write is successfully completed, all LEDs from LED0 to LED3 are lit.

If an error occurs, LED0 and LED3 will be in a state where LED0 and LED3 are lit and LED1 and LED2 are unlit.

If an error occurs, check the connection between the Main board and the HDR camera board and execute again.