1335598 七、指定代表圖: (一) 本案指定代表圖為:第(一)圖。 (二) 本代表圖之元件符號簡單說明: S11〜S14 :步驟流程。 八、本案若有化學式時,請揭示最能顯示發明特徵的化學式: • 九、發明說明: 【發明所屬之技術領域】 -本發明係為提供一種記憶體偵測方法,特別是一種主機 , 板之韌體用以偵測記憶體是否混插、記憶體容量是否相同及 錯誤訊息回報之方法。 【先前技術】 ^ 習知主機板之韌體,並無提供判定記憶體混插(廠牌不 同)、、容量大小不同及無插記憶體等,做出判定及對使用者 提出錯誤警示,若DIMMO無插記憶體,而其他DIMM有插時, 習知技術之韌體仍舊會判定為無記憶體,則造成無法開機, 且使用者在記憶體產生混插或容量之錯誤時,並不會收到任 - 何錯誤訊息,而進行開機動作,雖不致造成系統毀損,但亦 可能造成無法開機或是記憶體無法完整運作,間接造成使用 者金錢及效率上的損失。 1335598 為滿足上述所提出的改善習知韌體功能的需求。本發明 人基於多年從事研究與諸多實務經驗,經多方研究設計與專 ’ 題探討,遂於本發明提出一種記憶體偵測方法以作為前述期 ' 望一實現方式與依據。 【發明内容】 有鑑於上述課題,本發明之目的為提供一種記憶體偵測 方法,特別是一種主機板之韌體用以偵測記憶體是否混插、 記憶體容量是否相同及錯誤訊息回報之方法。 ® 緣是,為達上述目的,依本發明之記憶體偵測方法, 適用於一主機板之一韌體,此方法至少包含: (a) 偵測複數個記憶體插槽(DI匪Slot),判斷是否 • f 存在至少一記憶體,若是,執行步驟(d),若否,則執 行步驟(b); (b) 載入一初始化程式至一中央處理器(CPU)之一快取記 憶體; (c) 透過該初始化程式,驅動一顯示裝置;以及 φ (d)透過該顯示裝置顯示一記憶體偵測訊息。 其中,記憶體偵測訊息係為一記憶體狀態訊息或一無插入記 憶體之錯誤訊息。 承上所述,因依本發明之記憶體偵測方法,由韌體自動 - 判定記憶體狀態,檢查是否混插、容量是否相同或是無插記 憶體等狀態,並記錄錯誤訊息,供使用者參考,讓使用者可 以瞭解,系統記憶體是否能夠完整運作。本發明一方面可降 低使用者誤插不同容量記憶體之可能性,間接發揮記憶體之 5 Γ335598 完整效能,另一方面,更能提供使用者購買不 避免因誤插或無插記憶體,所造成記憶體或 兹為使f審查委員對本發明之技術特徵及 與認識,下文謹提供較佳之實施例及 ^關圖式Μ魅之用,並以詳細之說日月文字配合說明如 【實施方式】 以下將參照相關圖式,說明依本發明較 體铜方法’其中相同的元件將以相同的參照符; 圖,目’軸示本發狀戏_财权步驟流程 步驟S11 :债測所有記憶體插槽,判斷 一 記憶體,若是,則執行步驟S14,若否,則執行 步驟S12 :載入-初始化程式至中央處理器之快取記憶體; 步驟S13:透過初始化程式,驅動一顯示裝置;以及 步驟S14 :透過顯示裝置顯示記憶體偵測訊息。 其中,上述記憶體積測訊息係為—記憶體 無插入記憶體之錯誤訊息,上述該初始化 (hardware, H/W) (Syst!1335598 VII. Designated representative map: (1) The representative representative of the case is: (1). (2) A brief description of the component symbols of this representative figure: S11~S14: Step flow. 8. If there is a chemical formula in this case, please disclose the chemical formula that best shows the characteristics of the invention: • Nine, invention description: [Technical field of the invention] - The present invention provides a memory detection method, in particular, a host, a board The firmware is used to detect whether the memory is mixed, the memory capacity is the same, and the error message is reported. [Prior Art] ^ The firmware of the motherboard is not provided with the judgment memory intermixing (the label is different), the capacity is different, and the memory is not inserted, and the judgment is made and the user is given an error warning. DIMMO has no plug-in memory, and when other DIMMs are plugged in, the firmware of the conventional technology still determines that there is no memory, which causes the booting to be impossible, and the user does not have the error of the mixed insertion or capacity of the memory. Receiving any error message and performing the booting action will not cause the system to be damaged, but it may also result in failure to boot or the memory cannot be fully operated, which indirectly causes loss of money and efficiency of the user. 1335598 To meet the above-mentioned need to improve the functionality of the conventional firmware. The present inventors have been engaged in research and many practical experiences based on many years of research and design, and have explored a memory detection method as the implementation method and basis of the foregoing period. SUMMARY OF THE INVENTION In view of the above problems, an object of the present invention is to provide a method for detecting a memory, in particular, a firmware of a motherboard for detecting whether a memory is mixed, whether the memory capacity is the same, and an error message is reported. method. The edge is that, for the above purpose, the memory detecting method according to the present invention is applicable to a firmware of a motherboard, and the method includes at least: (a) detecting a plurality of memory slots (DI匪Slot) , to determine whether • f has at least one memory, and if so, perform step (d), if not, perform step (b); (b) load an initialization program to a central processing unit (CPU) (c) driving a display device through the initialization program; and φ (d) displaying a memory detection message through the display device. The memory detection message is a memory status message or an error message with no insertion memory. According to the memory detecting method of the present invention, the firmware automatically determines the state of the memory, checks whether the mixed insertion, the capacity is the same, or the state without the inserted memory, and records an error message for use. For reference, let the user know if the system memory is fully operational. In one aspect, the invention can reduce the possibility of users inserting different capacity memories by mistake, and indirectly exerts the full performance of the memory 5 Γ 585598, on the other hand, it can provide users with the purchase to avoid accidental insertion or no insertion of memory. In order to make the memory or the understanding of the technical features and understanding of the present invention, the following is a preferred embodiment and the use of the graphic, and the detailed description of the sun and the moon text is as follows. The following description will be made with reference to the related drawings, in which the same element will be given the same reference character in the method of the body copper; Figure, the axis shows the hairline _ financial steps step S11: debt testing all memory a slot, determining a memory, if yes, executing step S14, if not, executing step S12: loading-initializing the program to the cache memory of the central processing unit; step S13: driving a display device through the initialization program; And step S14: displaying the memory detection message through the display device. The memory volume measurement message is an error message of the memory without the memory inserted, and the initialization (hardware, H/W) (Syst!
Management Mode,SMM)初始化程式及一視訊初始化程式。 請參閱第二® ’雜示本發明之記憶體偵測 例之步騾流程圖,其步驟如後: 具施 1335598 步驟S21:檢查並記錄各議MSlot是否有插 若是,則執行步驟S22,若否,則執行步驟⑽體’ 步驟S22 :顯示記憶體狀態訊息; 步驟S23 :開啟中央處理器之快取記憶體; 步驟S24 :初始化硬體; 步驟S25 :初始化系統管理模式; 步驟S26 :初始化顯示裝置;以及Management Mode, SMM) Initialization program and a video initialization program. Please refer to the second embodiment of the memory detection example of the present invention. The steps are as follows: s1335598. Step S21: Check and record whether the MSlots are inserted or not, and then perform step S22. No, step (10) is performed, step S22: displaying the memory status message; step S23: turning on the cache memory of the central processing unit; step S24: initializing the hardware; step S25: initializing the system management mode; step S26: initializing the display Device;
步驟S27 :透過顯示襞置 息。 顯示無插入記憶體之錯誤訊 請參閱第三圖,係顯示本發明之記憶體偵測方法之一银 施例步驟流程圖,此方法適用於一主機板之―靜 貝 如後: w脰,昇步驟 步驟S31 :偵測複數個記憶體插槽,判斷是否每一記情 槽皆插入一記憶體,並記錄偵測結果至第一偵測記錄;^ _ 步驟S32 :根據第-偵測記錄,憤測複數個記憶體插槽組, # 此記憶體插槽組係包含二個記憶體插槽,並記錄偵測結果至胃第二 偵測記錄;以及 — 步驟S33 :根據第二偵測記錄,顯示一記憶體偵測訊息。 其中’上述步驟S31係透過一系統管理匯流排(system Management Bus,SMBus)傳送一交握訊號,以偵測是否每一記憶 體插槽皆插入記憶體,上述方法更包含載入一初始化程式至記 憶體’以驅動顯示裝置,顯示記憶體偵測訊息,或載入一初始化 程式至中央處理器(CPU)之快取記憶體,以驅動顯示裝置,顯示記 憶體偵測訊息。 1335598 請參閱第四圖,係顯示本發明之記憶體偵測方法之另一實 施例之步驟流程圖,其更進一步說明上述第一圖之步驟S32,其 步驟如後: ” 步驟S41 ·判斷一記憶體插槽組是否插滿二個記憶體, 若是,則執行步驟S42,若此記憶體插槽組只插入一彳固記憔 體,則執行步驟S43,若此記憶體插槽組無插入記憶體,則 執行步驟S44 ;Step S27: The information is displayed through the display. Please refer to the third figure for displaying the error of the non-inserted memory. The flow chart of the silver application step of the memory detection method of the present invention is applied to a motherboard. Step S31: detecting a plurality of memory slots, determining whether each of the slots is inserted into a memory, and recording the detection result to the first detection record; ^ _ step S32: according to the first detection record Inverted to measure a plurality of memory slot groups, # this memory slot group includes two memory slots, and records the detection result to the second detection record of the stomach; and - step S33: according to the second detection Record, display a memory detection message. The above step S31 transmits a handshake signal through a system management bus (SMBus) to detect whether each memory slot is inserted into the memory, and the method further includes loading an initialization program to The memory 'drives the display device, displays the memory detection message, or loads an initialization program to the central processing unit (CPU) cache memory to drive the display device to display the memory detection message. 1335598 Referring to FIG. 4 is a flow chart showing the steps of another embodiment of the memory detecting method of the present invention, which further illustrates step S32 of the first figure, and the steps thereof are as follows: ” Step S41 · Judge a Whether the memory slot group is full of two memories, if yes, proceeding to step S42, if the memory slot group is only inserted into a fixed-characterized body, step S43 is performed, if the memory slot group is not inserted Memory, step S44 is performed;
步驟S42 :判斷此記憶體插槽組所插入之二個記憶體是 否為相同谷置及相同廠商,若是,則記錄記憶體容量至第二 偵測記錄,並執行步驟S44,若否,則記錄記憶體 息至第二偵測記錄,並執行步驟S44 ; ' θ ° 步驟S43 :判斷記憶體是否插入記憶體插槽組之低位元 組插槽’若是,則紀錄記憶體之記憶體容量至第二偵測$ 錄,並執行步驟S44,若否,則記錄記憶體之錯誤訊息至= 二偵測記錄,並執行步驟S44 ;以及 ' °心 步驟S44 :偵測下一個記憶體插槽組,並重複上述步驟 S41,直到全部記憶體插槽組皆已偵測。 > 其中’上述步驟S42係才艮據儲存於記憶體中之串行存在檢 查(Serial Presence Detect,SPD)判斷記憶體是否為相同容^ 及相同廠商,上述記憶體偵測訊息係包含記憶體容量及錯誤_^阜。 請參閱第五圖’係顯示本發明之記憶體偵測方法之另一 較佳實施例之步驟流程圖,其步驟如後: 步驟S51 :透過SMbus依各記憶體之位址傳送交握气 號’檢查該DIMM Slot是否有插入記憶體,並將結果記錄. 8 步驟S52 :以bank為單位,依照步驟S51的紀錄,判 斷各別bank是否插入二個記憶體,若是,執行步驟S53, 若只插入一個記憶體,則執行步驟S54 ; 步驟 S53.依串行存在檢查(seriai presence Detect,SPD) 值中’所記錄有關記題之參數,酬記舰是否為相同容量及 相同廠商’若是,執行步驟S57,若否,執行步驟娜; 步驟S54 ·判斷bank +之記憶體是否插於低位元組之DIMM Slot,若是,執行步驟娜,若否,執行步驟舰; 步驟S55 :儲存錯誤; ' 乂驟邡6 :偵测並記錄記憶體容量; 查完畢,若是,執行步驟 步驟S58 .加總記憶體容量及顯示錯誤訊息。 以上所述僅為舉例性,而非為限制性 =精神與範嘴,而對其進行之等效修改或變;未= 含於後附之申請專利範圍中。 飞文更,均應包 1335598 【圖式簡單說明】 第一圖係顯示本發明之記憶體偵測方法之步驟流程圖; 第二圖係顯示本發明之記憶體偵測方法之較佳實施例之步驟 流程圖; 第三圖係顯示本發明之記憶體偵測方法之一實施例步驟 流程圖; 第四圖係顯示本發明之記憶體偵測方法之另一實施例之步 驟流程圖;以及 第五圖係顯示本發明之記憶體偵測方法之另一較佳實施 例之步驟流程圖。 【主要元件符號說明】 S11〜S14 :步驟流程; S21〜S27 :步驟流程; S31〜S33 :步驟流程; S41〜S44 :步驟流程;以及 S51〜S58 :步驟流程。Step S42: determining whether the two memory devices inserted in the memory slot group are the same valley and the same manufacturer, and if so, recording the memory capacity to the second detection record, and executing step S44, if not, recording The memory is restored to the second detection record, and step S44 is performed; ' θ ° step S43: determining whether the memory is inserted into the low byte slot of the memory slot group', if yes, recording the memory capacity of the memory to the first 2, detecting the record, and executing step S44, if not, recording the error message of the memory to the second detection record, and performing step S44; and '° step S44: detecting the next memory slot group, And repeating the above step S41 until all the memory slot groups have been detected. > wherein the above step S42 is based on the Serial Presence Detect (SPD) stored in the memory to determine whether the memory is the same and the same manufacturer, and the memory detection message includes the memory. Capacity and error _^阜. Referring to FIG. 5A is a flow chart showing the steps of another preferred embodiment of the memory detecting method of the present invention. The steps are as follows: Step S51: transmitting the handshake air number according to the address of each memory through the SMbus. 'Check whether the DIMM Slot has inserted memory and record the result. 8 Step S52: In the bank unit, according to the record of step S51, determine whether each bank inserts two memories, and if so, execute step S53, if only If a memory is inserted, step S54 is performed; step S53. According to the parameters of the seriai presence Detect (SPD) value recorded in the value of the record, whether the reward ship is of the same capacity and the same manufacturer 'if yes, execute Step S57, if no, execute step Na; Step S54 · Determine whether the memory of bank+ is inserted into the DIMM Slot of the lower byte, and if yes, execute step Na, if not, execute the step ship; Step S55: store error; ' 乂Step 6: Detect and record the memory capacity; If the check is completed, if yes, perform step S58 to increase the memory capacity and display an error message. The above description is only exemplary, and is not intended to be limiting, and the equivalent modifications or variations of the invention are not included in the scope of the appended claims. The first picture shows a flow chart of the steps of the memory detecting method of the present invention. The second figure shows a preferred embodiment of the memory detecting method of the present invention. The following is a flow chart showing the steps of one embodiment of the memory detecting method of the present invention; and the fourth drawing is a flow chart showing the steps of another embodiment of the memory detecting method of the present invention; Figure 5 is a flow chart showing the steps of another preferred embodiment of the memory detecting method of the present invention. [Description of main component symbols] S11~S14: Step flow; S21~S27: Step flow; S31~S33: Step flow; S41~S44: Step flow; and S51~S58: Step flow.