JP2019087171A - Image capturing device - Google Patents

Image capturing device Download PDF

Info

Publication number
JP2019087171A
JP2019087171A JP2017216860A JP2017216860A JP2019087171A JP 2019087171 A JP2019087171 A JP 2019087171A JP 2017216860 A JP2017216860 A JP 2017216860A JP 2017216860 A JP2017216860 A JP 2017216860A JP 2019087171 A JP2019087171 A JP 2019087171A
Authority
JP
Japan
Prior art keywords
image processing
image data
image
area
imaging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017216860A
Other languages
Japanese (ja)
Inventor
太郎 松野
Taro Matsuno
太郎 松野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP2017216860A priority Critical patent/JP2019087171A/en
Publication of JP2019087171A publication Critical patent/JP2019087171A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

To provide an image capturing device capable of smoothly updating firmware without having to have a plurality of non-volatile memories for firmware update.SOLUTION: A single non-volatile memory 103 has a firmware storage area and an image processing area therein. When updating firmware, new firmware is written into a part of the image processing area to update firmware. After updating the firmware, an area that was storing old firmware is used as an image processing area by modifying a memory map of the non-volatile memory.SELECTED DRAWING: Figure 2

Description

本発明は撮像装置に関する。   The present invention relates to an imaging device.

ワークメモリとして、DRAM(揮発性メモリ)に代わり、MRAM(磁気抵抗RAM)などの不揮発性メモリを使用し、処理のない場合は、ワークメモリへの電源供給を止めることで電力を削減する、ノーマリーオフコンピューティングという考え方がある。   As a work memory, a nonvolatile memory such as an MRAM (magnetoresistive random access memory) is used instead of a DRAM (volatile memory), and in the absence of processing, power is reduced by stopping power supply to the work memory. There is a concept of Marie-off computing.

一方、現在のデジタルスチルカメラは一般的に、撮像装置内の主演算装置(CPU)が、FlashROM等の不揮発性メモリに記憶された動作プログラム(ファームウェア)を起動時にロードすることにより動作する。この撮像装置内に記憶されたファームウェアは、しばしばユーザーの手によって、メーカーが提供する新たなファームウェアへアップデートされる。しかし、ファームアップデート途中に電源遮断が起こってしまうと、ファームウェアの内容が壊れてしまい、カメラが起動しなくなってしまうという課題があった。   On the other hand, current digital still cameras generally operate by loading an operation program (firmware) stored in a non-volatile memory such as a Flash ROM at the time of startup, by a main processing unit (CPU) in an imaging device. The firmware stored in the imaging device is often updated by the user's hand to new firmware provided by the manufacturer. However, if the power is shut off during the firmware update, the contents of the firmware may be broken, and the camera may not start up.

このような課題を解決するため、特許文献1に記載の撮像装置においては、第一の不揮発性メモリ(FlashROM)と、第一の不揮発性メモリとは別の第二の不揮発性メモリ(FlashROM)を撮像装置内に持ち、第一の不揮発性メモリには撮像装置を動作させるためのファームウェアが記憶されている。ファームアップデート時には、第一の不揮発性メモリに記憶されているファームウェアを、第二の不揮発性メモリに退避させた後、新しいファームウェアを第一の不揮発性メモリに書き込む。ファームアップデート中に電源遮断があった場合は、第二の不揮発性メモリに退避させたファームウェアを、第一の不揮発性メモリに書き戻すことで、撮像装置が起動できなくなるような状態を回避している。   In order to solve such problems, in the imaging device described in Patent Document 1, a second non-volatile memory (Flash ROM) different from the first non-volatile memory (Flash ROM) and the first non-volatile memory In the imaging apparatus, and firmware for operating the imaging apparatus is stored in the first non-volatile memory. At the time of firmware update, after the firmware stored in the first non-volatile memory is saved to the second non-volatile memory, new firmware is written to the first non-volatile memory. If power is shut off during firmware update, the firmware saved in the second non-volatile memory is written back to the first non-volatile memory to avoid a situation where the imaging device can not be started. There is.

特開2011−150383号公報JP, 2011-150383, A

しかしながら、特許文献1のように撮像装置内にファーム記憶専用の第一の不揮発性メモリと、ファーム退避専用の第二の不揮発性メモリとを持つことには、コストの増加、撮像装置内の実装面積増加、という課題がある。   However, having the first non-volatile memory dedicated to the firm storage and the second non-volatile memory dedicated to the firm save in the imaging device as in Patent Document 1 increases the cost, and is implemented in the imaging device. There is a problem of increasing the area.

そこで、本発明では上記課題を鑑み、ファームアップデート用の複数の不揮発性メモリ持つことなく、円滑にファームアップデートを行うことができる撮像装置の提供を目的とする。   Therefore, in view of the above problems, the present invention aims to provide an imaging device capable of smoothly performing firmware update without having a plurality of nonvolatile memories for firmware update.

撮像データを得る撮像手段と、撮像データに画像処理を施して画像データを得る画像処理手段と、前記画像データを記録する記録手段と、プログラムにより前記撮像装置の動作を制御する制御手段と、前記撮像装置のワークメモリとして使用する不揮発性記憶手段と、を有し、前記不揮発性記憶手段は、前記プログラムを記憶するファーム記憶領域と、前記画像処理手段が画像処理を実行するための画像処理領域と、を有し、前記ファーム記憶領域に記憶されたプログラムをアップデートする際には、前記画像処理領域に対し画像データの有無を確認し、画像データが存在する場合は、画像データを前記記録媒体へ保存した後、前記画像処理領域に新たなプログラムを書き込み、画像データが存在しない場合は、前記画像処理領域に前記新たなプログラムを書き込み、前記新たなプログラムを書き込んだ後に、前記不揮発性記憶手段の所定のアドレスに、前記新たなプログラムを書き込んだ先のメモリアドレスと、前記新たなプログラムの書き込み完了を示すフラグとを記憶し、前記アップデート後の前記撮像装置、又は前記制御手段の起動時においては、前記制御手段は、前記所定のアドレスにアクセスし、前記メモリアドレスと、前記フラグとを読み出し、前記メモリアドレスの領域から、前記新たなプログラムを読み出して撮像装置を制御し、前記フラグが書き込み完了を示していた場合は、前記新たなプログラムが書き込まれた領域を、新たにファーム記憶領域と設定し、前記アップデート前の前記ファーム記憶領域を新たに画像処理領域と設定する。   Imaging means for obtaining imaging data, image processing means for performing image processing on the imaging data to obtain image data, recording means for recording the image data, control means for controlling the operation of the imaging device according to a program, A nonvolatile storage unit used as a work memory of the imaging apparatus, the nonvolatile storage unit includes a firm storage area for storing the program, and an image processing area for the image processing unit to execute image processing And, when updating the program stored in the firm storage area, the presence or absence of the image data is confirmed with respect to the image processing area, and the image data is recorded in the recording medium when the image data exists. After saving the image data to the image processing area, a new program is written to the image processing area, and if there is no image data, the new image is After writing a program and writing the new program, the memory address of the destination to which the new program has been written and the flag indicating the completion of the writing of the new program are stored at a predetermined address of the non-volatile storage means. When the image pickup apparatus or the control means is activated after the update, the control means accesses the predetermined address, reads the memory address and the flag, and outputs from the area of the memory address. The image processing apparatus is controlled by reading the new program, and when the flag indicates the completion of writing, an area in which the new program is written is newly set as a firm storage area, and before the update. The firm storage area is newly set as an image processing area.

ファームアップデート用の複数の不揮発性メモリ持つことなく、円滑にファームアップデートを行うことができる。   Firmware update can be smoothly performed without having multiple nonvolatile memories for farm update.

撮像装置の構成を示す図である。It is a figure showing composition of an imaging device. 不揮発性メモリの構成を示す図である。It is a figure which shows the structure of non-volatile memory. ファームアップデート時の処理を示すフロー図である。It is a flowchart which shows the process at the time of a farm update. 画像データの構成を示す図である。It is a figure which shows the structure of image data. ファームアップデート時の処理を示すフロー図である。It is a flowchart which shows the process at the time of a farm update.

図1を用いて実施例1における撮像装置100の全体構成を説明する。図1における撮像装置100は、操作部101、制御部102、不揮発性メモリ103、撮像部104、画像処理部105、表示制御部106、画像表示部107、記録制御部108、記録媒体109、外部IF(インターフェース)110、メモリコントローラ部111、メモリバス112、から構成される。以下、各構成部について説明する。   The entire configuration of the imaging apparatus 100 according to the first embodiment will be described with reference to FIG. The imaging apparatus 100 in FIG. 1 includes an operation unit 101, a control unit 102, a non-volatile memory 103, an imaging unit 104, an image processing unit 105, a display control unit 106, an image display unit 107, a recording control unit 108, a recording medium 109, and the outside. It comprises an IF (interface) 110, a memory controller unit 111, and a memory bus 112. Each component will be described below.

操作部101は、ユーザーが操作する選択ボタン、録画ボタン、画像選択ボタン、画像再生ボタン、タッチパネル、ズームレバー、等を備えており、これらのデバイスをユーザーが操作した結果は、制御部102へ出力される。制御部102は撮像装置100を制御する、いわゆるCPUである。制御部102は、後述の不揮発性メモリ103に記憶されたファームウェアをロードすることで、撮像装置100を適切に動作させることができる。各構成部は、制御部102からの制御信号を受けて動作する。   The operation unit 101 includes a selection button operated by the user, a recording button, an image selection button, an image playback button, a touch panel, a zoom lever, and the like, and the result of the user operating these devices is output to the control unit 102 Be done. The control unit 102 is a so-called CPU that controls the imaging device 100. The control unit 102 can appropriately operate the imaging device 100 by loading firmware stored in the non-volatile memory 103 described later. Each component operates in response to a control signal from control unit 102.

不揮発性メモリ103は、高速にランダムアクセス可能なMRAMとする。MRAMは、不揮発性メモリであるため、不図示の電源からの電源供給を断たれてもMRAM内に保存されたデータを失うことなく保持することができる。撮像装置100では、多くの構成部が、メモリコントローラ部111、メモリバス112を通して、不揮発性メモリ103に対してデータのやりとりを行う。不揮発性メモリ103は、リセットベクタ領域1031、ファーム記憶領域1032、画像処理領域1033を持つ。各領域については後述する。   The nonvolatile memory 103 is an MRAM that can be randomly accessed at high speed. Since the MRAM is a non-volatile memory, it can hold data stored in the MRAM without losing it even if the power supply from the power supply (not shown) is cut off. In the imaging device 100, many components exchange data with the non-volatile memory 103 through the memory controller unit 111 and the memory bus 112. The non-volatile memory 103 has a reset vector area 1031, a firm storage area 1032, and an image processing area 1033. Each area will be described later.

撮像部104は、レンズ、絞り、撮像センサーなどにより構成される。撮像部104は、撮像センサーによりレンズを通して受光した光を、A/D変換し、不揮発性メモリ103に撮像データ(RAWデータ)として記憶する。画像処理部105は、不揮発性メモリ103に記憶された撮像データを読み取り、例えば、ホワイトバランス調整、画像圧縮などの画像処理を行い、不揮発性メモリ103へ、画像データとして書き出す。表示制御部106は、画像処理部105で画像処理された画像データを読み出し、画像表示部107で表示するための制御を行う。また、表示制御部106は、制御部102からの制御を受けて、ユーザーへの通知や警告などを表示部107に表示することもできる。画像表示部107は、いわゆる液晶パネルである。このデバイスは、タッチパネルのように、操作部101の機能を兼ねていてもよい。画像表示部107は、表示制御部106から送信されるデータを表示する。   The imaging unit 104 includes a lens, an aperture, an imaging sensor, and the like. The imaging unit 104 A / D converts light received through the lens by the imaging sensor, and stores the light in the non-volatile memory 103 as imaging data (RAW data). The image processing unit 105 reads the imaging data stored in the non-volatile memory 103, performs image processing such as white balance adjustment and image compression, and writes the image data to the non-volatile memory 103, for example. The display control unit 106 reads out the image data subjected to the image processing by the image processing unit 105 and controls the image display unit 107 to display the image data. Further, under the control of the control unit 102, the display control unit 106 can also display a notification or a warning to the user on the display unit 107. The image display unit 107 is a so-called liquid crystal panel. This device may also have the function of the operation unit 101 like a touch panel. The image display unit 107 displays the data transmitted from the display control unit 106.

記録制御部108は、不揮発性メモリ103に保存されている画像データを読み出して、記録媒体109へ保存する。記録媒体109は、いわゆる、ユーザーが簡単に抜き差し可能なメモリカード等の記録媒体である。記録媒体109は、記録制御部108から送信される画像データを記録する。外部IF110は、いわゆる、USBモジュールやWi−Fiモジュールなどの(無線/有線)インターフェースである。外部IF110を通して、撮像装置100と外部のPCなどとを接続し、データのやりとりを行うことができる。メモリコントローラ部111は、不揮発性メモリ103の領域設定(メモリマップ)を記憶しており、各構成部が所望のメモリ領域に適切なタイミングでアクセスできるよう調整する。メモリバス112は接続されている各構成部からのメモリアクセス要求に従って、高速に不揮発性メモリ103へのデータ読み書きが行なえるバスシステムである。以上が、本実施例における、撮像装置100の構成である。   The recording control unit 108 reads the image data stored in the non-volatile memory 103 and stores the image data in the recording medium 109. The recording medium 109 is a so-called recording medium such as a memory card that can be easily inserted and removed by the user. The recording medium 109 records the image data transmitted from the recording control unit 108. The external IF 110 is a so-called (wireless / wired) interface such as a USB module or a Wi-Fi module. The imaging apparatus 100 can be connected to an external PC or the like through the external IF 110 to exchange data. The memory controller unit 111 stores the area setting (memory map) of the non-volatile memory 103, and adjusts each component so that the desired memory area can be accessed at an appropriate timing. The memory bus 112 is a bus system that can read and write data to the non-volatile memory 103 at high speed according to a memory access request from each component connected thereto. The above is the configuration of the imaging device 100 in the present embodiment.

次に図2(a)を用いて、不揮発性メモリ103の構成と動作概要を説明する。不揮発性メモリ103は、リセットベクタ領域1031、ファーム記憶領域1032、画像処理領域1033を持つ。これらのメモリマップは、メモリコントローラ部111にて記憶されている。   Next, the configuration and operation outline of the non-volatile memory 103 will be described with reference to FIG. The non-volatile memory 103 has a reset vector area 1031, a firm storage area 1032, and an image processing area 1033. These memory maps are stored in the memory controller unit 111.

リセットベクタ領域1031は、通常、不揮発性メモリ103の先頭アドレスを含む領域である。リセットベクタ領域1031には、新ファーム書き込み完了フラグと、撮像装置100がロードすべきファームウェアを格納している先頭アドレス(図2(a)では先頭アドレスAと記載)が記憶されている。新ファーム書き込み完了フラグとは、外部から取得した新しいファームウェアを、不揮発性メモリ103へ書き込む処理が完了したかどうかを示すフラグである。   The reset vector area 1031 is usually an area including the start address of the non-volatile memory 103. The reset vector area 1031 stores a new firmware write completion flag and a top address (denoted as a top address A in FIG. 2A) storing firmware to be loaded by the imaging device 100. The new firmware write completion flag is a flag indicating whether the process of writing the new firmware acquired from the outside into the non-volatile memory 103 is completed.

ファーム記憶領域1032には、制御部102がロードし、撮像装置100を動かすためのファームウェアが格納されている。撮像装置100への電源投入時(リセット時)には、制御部102が不揮発性メモリ103のリセットベクタ領域1031に記憶されているファームウェア格納先の先頭アドレスを読み込む。読み込んだアドレスから撮像装置100を動作させるためのファームウェアを読み出し、ロードする。このようにすることで、撮像装置100は動作可能な状態となる。   The firmware storage area 1032 stores firmware that is loaded by the control unit 102 and moves the imaging apparatus 100. When power is supplied to the imaging apparatus 100 (when reset), the control unit 102 reads the top address of the firmware storage destination stored in the reset vector area 1031 of the non-volatile memory 103. The firmware for operating the imaging device 100 is read and loaded from the read address. By doing this, the imaging device 100 becomes operable.

画像処理領域1033は、撮像装置100が動作可能な状態において、画像処理部105が画像処理を実行するためのワークメモリとして機能する。撮像時には、まず、撮像部104にて得られる撮像データが画像処理領域1033へ記憶され、その撮像データに対して画像処理部105が画像処理を行う。画像処理後の画像データは、画像処理領域1033へ記憶される。以上が、不揮発性メモリ103の構成と動作概要である。   The image processing area 1033 functions as a work memory for the image processing unit 105 to execute image processing while the imaging apparatus 100 is operable. At the time of imaging, first, imaging data obtained by the imaging unit 104 is stored in the image processing area 1033, and the image processing unit 105 performs image processing on the imaging data. Image data after image processing is stored in an image processing area 1033. The above is the configuration and the operation outline of the non-volatile memory 103.

つづいて、撮像装置100のファームアップデート時の動作を、図3のフロー図を用いて説明する。前提として、撮像装置100は外部IF110によって、外部のPCと接続されており、ファームアップデートに必要となるアップデートプログラム、及び、新しいファームウェアを、外部PCより取得することができる。   Subsequently, the operation at the time of firmware update of the imaging device 100 will be described using the flowchart of FIG. As a premise, the imaging apparatus 100 is connected to an external PC by the external IF 110, and can obtain an update program necessary for firmware update and new firmware from the external PC.

ユーザーが操作部101でファームアップデート開始の操作を行うことで、ファームアップデート処理が開始する(S300)。処理(S301)では、操作部101からのファームアップデート指示を制御部102が受信する。処理(S302)へ移行する。処理(S302)では、制御部102が、不揮発性メモリ103の画像処理領域1033に対し、画像データの有無を確認する。処理(S303)へ移行する。   When the user performs a firmware update start operation on the operation unit 101, the firmware update process is started (S300). In the process (S301), the control unit 102 receives a firmware update instruction from the operation unit 101. Processing proceeds to processing (S302). In the processing (S302), the control unit 102 confirms the presence or absence of image data in the image processing area 1033 of the non-volatile memory 103. It shifts to processing (S303).

処理(S303)では、画像処理領域1033に画像データがあるかどうかを判定する。画像データが存在する場合は、処理(S304)へ移行する。画像データが存在しない場合は、処理(S307)へ移行する。処理(S304)では、制御部102が画像データに対して、画像処理の進捗を確認する。その結果、その画像データの未実施の画像処理が判明する。詳細は後述する。処理(S305)へ移行する。   In the process (S303), it is determined whether there is image data in the image processing area 1033 or not. If there is image data, the process proceeds to processing (S304). If there is no image data, the process proceeds to processing (S307). In the process (S304), the control unit 102 confirms the progress of the image processing on the image data. As a result, unexecuted image processing of the image data is identified. Details will be described later. Processing proceeds to processing (S305).

処理(S305)では、画像データを画像処理部105が読み出し、処理(S304)で未実施と判明した画像処理を実行する。未実施であった画像処理が実行された後の画像データは、不揮発性メモリ103の画像処理領域1033へ書き戻される。処理(S306)へ移行する。処理(S306)では、画像処理領域1033へ書き戻された画像データを、記録制御部108が読み出し、記録媒体109へ記録する。処理(S307)へ移行する。   In the processing (S305), the image processing unit 105 reads out the image data, and executes the image processing which has been determined to be unexecuted in the processing (S304). The image data after the unexecuted image processing is executed is written back to the image processing area 1033 of the non-volatile memory 103. Processing proceeds to processing (S306). In the process (S306), the recording control unit 108 reads the image data written back to the image processing area 1033, and records the image data in the recording medium 109. Processing proceeds to processing (S307).

処理(S307)では、画像処理領域1033の一部に、外部IF110を通して外部PCより取得した新しいファームウェアを、制御部102が書き込む(図2(b))。書込みが完了した後、処理(S308)へ移行する。処理(S308)では、制御部102が、不揮発性メモリ103のリセットベクタ領域1031に、新しいファームウェアが格納されている先頭アドレスBを記憶した後、新ファーム書き込み完了フラグを記憶する(図2(b))。処理(S309)へ移行する。   In the process (S307), the control unit 102 writes the new firmware acquired from the external PC through the external IF 110 in a part of the image processing area 1033 (FIG. 2B). After the writing is completed, the process proceeds to processing (S308). In the process (S308), the control unit 102 stores the start address B at which the new firmware is stored in the reset vector area 1031 of the non-volatile memory 103, and then stores the new firmware write completion flag (FIG. )). It shifts to processing (S309).

処理(S309)では、制御部102をリセットする。リセットされた制御部102は、不揮発性メモリ103のリセットベクタ領域1031へアクセスする。処理(S310)へ移行する。処理(S310)では、制御部102が、リセットベクタ領域1031の新ファーム書き込み完了フラグを確認する。処理(S311)へ移行する。処理(S311)では、新ファーム書き込み完了フラグを判定する。書き込みが完了している場合(YESの場合)、処理(S312)へ移行する。書き込みが完了していない場合(NOの場合)、処理(S315)へ移行する。   In the process (S309), the control unit 102 is reset. The reset control unit 102 accesses the reset vector area 1031 of the non-volatile memory 103. Processing proceeds to processing (S310). In the process (S310), the control unit 102 confirms the new firmware write completion flag in the reset vector area 1031. It shifts to processing (S311). In the process (S311), a new firmware write completion flag is determined. If the writing is completed (in the case of YES), the process proceeds to processing (S312). If the writing is not completed (in the case of NO), the process proceeds to processing (S315).

処理(S312)では、制御部102がリセットベクタ領域1031に格納されている新ファームの先頭アドレスBを読み出し、その先頭アドレスBの位置から新ファームをロードする。処理(S313)へ移行する。処理(S313)では、制御部102が、メモリコントローラ部111にアクセスし、ファーム記憶領域1032を画像処理領域1033の一部に変更する。また画像処理領域1033の中で新ファームウェアが書き込まれている領域を、ファーム記憶領域1032に変更する(図2(c))。処理(S314)へ移行する。   In the process (S312), the control unit 102 reads the start address B of the new firmware stored in the reset vector area 1031, and loads the new firmware from the position of the start address B. It shifts to processing (S313). In the process (S 313), the control unit 102 accesses the memory controller unit 111 and changes the firm storage area 1032 to a part of the image processing area 1033. Further, the area where the new firmware is written in the image processing area 1033 is changed to the firm storage area 1032 (FIG. 2C). Processing proceeds to processing (S314).

処理(S314)では、表示制御部106が画像表示部107へ、ファームアップデート成功を示す画像、又はメッセージを送信し表示することで、ユーザーへアップデートの成功を通知する。処理(S317)へ移行し、ファームアップデートの処理フローを終了する。処理(S311)において、書き込みが完了していない場合(NOの場合)、処理(S315)へ移行する。   In the process (S314), the display control unit 106 notifies the image display unit 107 of the update success by transmitting and displaying an image or a message indicating the firmware update success. Processing proceeds to processing (S317), and the processing flow of firmware update is ended. In the process (S311), when the writing is not completed (in the case of NO), the process proceeds to the process (S315).

処理(S315)では、制御部102がリセットベクタ領域1031に格納されているファームの先頭アドレスAを読み出し、その先頭アドレスAの位置から旧ファームをロードする。処理(S316)へ移行する。処理(S316)では、表示制御部106が画像表示部107へ、ファームアップデート失敗を示す画像、又はメッセージを送信し表示することで、ユーザーへアップデートの失敗を通知する。処理(S317)へ移行し、ファームアップデートの処理フローを終了する。   In the process (S315), the control unit 102 reads the start address A of the firmware stored in the reset vector area 1031, and loads the old firmware from the position of the start address A. It shifts to processing (S316). In the process (S316), the display control unit 106 notifies the user of the update failure by transmitting and displaying an image indicating a firmware update failure or a message to the image display unit 107. Processing proceeds to processing (S317), and the processing flow of firmware update is ended.

ここで、処理(S304)、(S305)で述べた画像処理の進捗を確認し、未実施の画像処理を実行するという事項について説明する。図4に図示される画像データ400は、撮像部101が取得した撮像データに対して、画像処理部105が画像処理を実行する際に、一時的に不揮発性メモリ103に置かれる場合の形式を示している。   Here, the progress of the image processing described in the processing (S304) and (S305) is confirmed, and the matter of executing the unexecuted image processing will be described. The image data 400 illustrated in FIG. 4 has a format in which the image data is temporarily placed in the non-volatile memory 103 when the image processing unit 105 executes the image processing on the imaging data acquired by the imaging unit 101. It shows.

ヘッダ部401には、このファイルが静止画であることを示す識別コードなどが含まれている。メタデータ部402には、画像データ400に対する様々な情報が含まれる。例えばこの画像データのファイル名4021や、撮影時の絞り値や露出時間、ISO感度等の撮影メタデータ4022が含まれる。また、撮像部104から得られた画像データが、画像処理部105によってどのステップまで画像処理が完了したかといったステータスを示す画像処理ステータス4023も含まれる。制御部102は、この画像処理ステータス4023を確認することで、対象の画像データ400の画像処理が終了しているか否かを判定することができる。   The header portion 401 includes an identification code indicating that the file is a still image. The metadata unit 402 includes various information on the image data 400. For example, the file name 4021 of this image data, and shooting metadata 4022 such as an aperture value at the time of shooting, exposure time, and ISO sensitivity are included. The image processing status 4023 also indicates a status indicating to which step the image processing unit 105 has completed the image processing of the image data obtained from the imaging unit 104. The control unit 102 can determine whether the image processing of the target image data 400 is completed by confirming the image processing status 4023.

これが、図3の処理(S304)に相当する。画像データ本体403には、画像処理対象となるような画像データの本体が格納されており、その画像処理の進捗は、前述のメタデータ部に格納されている画像処理ステータスと紐づいている。   This corresponds to the process (S304) of FIG. The image data main body 403 stores a main body of image data to be an image processing target, and the progress of the image processing is linked with the image processing status stored in the above-mentioned metadata part.

上記のように、制御部102が画像処理ステータス4023を確認することで、画像処理の進捗を確認することができ、処理(S305)において、未実施の画像処理を実行することができる。   As described above, by confirming the image processing status 4023, the control unit 102 can confirm the progress of the image processing, and can execute unexecuted image processing in processing (S305).

撮像装置100が以上のような構成と動作をとることにより、撮像装置内にファームアップデート用の複数の不揮発性メモリ持つことなく、ファームアップデート時の電源遮断によって撮像装置100が起動不能の状態になることを回避し、ユーザーが円滑にファームアップデートを行うことができる。   When the imaging apparatus 100 has the above-described configuration and operation, the imaging apparatus 100 becomes unbootable due to power interruption at the time of firmware update without having a plurality of nonvolatile memories for firmware update in the imaging apparatus. Can avoid the problem and the user can perform the firmware update smoothly.

実施例1では、図3の処理(S303)〜(S306)で示すように、画像処理領域1033に画像データが存在する場合は、ファームアップデート前に、画像処理を全て完了し、記録媒体109に保存していた。実施例2では、画像処理領域1033に画像データが存在する場合は、その画像データをそのまま記録媒体109に保存し、ファームアップデートの処理が完了した後、記録媒体109から読み出し、未実施の画像処理を実行する。   In the first embodiment, as shown by the processes (S303) to (S306) in FIG. 3, when image data exists in the image processing area 1033, all image processing is completed before the firmware update, and the recording medium 109 is completed. I saved it. In the second embodiment, when image data exists in the image processing area 1033, the image data is stored as it is in the recording medium 109, and after the firmware update process is completed, the image data is read out from the recording medium 109 and unexecuted image processing. Run.

図5のフロー図を用いて処理を説明する。なお、図3のフロー図と同様の処理ステップについては、説明を省略する。処理(S500)〜(S503)は、実施例1における処理(S300)〜(S303)と同様の処理である。不揮発性メモリ103に、画像データが存在する場合は、処理(S504)に移行する。画像データが存在しない場合は、処理(S505)に移行する。処理(S504)では、画像処理領域1033の画像データを、記録制御部108が読み出し、記録媒体109へ記録する。処理(S505)へ移行する。   The process will be described using the flowchart of FIG. Description of processing steps similar to those in the flowchart of FIG. 3 will be omitted. The processes (S500) to (S503) are the same as the processes (S300) to (S303) in the first embodiment. If image data exists in the non-volatile memory 103, the process proceeds to processing (S504). If there is no image data, the process proceeds to processing (S505). In the process (S 504), the recording control unit 108 reads the image data of the image processing area 1033 and records the image data on the recording medium 109. It shifts to processing (S505).

処理(S505)〜(S514)は、実施例1における処理(S307)〜(S316)と同様の処理である。但し、処理(S512)もしくは、処理(S514)の後においてはフローを終了せず、処理(S515)へ移行する。処理(S515)では、制御部102が、記録媒体109にアクセスし、記録媒体内の画像データに対し、画像処理の進捗を確認する。処理(S516)へ移行する。処理(S516)では、画像処理が未完の画像データを記録制御部108が読み出し、不揮発性メモリ103の画像処理領域1033に書き込む。画像処理部105は、画像処理領域1033に書き込まれた画像データに対して、未実施の画像処理を実行する。処理(S517)へ移行する。   The processes (S505) to (S514) are the same as the processes (S307) to (S316) in the first embodiment. However, after the process (S512) or the process (S514), the flow is not ended, and the process proceeds to the process (S515). In the process (S515), the control unit 102 accesses the recording medium 109, and confirms the progress of the image processing on the image data in the recording medium. Processing proceeds to processing (S516). In the processing (S 516), the recording control unit 108 reads out the image data whose image processing is not completed, and writes the image data in the image processing area 1033 of the non-volatile memory 103. The image processing unit 105 executes unexecuted image processing on the image data written in the image processing area 1033. The process proceeds to processing (S517).

処理(S517)では、画像処理部105が画像処理を完了した画像データを、記録制御部108が読み出し、記録媒体109に保存する。保存が完了した後、処理(S518)へ移行し、処理を終了する。撮像装置100が以上のような構成と動作をとることにより、撮像装置内にファームアップデート用の複数の不揮発性メモリ持つことなく、ファームアップデート時の電源遮断によって撮像装置100が起動不能の状態になることを回避し、ユーザーが円滑にファームアップデートを行うことができる。   In the process (S517), the recording control unit 108 reads out the image data for which the image processing unit 105 has completed the image processing, and stores the image data in the recording medium 109. After the storage is completed, the process proceeds to processing (S518), and the processing ends. When the imaging apparatus 100 has the above-described configuration and operation, the imaging apparatus 100 becomes unbootable due to power interruption at the time of firmware update without having a plurality of nonvolatile memories for firmware update in the imaging apparatus. Can avoid the problem and the user can perform the firmware update smoothly.

また、上述の実施例では、不揮発性メモリ103はMRAMとしたが、これに限定されず、撮像装置100のワークメモリとして要件を満たすような不揮発性のメモリであればなんでもよい。また、上述の実施例では、外部IF110よりファームアップデートのためのデータを取得したが、外部PCなどを用いて記録媒体109内にファームアップデートのためのデータを保存し、そのデータを用いてアップデートするような構成にしてもよい。また、上述の実施例では、処理(S300)又は、処理(S500)におけるファームアップデート処理のSTARTに関して、ユーザーが操作部101でアップデート開始の操作を行うことでアップデート処理を開始するとしたが、これに限定されない。例えば、制御部102が、外部IF110を通して、新たなファームウェアの通知信号を受信し、その通知信号をトリガとして、アップデートの処理フローを開始するようにしてもよい。   Further, although the nonvolatile memory 103 is an MRAM in the above-described embodiment, the present invention is not limited to this, and any nonvolatile memory that satisfies the requirements as a work memory of the imaging device 100 may be used. In the above embodiment, data for firmware update is acquired from the external IF 110. However, data for firmware update is stored in the recording medium 109 using an external PC or the like, and update is performed using the data. It may be configured as such. In the above-described embodiment, with regard to START of the firmware update process in the process (S300) or the process (S500), the user starts the update process by performing the update start operation on the operation unit 101. It is not limited. For example, the control unit 102 may receive a notification signal of a new firmware through the external IF 110, and start the processing flow of update using the notification signal as a trigger.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As mentioned above, although the preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.

100 撮像装置 102 制御部 103 不揮発性メモリ
104 撮像部
100 imaging device 102 control unit 103 non-volatile memory 104 imaging unit

Claims (3)

撮像データを得る撮像手段と、
撮像データに画像処理を施して画像データを得る画像処理手段と、
前記画像データを記録する記録手段と、
プログラムにより前記撮像装置の動作を制御する制御手段と、
前記撮像装置のワークメモリとして使用する不揮発性記憶手段と、を有し
前記不揮発性記憶手段は、前記プログラムを記憶するファーム記憶領域と、前記画像処理手段が画像処理を実行するための画像処理領域と、を持ち、
前記ファーム記憶領域に記憶されたプログラムをアップデートする際には、前記画像処理領域に対し画像データの有無を確認し、画像データが存在する場合は、画像データを前記記録媒体へ保存した後、前記画像処理領域に新たなプログラムを書き込み、画像データが存在しない場合は、前記画像処理領域に前記新たなプログラムを書き込み、前記新たなプログラムを書き込んだ後に、前記不揮発性記憶手段の所定のアドレスに、前記新たなプログラムを書き込んだ先のメモリアドレスと、前記新たなプログラムの書き込み完了を示すフラグとを記憶し、前記アップデート後の前記撮像装置、又は前記制御手段の起動時においては、前記制御手段は、前記所定のアドレスにアクセスし、前記メモリアドレスと、前記フラグとを読み出し、前記メモリアドレスの領域から、前記新たなプログラムを読み出して撮像装置を制御し、前記フラグが書き込み完了を示していた場合は、前記新たなプログラムが書き込まれた領域を、新たにファーム記憶領域と設定し、前記アップデート前の前記ファーム記憶領域を新たに画像処理領域と設定する撮像装置。
Imaging means for obtaining imaging data;
Image processing means for performing image processing on the imaging data to obtain image data;
Recording means for recording the image data;
Control means for controlling the operation of the image pickup apparatus by a program;
A nonvolatile storage unit used as a work memory of the imaging apparatus; the nonvolatile storage unit includes a firm storage area for storing the program; and an image processing area for the image processing unit to execute image processing And have
When updating the program stored in the firm storage area, the presence or absence of image data in the image processing area is confirmed, and if image data is present, the image data is stored in the recording medium, and then the image data is stored. If a new program is written to the image processing area and no image data exists, the new program is written to the image processing area and the new program is written to a predetermined address of the non-volatile storage means, The memory means stores the memory address to which the new program has been written, and a flag indicating the completion of the writing of the new program, and the control means performs the activation of the imaging device or the control means after the update. Accessing the predetermined address and reading the memory address and the flag; The new program is read out from the area of the memory address to control the imaging apparatus, and when the flag indicates the completion of writing, the area where the new program is written is newly set as a firm storage area. An imaging device for newly setting the firm storage area before the update as an image processing area;
前記画像データの画像処理の進捗を判断する画像処理進捗判定手段を有し、
前記画像処理領域に前記画像データが存在する場合は、前記画像処理領域に前記新たなプログラムを書き込む前に、前記画像処理進捗確認手段が、前記画像データに対して未実施の画像処理を判定し、前記画像処理手段が、前記画像データに対して未実施と判定された画像処理を実行する、ことを特徴とする請求項1に記載の撮像装置。
Image processing progress determination means for determining the progress of the image processing of the image data;
When the image data is present in the image processing area, the image processing progress confirmation means determines the image processing not yet performed on the image data before writing the new program in the image processing area. The image pickup apparatus according to claim 1, wherein the image processing means executes image processing determined to be unexecuted on the image data.
前記画像データの画像処理の進捗を判断する画像処理進捗判定手段を有し、
前記画像処理領域に前記画像データが存在する場合は、前記画像データを前記記録媒体へ保存した後、前記撮像装置の前記アップデートを実行し、前記アップデート後の前記撮像装置の起動時には、画像処理進捗判定手段が、前記画像データに対して未実施の画像処理を判定し、前記画像処理手段が、前記画像データに対して未実施と判定された画像処理を実行する、ことを特徴とする請求項1に記載の撮像装置。
Image processing progress determination means for determining the progress of the image processing of the image data;
When the image data exists in the image processing area, the image data is stored in the recording medium, and then the update of the image pickup apparatus is executed, and the image processing progress is performed when the image pickup apparatus is started after the update. The determination means determines the unexecuted image processing on the image data, and the image processing means executes the image processing determined to be unexecuted on the image data. The imaging device according to 1.
JP2017216860A 2017-11-10 2017-11-10 Image capturing device Pending JP2019087171A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017216860A JP2019087171A (en) 2017-11-10 2017-11-10 Image capturing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017216860A JP2019087171A (en) 2017-11-10 2017-11-10 Image capturing device

Publications (1)

Publication Number Publication Date
JP2019087171A true JP2019087171A (en) 2019-06-06

Family

ID=66763151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017216860A Pending JP2019087171A (en) 2017-11-10 2017-11-10 Image capturing device

Country Status (1)

Country Link
JP (1) JP2019087171A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023127516A1 (en) * 2021-12-27 2023-07-06 ソニーグループ株式会社 Replacement device, information processing method, and information processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023127516A1 (en) * 2021-12-27 2023-07-06 ソニーグループ株式会社 Replacement device, information processing method, and information processing device

Similar Documents

Publication Publication Date Title
US10866800B2 (en) Information processing system, client terminal, and control method
JP4826217B2 (en) Imaging apparatus and program
JP2019087171A (en) Image capturing device
JP2006020058A (en) Image forming apparatus
JP4591486B2 (en) Information processing apparatus, information processing method, and computer program
JP5304458B2 (en) Electronic camera
JP7146428B2 (en) Image recording device and its control method
JP4262220B2 (en) Digital camera
JP2008065641A (en) Electronic appliance, digital camera, and starting method of electronic appliance
JP5187416B2 (en) Imaging apparatus, imaging condition setting method and program
JP4878456B2 (en) Recording medium and imaging apparatus
JP2009301319A (en) Multiprocessor system
JP2006189974A (en) Electronic apparatus and program update method for the same
JP2005167738A (en) Image processing apparatus and control method
JP4930825B2 (en) Imaging device and data transfer device
US10705915B2 (en) Embedded system, photographing device and refresh method
JP4785778B2 (en) Imaging device, control method thereof, and program
US8018503B2 (en) Imaging apparatus with multiple timing-adjusting parts
JP2008033602A (en) Information processor
JP2006148821A (en) Histogram display apparatus
JP2006195770A (en) Peripheral processing system, semiconductor storage device, external device, processing method, and program
JP4891269B2 (en) Information processing apparatus, control method therefor, and program
JP2005354623A (en) Image sensing apparatus and method of controlling the same
JP2009205187A (en) Memory controller, nonvolatile storage device, nonvolatile storage system, and memory control method
JP2011061374A (en) Camera system and camera system control method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20191125