CN102446138A - Method for calibrating MAP data of single chip system - Google Patents

Method for calibrating MAP data of single chip system Download PDF

Info

Publication number
CN102446138A
CN102446138A CN2011102777143A CN201110277714A CN102446138A CN 102446138 A CN102446138 A CN 102446138A CN 2011102777143 A CN2011102777143 A CN 2011102777143A CN 201110277714 A CN201110277714 A CN 201110277714A CN 102446138 A CN102446138 A CN 102446138A
Authority
CN
China
Prior art keywords
map
flash
start address
demarcating
data
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.)
Granted
Application number
CN2011102777143A
Other languages
Chinese (zh)
Other versions
CN102446138B (en
Inventor
方成
李进
杨福源
欧阳明高
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.)
CHANGZHOU ECTEK AUTOMOTIVE ELECTRONIC SYSTEMS Co Ltd
Tsinghua University
Original Assignee
CHANGZHOU ECTEK AUTOMOTIVE ELECTRONIC SYSTEMS Co Ltd
Tsinghua University
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 CHANGZHOU ECTEK AUTOMOTIVE ELECTRONIC SYSTEMS Co Ltd, Tsinghua University filed Critical CHANGZHOU ECTEK AUTOMOTIVE ELECTRONIC SYSTEMS Co Ltd
Priority to CN201110277714.3A priority Critical patent/CN102446138B/en
Publication of CN102446138A publication Critical patent/CN102446138A/en
Application granted granted Critical
Publication of CN102446138B publication Critical patent/CN102446138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for calibrating the MAP data of a single chip system, comprising the following steps of: 1) setting a plurality of areas in the internal memory of a single chip; 2) storing the original data of all MAPs in the internal memory of the single chip; 3) storing the initial address and the occupied space size of each MAP in the internal memory of the single chip; 4) storing the index sequence number of each MAP in the internal memory of the single chip; 5) at the initialization of the system, building and initializing an MAP pointer array; 6) in the online calibration process, copying the MAP which is calibrated now into an RAM (Random-Access Memory) in the single chip from the FLASH in the single chip, and modifying the corresponding data in the RAM; and 7) obtaining the initial address of the present storage space of the MAP by searching for the corresponding MAP pointer, thereby performing table look-up interpolation operation on the data in the internal memory area which is started with the initial address and has a corresponding space size. With the method provided in the invention, the complexity degree and manufacturing cost of the single chip system can be reduced.

Description

A kind of SCM system MAP data scaling method
Technical field
The present invention relates to a kind of MAP data scaling method, particularly about a kind of MAP data scaling method that is used for low capacity RAM SCM system.
Background technology
At vehicle electric field, embedded system mostly uses single-chip microcomputer as the control core.Because the complicacy of control system and the diversity of object have a large amount of parameters when system design, to confirm in the SCM system, need, system development confirm after accomplishing through matching and calibration.And this matching and calibration is utilized the calibration tool software on the PC often, connects through agreement and SCM system based on bus, and the operation with on the calibration tool software sends single-chip microcomputer to, accomplishes corresponding operation by single-chip microcomputer.On the FLASH in single-chip microcomputer, the initial value that to preserve these parameters that need demarcate be MAP; Agreement through based on bus receives the calibration tool Software Operation, and MAP is carried out Data Update; Because the numerical value among the FLASH can only could upgrade through the FLASH programming software; And in operation FLASH programming software; Generally can not carry out the program that reads FLASH simultaneously; Need stop the operation of normal procedure, get into special FLASH programming module, therefore this mode can't be supported the on-line proving of MAP; To this problem; Solution at present commonly used is copying among the RAM in the single-chip microcomputer the FLASH of MAP data in single-chip microcomputer, in the time of on-line proving, modification be the MAP data among the RAM; Through the data query function, detect the result behind the MAP data modification.But; This method is defectiveness also: because the RAM capacity in the single-chip microcomputer sheet is often very little; And need the MAP that demarcates a lot of in some embedded systems; For example the control system ABS of the control system ESP of engine, wheel box and automobile kinetic control system TCS etc. often can't be all copying among the RAM in the single-chip microcomputer all FLASH of MAP data in single-chip microcomputer.At present; This solution commonly used there are two kinds: the one, be used for demarcating in the external RAM of single-chip microcomputer, this need draw address bus and data bus on the single-chip microcomputer pin, has taken a large amount of pin resources; And the Electro Magnetic Compatibility of system is worsened, increase system cost; The 2nd, demarcate through piecemeal; All demarcation MAP piecemeals, only once demarcate among the RAM of the MAP copying data in a zone in the single-chip microcomputer, therefore once can only demarcate the MAP data in the zone; This method limitation is very big; Can't confirm in advance once to demarcate needs to revise how many MAP, in the MAP subregion, also just can't select a kind of division methods that adapts to the whole calibrating stage, and need between a plurality of demarcation pages or leaves, switch back and forth; And for this online switching, can the staking-out work of before carrying out be lost.
Summary of the invention
To the problems referred to above, the purpose of this invention is to provide and a kind ofly can support SCM system preferably, particularly the SCM system MAP data scaling method of low capacity RAM SCM system on-line proving.
For realizing above-mentioned purpose, the present invention takes following technical scheme: a kind of SCM system MAP data scaling method, and it is characterized in that: it may further comprise the steps:
1) several zones are set in the single-chip microcomputer internal memory, may further comprise the steps:
1. the size according to the data total amount of MAP is provided with a region of memory, as demarcating FLASH;
2. the size according to the MAP data volume that once can demarcate is provided with a region of memory, as demarcating RAM;
3. the number according to MAP is provided with a region of memory, as information FLASH;
4. the size according to the data total amount of MAP is provided with a region of memory, as index FLASH;
2) raw data of all MAP of preservation in the demarcation FLASH zone that is provided with by step 1);
3) obtain the start address and the size that takes up room that each MAP deposits through existing tool software in demarcating FLASH, it is kept in the information FLASH zone that is provided with by step 1);
4) obtain the index sequence number of demarcating the MAP that each byte is preserved in the FLASH zone through existing tool software, it is kept in the index FLASH zone that is provided with by step 1);
5) when system initialization, set up and MAP array of pointers of initialization, may further comprise the steps:
1. in the MAP administration module, an array of pointers is set, the following index sequence number that is designated as MAP of this array element, the number of array element is identical with the number of MAP, and array element is a pointer, points to the start address of MAP parking space in internal memory;
2. when system initialization, according to the MAP number, from information FLASH, obtain the start address of each MAP in demarcating FLASH successively, then,, point to the start address of each MAP in demarcating FLASH respectively with step each MAP pointer in 1.;
If desired the MAP data are made amendment, get into step 6);
If desired the MAP data are inquired about, get into step 7);
6) in the on-line proving process, copy the MAP that is demarcating in the RAM in the single-chip microcomputer to from the FLASH in the single-chip microcomputer, in RAM, corresponding data made amendment, may further comprise the steps:
1. after calibration tool software on the PC and SCM system connect; In calibration tool software, data among the MAP are made amendment; At this moment, this data point of calibration tool computed in software is with respect to the address offset of this MAP start address, then according to the start address of this MAP in demarcating FLASH; Further confirm this data point storage addresses in demarcating FLASH, calibration tool software sends to single-chip microcomputer to this address and amended data;
2. single-chip microcomputer is according to by the 1. calibration tool software address of sending of step; The MAP index sequence number of being preserved in the corresponding address in the search index FLASH; Then according to this index sequence number; The subscript element of index sequence number for this reason in the visit information FLASH structure therein array obtains the start address of this MAP in demarcating FLASH then and takes up room size;
3. the MAP index sequence number that 2. obtains according to step of single-chip microcomputer, inquiry corresponding M AP pointer obtains the address of the current sensing of this MAP pointer:
Demarcate FLASH if this address is positioned at, get into step 4.;
Demarcate RAM if this address is positioned at, get into step 5.;
4. the start address that 2. obtains according to step with take up room size, single-chip microcomputer will be arranged in to be demarcated FLASH and begins with this start address, the data in the additional space size all copy in the white space of demarcating RAM; Write down the space size of using in the current demarcation ram region; Revise the pointer of this MAP then, make the start address of this MAP parking space in its guiding calibration ram region, get into step 5.;
5. the known storage address of data point in demarcating FLASH that needs modification; Single-chip microcomputer is according to start address and the start address during demarcating RAM of this data point place MAP in demarcating FLASH; Obtain the storage address of this data point in demarcating RAM, the data modification in this address is the data after upgrading;
7) start address of known MAP in FLASH and the size that takes up room; Through inquiry corresponding M AP pointer; Obtain the start address of the current parking space of this MAP, thereby to begin the data in the region of memory of additional space size with this start address; The interpolation operation of tabling look-up may further comprise the steps:
1. single-chip microcomputer passes to the interpolating function of tabling look-up to the start address of MAP in demarcating FLASH as parameter;
2. table look-up interpolating function according to the start address that 1. obtains by step, the MAP index sequence number of being preserved in the corresponding address in the search index FLASH;
3. single-chip microcomputer is inquired about corresponding M AP pointer according to the MAP index sequence number that is 2. obtained by step, obtains the start address of the current parking space of this MAP;
4. based on the start address that is 3. obtained by step, to the data in the region of memory of additional space size, the interpolation operation of tabling look-up finishes.
Above-mentioned steps 3) in, obtains the start address and the size that takes up room that each MAP deposits in demarcating FLASH through existing MAP inventory analysis software.
Above-mentioned steps 4) in, obtains the index sequence number of demarcating the MAP that each byte is preserved in the FLASH zone through existing MAP inventory analysis software.
Above-mentioned steps 4) in, in index FLASH, each byte is deposited an index sequence number.
Above-mentioned steps 4) in, when the MAP number greater than 255 the time, in index FLASH, per two bytes are deposited an index sequence number.
Above-mentioned steps 3) in, adopt the structure array to preserve the start address of each MAP and the size that takes up room; The following index sequence number that is designated as MAP of this array element, the number of array element is identical with the number of MAP, and array element is a structure, comprises that two member: MAP take up room big or small and the start address of MAP in demarcating FLASH.
The present invention is owing to take above technical scheme; It has the following advantages: 1, because the present invention only copies to the MAP online data that needs are demarcated among the RAM in real time; Thereby the ram space that takies is less, has solved the problem of low capacity RAM SCM system demarcation mass data.2,, solved existing because of piecemeal is demarcated or ram space can not once be demarcated all MAP inadequately problem because the present invention can all the MAP data that need demarcate of on-line proving.Adopt the present invention can reduce the complexity and the manufacturing cost of SCM system.
Description of drawings
Fig. 1 is that single-chip microcomputer region of memory of the present invention is divided synoptic diagram;
The MAP pointer synoptic diagram of Fig. 2 during for initialization of the present invention;
The MAP pointer synoptic diagram of Fig. 3 during for on-line proving of the present invention.
Embodiment
As shown in Figure 1, the inventive method may further comprise the steps:
1) several zones is set in the single-chip microcomputer internal memory;
2) raw data of all MAP of preservation in the single-chip microcomputer internal memory;
3) in the single-chip microcomputer internal memory, preserve the start address of each MAP and the size that takes up room;
4) the index sequence number of each MAP of preservation in the single-chip microcomputer internal memory;
5) when system initialization, set up and MAP array of pointers of initialization;
6) in the on-line proving process, copy the MAP that is demarcating in the RAM in the single-chip microcomputer to from the FLASH in the single-chip microcomputer, in RAM, corresponding data are made amendment;
7) start address of known MAP in FLASH and the size that takes up room; Through inquiry corresponding M AP pointer, obtain the start address of the current parking space of this MAP, thereby to beginning with this start address; Data in the region of memory of additional space size, the interpolation operation of tabling look-up.
Below in conjunction with accompanying drawing and embodiment the present invention is carried out detailed description.
1) several zones are set in the single-chip microcomputer internal memory, may further comprise the steps:
1. the size according to the data total amount of MAP is provided with a region of memory, as demarcating FLASH, is used to preserve all MAP data.
In embodiments of the present invention, as shown in Figure 1, the 128K space that address 0x140000 begins in the single-chip microcomputer internal memory is set to demarcate FLASH.
2. the size according to the MAP data volume that once can demarcate is provided with a region of memory, as demarcating RAM, is used for preserving the MAP latest data that online calibration process was upgraded.
In embodiments of the present invention, as shown in Figure 1, the 64K space that address 0x400000 begins in the single-chip microcomputer internal memory is set to demarcate RAM.
3. the number according to MAP is provided with a region of memory, as information FLASH, is used for preserving the size that takes up room of each MAP at the start address of demarcating FLASH and this MAP.
In embodiments of the present invention, as shown in Figure 1, the 8K space that single-chip microcomputer memory address 0x100000 begins is set to information FLASH.
4. the size according to the data total amount of MAP is provided with a region of memory, as index FLASH, is used to preserve the index sequence number of demarcating the stored MAP of FLASH corresponding address.
In embodiments of the present invention, as shown in Figure 1, the 128K space that address 0x160000 begins in the single-chip microcomputer internal memory is set to index FLASH.
2) raw data of all MAP of preservation in the single-chip microcomputer internal memory is specially:
In the demarcation FLASH zone that is provided with by step 1), preserve the raw data of all MAP.
3) in the single-chip microcomputer internal memory, preserve the start address of each MAP and the size that takes up room, may further comprise the steps:
1. through existing tool software,, obtain the start address and the size that takes up room that each MAP deposits in demarcating FLASH like MAP inventory analysis software;
2. the start address of each MAP in demarcating FLASH and the size that takes up room are kept in the information FLASH zone that is provided with by step 1).
Wherein, can adopt the start address and the size that takes up room of each MAP of structure array record; The following index sequence number that is designated as MAP of this array element, the number of array element is identical with the number of MAP, and array element is a structure, comprises that two member: MAP take up room big or small and the start address of MAP in demarcating FLASH.
In the said structure body, can adopt one 16 bit variable record MAP size that takes up room, adopt the start address of one 32 bit variable record MAP in demarcation FLASH.
Suppose that in embodiments of the present invention demarcating in the FLASH has 6 MAP, first MAP (MAP0) is kept in the scope of 0x140000~0x1400FF; Second MAP (MAP1) is kept in the scope of 0x140100~0x1401FF, and the 3rd MAP (MAP2) is kept in the scope of 0x140200~0x1402FF, and the 4th MAP (MAP3) is kept in the scope of 0x140300~0x1403FF; The 5th MAP (MAP4) is kept in the scope of 0x140400~0x1404FF, and the 6th MAP (MAP5) is kept in the scope of 0x140500~0x1405FF, and the MAP sequence number that these 6 MAP are corresponding is respectively 0,1,2,3,4 and 5; So: the structure array among the information FLASH correspondingly comprises six array elements, array element 0 be 0x100,0x140000} (expression MAP0 size be 0x100; Start address is 0x140000), array element 1 is { 0x100,0x140100}; Array element 2 is that { array element 3 is { 0x100 for 0x100,0x140200}; 0x140300}, array element 4 is { 0x100,0x140400}; Array element 5 is { 0x100,0x140500}.
4) the index sequence number of each MAP of preservation in the single-chip microcomputer internal memory may further comprise the steps:
1. through existing tool software,, obtain the index sequence number (since 0) of demarcating the MAP that each byte is preserved in the FLASH zone like MAP inventory analysis software;
2. in the index FLASH zone that is provided with by step 1), be that the index sequence number of demarcating the stored MAP of FLASH corresponding address is deposited by unit with the byte.
Wherein, if the MAP number greater than 255, in index FLASH, can per two bytes be deposited an index sequence number.
In embodiments of the present invention; What preserve in 0x160000~0x1600FF all is 0; What preserve in 0x1600100~0x1601FF all is 1, and what preserve in 0x1600200~0x1602FF all is 2, and what preserve in 0x1600300~0x1603FF all is 3; What preserve in 0x1600400~0x1604FF all is 4, and what preserve in 0x1600500~0x1605FF all is 5.
5) when system initialization, set up and MAP array of pointers of initialization, may further comprise the steps:
1. in the MAP administration module; An array of pointers is set; The following index sequence number that is designated as MAP of this array element, the number of array element is identical with the number of MAP, and array element is a pointer; Point to the start address of MAP parking space in internal memory, be used to represent that MAP is kept in the region of memory that begins with this start address;
2. when system initialization, according to the MAP number, from information FLASH, obtain the start address of each MAP in demarcating FLASH successively, then,, point to the start address of each MAP in demarcating FLASH respectively with step each MAP pointer in 1.;
If desired the MAP data are made amendment, get into step 6);
If desired the MAP data are inquired about, get into step 7).
In embodiments of the present invention, as shown in Figure 2, behind the system initialization; The address of MAP pointed is followed successively by: MAP0 pointed 0x140000; MAP1 pointed 0x140100, MAP2 pointed 0x140200, MAP3 pointed 0x140300; MAP4 pointed 0x140400, MAP5 pointed 0x140500.
6) in the on-line proving process, copy the MAP that is demarcating in the RAM in the single-chip microcomputer to from the FLASH in the single-chip microcomputer, in RAM, corresponding data made amendment, may further comprise the steps:
1. after calibration tool software on the PC and SCM system connect; In calibration tool software, data among the MAP are made amendment; At this moment, this data point of calibration tool computed in software is with respect to the address offset of place MAP start address, then according to the start address of this MAP in demarcating FLASH; Further confirm the storage address of this data point in demarcating FLASH, calibration tool software sends to single-chip microcomputer to this address and amended data;
In embodiments of the present invention; Suppose the data points among the MAP2 is made amendment; This point of calibration tool computed in software is 0x10 with respect to the address offset of MAP start address; Demarcate the region of memory that begins with address 0x140200 among the FLASH because MAP2 is kept at, and amended data are 0x66, calibration tool software sends to single-chip microcomputer to 0x140210 and 0x66 so;
2. single-chip microcomputer is according to by the 1. calibration tool software address of sending of step; The MAP index sequence number of being preserved in the corresponding address in the search index FLASH; Then according to this index sequence number; The subscript element of index sequence number for this reason in the visit information FLASH structure therein array obtains the start address of this MAP in demarcating FLASH then and takes up room size;
In embodiments of the present invention; The address 0x140210 that the single-chip microcomputer basis receives, the MAP index sequence number of being preserved among the search index FLASH address 0x160210, this index sequence number is 2; According to this index sequence number; Be designated as 2 element down in the visit information FLASH structure therein array, obtain the start address 0x140200 of MAP2 in demarcating FLASH then, big or small 0x100 takes up room;
3. the MAP index sequence number that 2. obtains according to step of single-chip microcomputer, inquiry corresponding M AP pointer obtains the address of the current sensing of this MAP pointer:
Demarcate FLASH if this address is positioned at, get into step 4.;
Demarcate RAM if this address is positioned at, get into step 5.;
4. the start address that 2. obtains according to step with take up room size, single-chip microcomputer will be arranged in to be demarcated FLASH and begins with this start address, the data in the additional space size all copy in the white space of demarcating RAM; With the variable of 32 of integers, write down the space size of using in the current demarcation ram region; Revise the pointer of this MAP then, make the start address of this MAP parking space in its guiding calibration ram region, get into step 5.;
5. the known storage address of data point in demarcating FLASH that needs modification; Single-chip microcomputer is according to start address and the start address during demarcating RAM of this data point place MAP in demarcating FLASH; Obtain the storage address of this data point in demarcating RAM, the data modification in this address is the data after upgrading.
In embodiments of the present invention; The pointed address 0x140200 of current MAP2; Be positioned at and demarcate FLASH, single-chip microcomputer all copies in the zone of demarcating address 0x400000~0x4001FF among the RAM demarcating the data that are total to the 0x100 byte among the FLASH in the 0x140200~0x1402FF of address; The variable of 32 of integers is set, and its value is 0x100, shows and demarcates the space of having used the 0x100 byte in the ram region; Revise the MAP2 pointer then, make it point to 0x400000 (as shown in Figure 3); The known storage address of data point in demarcating FLASH that needs to revise is 0x140210; Single-chip microcomputer is according to start address 0x140200 and the start address 0x400000 during demarcating RAM of this some place MAP in demarcating FLASH; Needing obtaining the storage address 0x400010 of data point in demarcating RAM of modification, is the data modification that stores in the 0x400010 of address 0x66 then.If after accomplishing above-mentioned demarcation; In calibration tool software, revised another data point among the MAP2 again; Suppose that the storage address of data point in demarcating FLASH that needs specifically to revise is 0x140220; Amended data are 0x55, and calibration tool software sends to single-chip microcomputer to 0x140220 and 0x55 so; Single-chip microcomputer is according to the address 0x140220 that receives; The MAP index sequence number that stores in the 0x160220 of address among the search index FLASH; This index sequence number is 2, according to this index sequence number, is designated as 2 element in the visit information FLASH structure therein array down; Then obtain the start address 0x140200 of MAP2 in demarcating FLASH, big or small 0x100 takes up room; Inquiry MAP2 pointer because this pointer has pointed to address 0x400000, is positioned at and demarcates RAM, from demarcate FLASH, has copied all data of this MAP among the demarcation RAM to before showing, so no longer need copy raw data specifically; The known storage address of data point in demarcating FLASH that needs to revise is 0x140220; Single-chip microcomputer is according to start address 0x140200 and the start address 0x400000 during demarcating RAM of this some place MAP in demarcating FLASH; Needing obtaining the storage address 0x400020 of data point in demarcating RAM of modification, is the data modification that stores in the 0x400020 of address 0x55 then.
7) start address of known MAP in FLASH and the size that takes up room; Through inquiry corresponding M AP pointer; Obtain the start address of the current parking space of this MAP, thereby to begin the data in the region of memory of additional space size with this start address; The interpolation operation of tabling look-up may further comprise the steps:
1. single-chip microcomputer passes to the interpolating function of tabling look-up to the start address of MAP in demarcating FLASH as parameter;
2. table look-up interpolating function according to the start address that 1. obtains by step, the MAP index sequence number of being preserved in the corresponding address in the search index FLASH;
3. single-chip microcomputer is inquired about corresponding M AP pointer according to the MAP index sequence number that is 2. obtained by step, obtains the start address of the current parking space of this MAP;
4. based on the start address that is 3. obtained by step, to the data in the region of memory of additional space size, the interpolation operation of tabling look-up finishes.
In embodiments of the present invention, if to the MAP2 interpolation operation of tabling look-up, the start address 0x140200 of known MAP2 in FLASH with take up room big or small 0x100; Single-chip microcomputer passes to the interpolating function of tabling look-up to the start address 0x140200 of MAP2 in demarcating FLASH as parameter; Table look-up interpolating function according to this start address, the MAP index sequence number of in index FLASH, being preserved among the inquire address 0x160200, obtaining this sequence number is 2; Learn that thus that need operate is MAP2; Inquiry MAP2 pointer obtains this MAP and is currently located in the region of memory that begins with address 0x400000, to what begin with address 0x400000; Size is the MAP data in the region of memory of 0x100, the interpolation operation of tabling look-up.If to the MAP1 interpolation operation of tabling look-up; The start address 0x140100 of then known MAP1 in FLASH and the big or small 0x100 that takes up room, single-chip microcomputer passes to the interpolating function of tabling look-up to the start address 0x140100 of MAP1 in demarcating FLASH as parameter, and the interpolating function of tabling look-up is according to this start address; The MAP index sequence number of in index FLASH, being preserved among the inquiry 0x140100; Obtaining this index sequence number is 1, learns that thus that need operate is MAP1, inquiry MAP1 pointer; Obtaining this MAP is currently located in the region of memory that begins with address 0x140100; To with address 0x140100, size is the MAP data in the region of memory of 0x100, the interpolation operation of tabling look-up.
The foregoing description only is used to explain the present invention, and wherein embodiment of each step etc. all can change to some extent, and every equivalents of on the basis of technical scheme of the present invention, carrying out and improvement all should not got rid of outside protection scope of the present invention.

Claims (9)

1. SCM system MAP data scaling method, it is characterized in that: it may further comprise the steps:
1) several zones are set in the single-chip microcomputer internal memory, may further comprise the steps:
1. the size according to the data total amount of MAP is provided with a region of memory, as demarcating FLASH;
2. the size according to the MAP data volume that once can demarcate is provided with a region of memory, as demarcating RAM;
3. the number according to MAP is provided with a region of memory, as information FLASH;
4. the size according to the data total amount of MAP is provided with a region of memory, as index FLASH;
2) raw data of all MAP of preservation in the demarcation FLASH zone that is provided with by step 1);
3) obtain the start address and the size that takes up room that each MAP deposits through existing tool software in demarcating FLASH, it is kept in the information FLASH zone that is provided with by step 1);
4) obtain the index sequence number of demarcating the MAP that each byte is preserved in the FLASH zone through existing tool software, it is kept in the index FLASH zone that is provided with by step 1);
5) when system initialization, set up and MAP array of pointers of initialization, may further comprise the steps:
1. in the MAP administration module, an array of pointers is set, the following index sequence number that is designated as MAP of this array element, the number of array element is identical with the number of MAP, and array element is a pointer, points to the start address of MAP parking space in internal memory;
2. when system initialization, according to the MAP number, from information FLASH, obtain the start address of each MAP in demarcating FLASH successively, then,, point to the start address of each MAP in demarcating FLASH respectively with step each MAP pointer in 1.;
If desired the MAP data are made amendment, get into step 6);
If desired the MAP data are inquired about, get into step 7);
6) in the on-line proving process, copy the MAP that is demarcating in the RAM in the single-chip microcomputer to from the FLASH in the single-chip microcomputer, in RAM, corresponding data made amendment, may further comprise the steps:
1. after calibration tool software on the PC and SCM system connect; In calibration tool software, data among the MAP are made amendment; At this moment, this data point of calibration tool computed in software is with respect to the address offset of this MAP start address, then according to the start address of this MAP in demarcating FLASH; Further confirm this data point storage addresses in demarcating FLASH, calibration tool software sends to single-chip microcomputer to this address and amended data;
2. single-chip microcomputer is according to by the 1. calibration tool software address of sending of step; The MAP index sequence number of being preserved in the corresponding address in the search index FLASH; Then according to this index sequence number; The subscript element of index sequence number for this reason in the visit information FLASH structure therein array obtains the start address of this MAP in demarcating FLASH then and takes up room size;
3. the MAP index sequence number that 2. obtains according to step of single-chip microcomputer, inquiry corresponding M AP pointer obtains the address of the current sensing of this MAP pointer:
Demarcate FLASH if this address is positioned at, get into step 4.;
Demarcate RAM if this address is positioned at, get into step 5.;
4. the start address that 2. obtains according to step with take up room size, single-chip microcomputer will be arranged in to be demarcated FLASH and begins with this start address, the data in the additional space size all copy in the white space of demarcating RAM; Write down the space size of using in the current demarcation ram region; Revise the pointer of this MAP then, make the start address of this MAP parking space in its guiding calibration ram region, get into step 5.;
5. the known storage address of data point in demarcating FLASH that needs modification; Single-chip microcomputer is according to start address and the start address during demarcating RAM of this data point place MAP in demarcating FLASH; Obtain the storage address of this data point in demarcating RAM, the data modification in this address is the data after upgrading;
7) start address of known MAP in FLASH and the size that takes up room; Through inquiry corresponding M AP pointer; Obtain the start address of the current parking space of this MAP, thereby to begin the data in the region of memory of additional space size with this start address; The interpolation operation of tabling look-up may further comprise the steps:
1. single-chip microcomputer passes to the interpolating function of tabling look-up to the start address of MAP in demarcating FLASH as parameter;
2. table look-up interpolating function according to the start address that 1. obtains by step, the MAP index sequence number of being preserved in the corresponding address in the search index FLASH;
3. single-chip microcomputer is inquired about corresponding M AP pointer according to the MAP index sequence number that is 2. obtained by step, obtains the start address of the current parking space of this MAP;
4. based on the start address that is 3. obtained by step, to the data in the region of memory of additional space size, the interpolation operation of tabling look-up finishes.
2. a kind of SCM system MAP data scaling method as claimed in claim 1 is characterized in that: in the said step 3), obtain the start address and the size that takes up room that each MAP deposits through existing MAP inventory analysis software in demarcating FLASH.
3. a kind of SCM system MAP data scaling method as claimed in claim 1 is characterized in that: in the said step 4), obtain the index sequence number of demarcating the MAP that each byte is preserved in the FLASH zone through existing MAP inventory analysis software.
4. a kind of SCM system MAP data scaling method as claimed in claim 2 is characterized in that: in the said step 4), obtain the index sequence number of demarcating the MAP that each byte is preserved in the FLASH zone through existing MAP inventory analysis software.
5. like claim 1 or 2 or 3 or 4 each described a kind of SCM system MAP data scaling methods, it is characterized in that: in the said step 4), in index FLASH, each byte is deposited an index sequence number.
6. like claim 1 or 2 or 3 or 4 each described a kind of SCM system MAP data scaling methods, it is characterized in that: in the said step 4), when the MAP number greater than 255 the time, in index FLASH, per two bytes are deposited an index sequence number.
7. like claim 1 or 2 or 3 or 4 each described a kind of SCM system MAP data scaling methods, it is characterized in that: in the said step 3), adopt the structure array to preserve the start address of each MAP and the size that takes up room; The following index sequence number that is designated as MAP of this array element, the number of array element is identical with the number of MAP, and array element is a structure, comprises that two member: MAP take up room big or small and the start address of MAP in demarcating FLASH.
8. a kind of SCM system MAP data scaling method as claimed in claim 5 is characterized in that: in the said step 3), adopt the structure array to preserve the start address of each MAP and the size that takes up room; The following index sequence number that is designated as MAP of this array element, the number of array element is identical with the number of MAP, and array element is a structure, comprises that two member: MAP take up room big or small and the start address of MAP in demarcating FLASH.
9. a kind of SCM system MAP data scaling method as claimed in claim 6 is characterized in that: in the said step 3), adopt the structure array to preserve the start address of each MAP and the size that takes up room; The following index sequence number that is designated as MAP of this array element, the number of array element is identical with the number of MAP, and array element is a structure, comprises that two member: MAP take up room big or small and the start address of MAP in demarcating FLASH.
CN201110277714.3A 2011-09-19 2011-09-19 Method for calibrating MAP data of single chip system Active CN102446138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110277714.3A CN102446138B (en) 2011-09-19 2011-09-19 Method for calibrating MAP data of single chip system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110277714.3A CN102446138B (en) 2011-09-19 2011-09-19 Method for calibrating MAP data of single chip system

Publications (2)

Publication Number Publication Date
CN102446138A true CN102446138A (en) 2012-05-09
CN102446138B CN102446138B (en) 2014-02-19

Family

ID=46008645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110277714.3A Active CN102446138B (en) 2011-09-19 2011-09-19 Method for calibrating MAP data of single chip system

Country Status (1)

Country Link
CN (1) CN102446138B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714789A (en) * 2013-12-14 2015-06-17 中国航空工业集团公司第六三一研究所 Calibration data storage method
CN109656607A (en) * 2019-01-03 2019-04-19 广西玉柴机器股份有限公司 A kind of full address scaling method that supporting super large nominal data amount and system
CN109871001A (en) * 2019-03-06 2019-06-11 普华基础软件股份有限公司 A kind of method of pair of engine big data quantity calibration
CN111596863A (en) * 2020-05-20 2020-08-28 歌尔科技有限公司 Data reading method, device and equipment and readable storage medium
CN113190471A (en) * 2021-06-30 2021-07-30 飞天诚信科技股份有限公司 Method and device for managing mnemonics

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5895487A (en) * 1996-11-13 1999-04-20 International Business Machines Corporation Integrated processing and L2 DRAM cache
US20040172515A1 (en) * 2003-02-27 2004-09-02 Cheng-Te Chuang Method for managing an external memory of a microprocessor
CN1558334A (en) * 2004-01-16 2004-12-29 中兴通讯股份有限公司 Single-chip microcomputer background debug system and method
CN1580987A (en) * 2004-05-17 2005-02-16 清华大学 Method for electronic control unit for expanding single CAN bus module into double CAN
US7290116B1 (en) * 2004-06-30 2007-10-30 Sun Microsystems, Inc. Level 2 cache index hashing to avoid hot spots
US7571284B1 (en) * 2004-06-30 2009-08-04 Sun Microsystems, Inc. Out-of-order memory transactions in a fine-grain multithreaded/multi-core processor
CN101853630A (en) * 2010-03-27 2010-10-06 安徽师范大学 System for driving RAM-Mapping LED display screen
CN101944011A (en) * 2010-06-29 2011-01-12 北京中星微电子有限公司 Device, chip and method for running program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5895487A (en) * 1996-11-13 1999-04-20 International Business Machines Corporation Integrated processing and L2 DRAM cache
US20040172515A1 (en) * 2003-02-27 2004-09-02 Cheng-Te Chuang Method for managing an external memory of a microprocessor
CN1558334A (en) * 2004-01-16 2004-12-29 中兴通讯股份有限公司 Single-chip microcomputer background debug system and method
CN1580987A (en) * 2004-05-17 2005-02-16 清华大学 Method for electronic control unit for expanding single CAN bus module into double CAN
US7290116B1 (en) * 2004-06-30 2007-10-30 Sun Microsystems, Inc. Level 2 cache index hashing to avoid hot spots
US7571284B1 (en) * 2004-06-30 2009-08-04 Sun Microsystems, Inc. Out-of-order memory transactions in a fine-grain multithreaded/multi-core processor
CN101853630A (en) * 2010-03-27 2010-10-06 安徽师范大学 System for driving RAM-Mapping LED display screen
CN101944011A (en) * 2010-06-29 2011-01-12 北京中星微电子有限公司 Device, chip and method for running program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104714789A (en) * 2013-12-14 2015-06-17 中国航空工业集团公司第六三一研究所 Calibration data storage method
CN104714789B (en) * 2013-12-14 2018-08-03 中国航空工业集团公司第六三一研究所 A kind of design of nominal data storage method
CN109656607A (en) * 2019-01-03 2019-04-19 广西玉柴机器股份有限公司 A kind of full address scaling method that supporting super large nominal data amount and system
CN109871001A (en) * 2019-03-06 2019-06-11 普华基础软件股份有限公司 A kind of method of pair of engine big data quantity calibration
CN109871001B (en) * 2019-03-06 2023-04-18 普华基础软件股份有限公司 Method for calibrating large data volume of engine
CN111596863A (en) * 2020-05-20 2020-08-28 歌尔科技有限公司 Data reading method, device and equipment and readable storage medium
CN113190471A (en) * 2021-06-30 2021-07-30 飞天诚信科技股份有限公司 Method and device for managing mnemonics
WO2023273549A1 (en) * 2021-06-30 2023-01-05 飞天诚信科技股份有限公司 Mnemonic phrase management method and apparatus

Also Published As

Publication number Publication date
CN102446138B (en) 2014-02-19

Similar Documents

Publication Publication Date Title
CN102446138B (en) Method for calibrating MAP data of single chip system
US8327064B2 (en) Data processor with flash memory, and method for accessing flash memory
CN105830022B (en) The method and apparatus for accessing file
US20030163664A1 (en) Method and apparatus for updating a distributed program
US6370456B2 (en) Method for applying control data for an electronic motor vehicle control unit
CN108170455B (en) Upgrade package packaging method and upgrade method
US20050270888A1 (en) Stored data rewriting system for on-board control unit
EP0834812A1 (en) A method for accessing flash memory and an automotive electronic control system
CN104050113B (en) Nonvolatile memory is accessed by volatibility shadow memory
US7925821B2 (en) Nonvolatile semiconductor storage device and method of managing the same
CN106020837A (en) Method and system for loading set top box drive
CN105988722A (en) Data storage method and embedded system
MX2012010827A (en) Electronic control unit for vehicle and method of writing data.
CN104216390B (en) Device and method for calibrating electronic control units of automobiles on basis of CCP [CAN (controller area network) calibration protocol]
CN111954871A (en) Method for providing application data of an application that can be implemented in a control device of a vehicle, control device and calibration method thereof, evaluation device
US10019198B2 (en) Method and apparatus for processing sequential writes to portions of an addressable unit
CN104615459A (en) MoCA equipment parameter configuration method and device
CN109871001B (en) Method for calibrating large data volume of engine
CN111158335B (en) Stitch function matching method of multi-ECU system and storage medium
US20140108721A1 (en) Data storage device and operating method thereof
CN110032341A (en) A kind of data processing method, device, electronic equipment and the medium of mould group
JP2004038388A (en) Vehicle control system
CN106293530A (en) A kind of method for writing data and device
CN112948291A (en) Data transmission method, electronic device and readable storage medium
CN106372233B (en) Data acquisition system storage method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant