CN102446138B - 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
CN102446138B
CN102446138B CN201110277714.3A CN201110277714A CN102446138B CN 102446138 B CN102446138 B CN 102446138B CN 201110277714 A CN201110277714 A CN 201110277714A CN 102446138 B CN102446138 B CN 102446138B
Authority
CN
China
Prior art keywords
map
flash
data
start address
address
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.)
Active
Application number
CN201110277714.3A
Other languages
Chinese (zh)
Other versions
CN102446138A (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

Landscapes

  • Stored Programmes (AREA)

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 method for calibrating MAP data of single chip system
Technical field
The present invention relates to a kind of MAP data scaling method, particularly about a kind of MAP data scaling method for low capacity RAM Single Chip Microcomputer (SCM) system.
Background technology
At vehicle electric field, embedded system is mostly used single-chip microcomputer as control core.Due to the complicacy of control system and the diversity of object, in Single Chip Microcomputer (SCM) system, there is a large amount of parameters when system, to determine, need to after completing, system development determine by matching and calibration.And this matching and calibration is utilized the calibration tool software on PC often, by the agreement based on bus and Single Chip Microcomputer (SCM) system, connect, the operation by calibration tool software, sends single-chip microcomputer to, by single-chip microcomputer, completes corresponding operation.On FLASH in single-chip microcomputer, preserve the initial value that these parameters that need to demarcate are MAP; By the agreement based on bus, receive the operation of calibration tool software, MAP is carried out to Data Update; Because the numerical value in FLASH can only could upgrade by FLASH programming software, and in operation FLASH programming software, generally can not carry out the program that reads FLASH simultaneously, need to stop the operation of normal procedure, enter special FLASH programming module, therefore this mode cannot be supported the on-line proving of MAP; For this problem, at present conventional solution is MAP data to be copied to the FLASH in single-chip microcomputer in the RAM in single-chip microcomputer, in the time of on-line proving, modification be the MAP data in RAM, by data query function, the result after MAP data modification detected.But, this method is defectiveness also: because the RAM capacity in monolithic Bigpian is often very little, and in some embedded systems, need the MAP demarcating a lot, such as the control system ESP of engine, the control system ABS of wheel box and automobile kinetic control system TCS etc. often all MAP data all cannot be copied in the RAM in single-chip microcomputer the FLASH in single-chip microcomputer.At present, this conventional solution is had to two kinds: the one, in the external RAM of single-chip microcomputer, for demarcating, this need to draw address bus and data bus on single-chip microcomputer pin, has taken a large amount of pin resources, and can make the Electro Magnetic Compatibility of system worsen, increase system cost; The 2nd, by piecemeal, demarcate, all demarcation MAP piecemeals, once only demarcate the MAP data in a region are copied in the RAM in single-chip microcomputer, therefore once can only demarcate the MAP data in region, this method limitation is very large, cannot determine in advance once and demarcate to revise how many MAP, in MAP subregion, also just cannot select a kind of division methods that adapts to whole calibration phase, and need between a plurality of demarcation pages, switch back and forth, and for this online switching, the staking-out work of previously having carried out can be lost.
Summary of the invention
For the problems referred to above, the object of this invention is to provide and a kind ofly can support preferably Single Chip Microcomputer (SCM) system, particularly the method for calibrating MAP data of single chip system of low capacity RAM Single Chip Microcomputer (SCM) system on-line proving.
For achieving the above object, the present invention takes following technical scheme: a kind of method for calibrating MAP data of single chip system, is characterized in that: it comprises the following steps:
1) several regions are set in single-chip microcomputer internal memory, comprise the following steps:
1. according to the size of the data total amount of MAP, a region of memory is set, as demarcating FLASH;
2. according to the size of the MAP data volume that once can demarcate, a region of memory is set, as Calibration RAM;
3. according to the number of MAP, a region of memory is set, as information FLASH;
4. according to the size of the data total amount of MAP, a region of memory is set, as index FLASH;
2) by step 1) raw data of all MAP of preservation in the demarcation FLASH region that arranges;
3) by existing tool software, obtain start address and the size that takes up room that each MAP deposits in demarcating FLASH, be kept at by step 1) in the information FLASH region that arranges;
4) by existing tool software, obtain the index sequence number of demarcating the MAP that in FLASH region, each byte is preserved, be kept at by step 1) in the index FLASH region that arranges;
5) when system initialization, set up and MAP array of pointers of initialization, comprise the following steps:
1. in MAP administration module, an array of pointers is set, is designated as the index sequence number of MAP under this array element, the number of array element is identical with the number of MAP, and array element is pointer, points to the start address of MAP parking space in internal memory;
2. when system initialization, according to MAP number, from information FLASH, obtain successively the start address of each MAP in demarcating FLASH, then, each MAP pointer by step in 1., points to respectively the start address of each MAP in demarcating FLASH;
If need to modify to MAP data, enter step 6);
If need to inquire about MAP data, enter step 7);
6) in on-line proving process, the MAP demarcating is copied in the RAM in single-chip microcomputer from the FLASH in single-chip microcomputer, in RAM, corresponding data is modified, comprise the following steps:
1. after the calibration tool software on PC and Single Chip Microcomputer (SCM) system connect, in calibration tool software, data in a MAP are modified, now, calibration tool software calculates this data point with respect to the address offset of this MAP start address, then the start address in demarcating FLASH according to this MAP, further determine the address that this data point is deposited in demarcating FLASH, calibration tool software sends to single-chip microcomputer this address and amended data;
2. single-chip microcomputer basis is by the step address that 1. calibration tool software sends, the MAP index sequence number of preserving in corresponding address in search index FLASH, then according to this index sequence number, the subscript element of index sequence number for this reason in visit information FLASH structure therein array, obtains start address and the take up room size of this MAP in demarcating FLASH then;
3. the MAP index sequence number that 2. single-chip microcomputer obtains according to step, inquires about corresponding MAP pointer, obtains the address of the current sensing of this MAP pointer:
If this address is positioned at, demarcate FLASH, enter step 4.;
If this address is positioned at Calibration RAM, enter step 5.;
4. the start address 2. obtaining according to step and the size that takes up room, single-chip microcomputer demarcates by being arranged in that FLASH starts with this start address, and the data in additional space size all copy in the white space of Calibration RAM; Record the space size using in current Calibration RAM region; Then revise the pointer of this MAP, make the start address of this MAP parking space in its guiding calibration ram region, enter step 5.;
5. the storage address of the data point that known needs are revised in demarcating FLASH, single-chip microcomputer is the start address in demarcating FLASH and the start address in Calibration RAM according to this data point place MAP, obtaining the storage address of this data point in Calibration RAM, is the data after upgrading by the data modification in this address;
7) start address of known MAP in FLASH and the size that takes up room, by inquiring about corresponding MAP pointer, obtain the start address of the current parking space of this MAP, thereby to what start with this start address, data in the region of memory of additional space size, the interpolation operation of tabling look-up, comprises the following steps:
1. using MAP, the start address in demarcating FLASH passes to as parameter the interpolating function of tabling look-up to single-chip microcomputer;
2. table look-up interpolating function according to the start address 1. being obtained by step, the MAP index sequence number of preserving in corresponding address in search index FLASH;
3. single-chip microcomputer, according to the MAP index sequence number 2. being obtained by step, is inquired about corresponding MAP pointer, obtains the start address of the current parking space of this MAP;
4. the start address based on 3. being 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, by existing MAP inventory analysis software, obtain start address and the size that takes up room that each MAP deposits in demarcating FLASH.
Above-mentioned steps 4), in, by existing MAP inventory analysis software, obtain the index sequence number of demarcating the MAP that in FLASH region, each byte is preserved.
Above-mentioned steps 4), in, in index FLASH, each byte is deposited an index sequence number.
Above-mentioned steps 4), in, when MAP number is greater than 255, in index FLASH, every two bytes are deposited an index sequence number.
Above-mentioned steps 3), in, adopt structure array to preserve the start address of each MAP and the size that takes up room; Under this array element, be designated as the index sequence number of MAP, the number of array element is identical with the number of MAP, and array element is structure, comprise two member: MAP take up room size and MAP in demarcation the start address in FLASH.
The present invention is owing to taking above technical scheme, it has the following advantages: the MAP online data of 1, only needs being demarcated due to the present invention copies in RAM in real time, thereby the ram space taking is less, solved the problem of low capacity RAM Single Chip Microcomputer (SCM) system demarcation mass data.2, because the present invention is can on-line proving all, need the MAP data of demarcating, solved and existingly demarcated or ram space can not once be demarcated the problem of all MAP not because of piecemeal.Adopt the present invention can reduce complexity and the manufacturing cost of Single Chip Microcomputer (SCM) system.
Accompanying drawing explanation
Fig. 1 is that single-chip microcomputer region of memory of the present invention is divided schematic diagram;
MAP pointer schematic diagram when Fig. 2 is initialization of the present invention;
MAP pointer schematic diagram when Fig. 3 is on-line proving of the present invention.
Embodiment
As shown in Figure 1, the inventive method comprises the following steps:
1) several regions are set in single-chip microcomputer internal memory;
2) in single-chip microcomputer internal memory, preserve the raw data of all MAP;
3) in single-chip microcomputer internal memory, preserve the start address of each MAP and the size that takes up room;
4) in single-chip microcomputer internal memory, preserve the index sequence number of each MAP;
5), when system initialization, set up and MAP array of pointers of initialization;
6) in on-line proving process, the MAP demarcating is copied in the RAM in single-chip microcomputer from the FLASH in single-chip microcomputer, in RAM, corresponding data are modified;
7) start address of known MAP in FLASH and the size that takes up room, by inquiring about corresponding MAP pointer, obtain the start address of the current parking space of this MAP, thereby to starting 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 drawings and Examples, the present invention is described in detail.
1) several regions are set in single-chip microcomputer internal memory, comprise the following steps:
1. according to the size of the data total amount of MAP, a region of memory is set, as demarcating FLASH, for preserving all MAP data.
In embodiments of the present invention, as shown in Figure 1, the 128K spatial placement that address 0x140000 in single-chip microcomputer internal memory is started is for demarcating FLASH.
2. according to the size of the MAP data volume that once can demarcate, a region of memory is set, as Calibration RAM, the MAP latest data upgrading for preserving online calibration process.
In embodiments of the present invention, as shown in Figure 1, the 64K spatial placement that address 0x400000 in single-chip microcomputer internal memory is started is Calibration RAM.
3. according to the number of MAP, a region of memory is set, as information FLASH, for preserving each MAP, is demarcating the start address of FLASH and the size that takes up room of this MAP.
In embodiments of the present invention, as shown in Figure 1, the 8K spatial placement that single-chip microcomputer memory address 0x100000 is started is information FLASH.
4. according to the size of the data total amount of MAP, a region of memory is set, as index FLASH, for preserving 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 spatial placement that address 0x160000 in single-chip microcomputer internal memory is started is index FLASH.
2) in single-chip microcomputer internal memory, preserve the raw data of all MAP, be specially:
By step 1) raw data of all MAP of preservation in the demarcation FLASH region that arranges.
3) in single-chip microcomputer internal memory, preserve the start address of each MAP and the size that takes up room, comprise the following steps:
1. by existing tool software, as MAP inventory analysis software, obtain start address and the size that takes up room that each MAP deposits in demarcating FLASH;
2. by each MAP, the start address in demarcating FLASH and the size that takes up room are kept at by step 1) in the information FLASH region that arranges.
Wherein, can adopt structure array to record the start address of each MAP and the size that takes up room; Under this array element, be designated as the index sequence number of MAP, the number of array element is identical with the number of MAP, and array element is structure, comprise two member: MAP take up room size and MAP in demarcation the start address in FLASH.
In said structure body, can adopt 16 bit variables to record the MAP size that takes up room, adopt 32 bit variables to record the start address of MAP in demarcating FLASH.
Suppose in embodiments of the present invention, demarcate in FLASH and have 6 MAP, first MAP (MAP0) is kept in the scope of 0x140000~0x1400FF, second MAP (MAP1) is kept in the scope of 0x140100~0x1401FF, the 3rd MAP (MAP2) is kept in the scope of 0x140200~0x1402FF, the 4th MAP (MAP3) is kept in the scope of 0x140300~0x1403FF, the 5th MAP (MAP4) is kept in the scope of 0x140400~0x1404FF, the 6th MAP (MAP5) is kept in the scope of 0x140500~0x1405FF, the MAP sequence number that these 6 MAP are corresponding is respectively 0, 1, 2, 3, 4 and 5, so: the structure array in information FLASH correspondingly comprises six array elements, array element 0 is { 0x100, (size that represents MAP0 is 0x100 to 0x140000}, start address is 0x140000), array element 1 is { 0x100, 0x140100}, array element 2 is { 0x100, 0x140200}, array element 3 is { 0x100, 0x140300}, array element 4 is { 0x100, 0x140400}, array element 5 is { 0x100, 0x140500}.
4) in single-chip microcomputer internal memory, preserve the index sequence number of each MAP, comprise the following steps:
1. by existing tool software, as MAP inventory analysis software, obtain the index sequence number (since 0) of demarcating the MAP that in FLASH region, each byte is preserved;
2. by step 1) in the index FLASH region that arranges, the byte of take is deposited the index sequence number of demarcating the stored MAP of FLASH corresponding address as unit.
Wherein, if MAP number is greater than 255, in index FLASH, can every two bytes deposit an index sequence number.
In embodiments of the present invention, what in 0x160000~0x1600FF, preserve is all 0, what in 0x1600100~0x1601FF, preserve is all 1, what in 0x1600200~0x1602FF, preserve is all 2, what in 0x1600300~0x1603FF, preserve is all 3, what preserve in 0x1600400~0x1604FF is all that what in 4,0x1600500~0x1605FF, to preserve is all 5.
5) when system initialization, set up and MAP array of pointers of initialization, comprise the following steps:
1. in MAP administration module, an array of pointers is set, under this array element, be designated as the index sequence number of MAP, the number of array element is identical with the number of MAP, array element is pointer, point to the start address of MAP parking space in internal memory, for representing that MAP is kept in the region of memory starting with this start address;
2. when system initialization, according to MAP number, from information FLASH, obtain successively the start address of each MAP in demarcating FLASH, then, each MAP pointer by step in 1., points to respectively the start address of each MAP in demarcating FLASH;
If need to modify to MAP data, enter step 6);
If need to inquire about MAP data, enter step 7).
In embodiments of the present invention, as shown in Figure 2, after 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 on-line proving process, the MAP demarcating is copied in the RAM in single-chip microcomputer from the FLASH in single-chip microcomputer, in RAM, corresponding data is modified, comprise the following steps:
1. after the calibration tool software on PC and Single Chip Microcomputer (SCM) system connect, in calibration tool software, data in a MAP are modified, now, calibration tool software calculates this data point with respect to the address offset of place MAP start address, then the start address in demarcating FLASH according to this MAP, further determine the storage address of this data point in demarcating FLASH, calibration tool software sends to single-chip microcomputer this address and amended data;
In embodiments of the present invention, suppose a data point in MAP2 to modify, it is 0x10 that calibration tool software calculates this address offset with respect to MAP start address, because being kept at, MAP2 demarcates the region of memory starting with address 0x140200 in FLASH, and amended data are 0x66, and calibration tool software sends to single-chip microcomputer 0x140210 and 0x66 so;
2. single-chip microcomputer basis is by the step address that 1. calibration tool software sends, the MAP index sequence number of preserving in corresponding address in search index FLASH, then according to this index sequence number, the subscript element of index sequence number for this reason in visit information FLASH structure therein array, obtains start address and the take up room size of this MAP in demarcating FLASH then;
In embodiments of the present invention, single-chip microcomputer is according to the address 0x140210 receiving, the MAP index sequence number of preserving in search index FLASH address 0x160210, this index sequence number is 2, according to this index sequence number, under in visit information FLASH structure therein array, be designated as 2 element, then obtain the start address 0x140200 of MAP2 in demarcating FLASH, big or small 0x100 takes up room;
3. the MAP index sequence number that 2. single-chip microcomputer obtains according to step, inquires about corresponding MAP pointer, obtains the address of the current sensing of this MAP pointer:
If this address is positioned at, demarcate FLASH, enter step 4.;
If this address is positioned at Calibration RAM, enter step 5.;
4. the start address 2. obtaining according to step and the size that takes up room, single-chip microcomputer demarcates by being arranged in that FLASH starts with this start address, and the data in additional space size all copy in the white space of Calibration RAM; With the variable of 32 of integers, record the space size using in current Calibration RAM region; Then revise the pointer of this MAP, make the start address of this MAP parking space in its guiding calibration ram region, enter step 5.;
5. the storage address of the data point that known needs are revised in demarcating FLASH, single-chip microcomputer is the start address in demarcating FLASH and the start address in Calibration RAM according to this data point place MAP, obtaining the storage address of this data point in Calibration RAM, is the data after upgrading by the data modification in this address.
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 region of address 0x400000~0x4001FF in Calibration RAM demarcating 0x140200~0x1402FF interior data of 0x100 byte altogether in address in FLASH; The variable of 32 of integers is set, and its value is 0x100, shows to have used in Calibration RAM region the space of 0x100 byte; Then revise MAP2 pointer, make it point to 0x400000 (as shown in Figure 3); The storage address of the known data point that need to revise in demarcating FLASH is 0x140210, single-chip microcomputer is the start address 0x140200 in demarcating FLASH and the start address 0x400000 in Calibration RAM according to this place MAP, obtaining data point that need the to revise storage address 0x400010 in Calibration RAM, is then 0x66 the data modification storing in the 0x400010 of address.If after completing above-mentioned demarcation, another data point revised MAP2 again in calibration tool software in, suppose that the storage address of the current data point that need to revise in demarcating FLASH is 0x140220, amended data are 0x55, and calibration tool software sends to single-chip microcomputer 0x140220 and 0x55 so; Single-chip microcomputer is according to the address 0x140220 receiving, the MAP index sequence number storing in the 0x160220 of address in search index FLASH, this index sequence number is 2, according to this index sequence number, under in visit information FLASH structure therein array, be designated as 2 element, 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 Calibration RAM, all data of this MAP has been copied in Calibration RAM from demarcate FLASH, so no longer need to copy specifically raw data before showing; The storage address of the known data point that need to revise in demarcating FLASH is 0x140220, single-chip microcomputer is the start address 0x140200 in demarcating FLASH and the start address 0x400000 in Calibration RAM according to this place MAP, obtaining data point that need the to revise storage address 0x400020 in Calibration RAM, is then 0x55 the data modification storing in the 0x400020 of address.
7) start address of known MAP in FLASH and the size that takes up room, by inquiring about corresponding MAP pointer, obtain the start address of the current parking space of this MAP, thereby to what start with this start address, data in the region of memory of additional space size, the interpolation operation of tabling look-up, comprises the following steps:
1. using MAP, the start address in demarcating FLASH passes to as parameter the interpolating function of tabling look-up to single-chip microcomputer;
2. table look-up interpolating function according to the start address 1. being obtained by step, the MAP index sequence number of preserving in corresponding address in search index FLASH;
3. single-chip microcomputer, according to the MAP index sequence number 2. being obtained by step, is inquired about corresponding MAP pointer, obtains the start address of the current parking space of this MAP;
4. the start address based on 3. being 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 and the big or small 0x100 that takes up room, using MAP2, the start address 0x140200 in demarcating FLASH passes to as parameter the interpolating function of tabling look-up to single-chip microcomputer, table look-up interpolating function according to this start address, the MAP index sequence number of preserving in inquire address 0x160200 in index FLASH, obtaining this sequence number is 2, learn that thus that need to operate is MAP2, inquiry MAP2 pointer, obtaining this MAP is currently located in the region of memory starting with address 0x400000, to what start 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 known MAP1 in FLASH and the big or small 0x100 that takes up room, using MAP1, the start address 0x140100 in demarcating FLASH passes to as parameter the interpolating function of tabling look-up to single-chip microcomputer, table look-up interpolating function according to this start address, the MAP index sequence number of preserving inquire about 0x140100 in index FLASH in, obtaining this index sequence number is 1, learn that thus that need to operate is MAP1, inquiry MAP1 pointer, obtaining this MAP is currently located in the region of memory starting 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.
Above-described embodiment is only for illustrating the present invention, and wherein embodiment of each step etc. all can change to some extent, and every equivalents of carrying out on the basis of technical solution of the present invention and improvement, all should not get rid of outside protection scope of the present invention.

Claims (5)

1. a method for calibrating MAP data of single chip system, is characterized in that: it comprises the following steps:
1) several regions are set in single-chip microcomputer internal memory, comprise the following steps:
1. according to the size of the data total amount of MAP, a region of memory is set, as demarcating FLASH;
2. according to the size of the MAP data volume that once can demarcate, a region of memory is set, as Calibration RAM;
3. according to the number of MAP, a region of memory is set, as information FLASH;
4. according to the size of the data total amount of MAP, a region of memory is set, as index FLASH;
2) raw data of preserving all MAP in the demarcation FLASH region being arranged by step 1);
3) by existing MAP inventory analysis software, obtain start address and the size that takes up room that each MAP deposits in demarcating FLASH, be kept in the information FLASH region being arranged by step 1);
4) by existing MAP inventory analysis software, obtain the index sequence number of demarcating the MAP that in FLASH region, each byte is preserved, be kept in the index FLASH region being arranged by step 1);
5) when system initialization, set up and MAP array of pointers of initialization, comprise the following steps:
1. in MAP administration module, an array of pointers is set, is designated as the index sequence number of MAP under this array element, the number of array element is identical with the number of MAP, and array element is pointer, points to the start address of MAP parking space in internal memory;
2. when system initialization, according to MAP number, from information FLASH, obtain successively the start address of each MAP in demarcating FLASH, then, each MAP pointer by step in 1., points to respectively the start address of each MAP in demarcating FLASH;
If need to modify to MAP data, enter step 6);
If need to inquire about MAP data, enter step 7);
6) in on-line proving process, the MAP demarcating is copied in the RAM in single-chip microcomputer from the FLASH in single-chip microcomputer, in RAM, corresponding data is modified, comprise the following steps:
1. after the calibration tool software on PC and Single Chip Microcomputer (SCM) system connect, in calibration tool software, data in a MAP are modified, now, calibration tool software calculates this data point with respect to the address offset of this MAP start address, then the start address in demarcating FLASH according to this MAP, further determine the address that this data point is deposited in demarcating FLASH, calibration tool software sends to single-chip microcomputer this address and amended data;
2. single-chip microcomputer basis is by the step address that 1. calibration tool software sends, the MAP index sequence number of preserving in corresponding address in search index FLASH, then according to this index sequence number, the subscript element of index sequence number for this reason in visit information FLASH structure therein array, obtains start address and the take up room size of this MAP in demarcating FLASH then;
3. the MAP index sequence number that 2. single-chip microcomputer obtains according to step, inquires about corresponding MAP pointer, obtains the address of the current sensing of this MAP pointer:
If this address is positioned at, demarcate FLASH, enter step 4.;
If this address is positioned at Calibration RAM, enter step 5.;
4. the start address 2. obtaining according to step and the size that takes up room, single-chip microcomputer demarcates by being arranged in that FLASH starts with this start address, and the data in additional space size all copy in the white space of Calibration RAM; Record the space size using in current Calibration RAM region; Then revise the pointer of this MAP, make the start address of this MAP parking space in its guiding calibration ram region, enter step 5.;
5. the storage address of the data point that known needs are revised in demarcating FLASH, single-chip microcomputer is the start address in demarcating FLASH and the start address in Calibration RAM according to this data point place MAP, obtaining the storage address of this data point in Calibration RAM, is the data after upgrading by the data modification in this address;
7) start address of known MAP in FLASH and the size that takes up room, by inquiring about corresponding MAP pointer, obtain the start address of the current parking space of this MAP, thereby to what start with this start address, data in the region of memory of additional space size, the interpolation operation of tabling look-up, comprises the following steps:
1. using MAP, the start address in demarcating FLASH passes to as parameter the interpolating function of tabling look-up to single-chip microcomputer;
2. table look-up interpolating function according to the start address 1. being obtained by step, the MAP index sequence number of preserving in corresponding address in search index FLASH;
3. single-chip microcomputer, according to the MAP index sequence number 2. being obtained by step, is inquired about corresponding MAP pointer, obtains the start address of the current parking space of this MAP;
4. the start address based on 3. being 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 method for calibrating MAP data of single chip system as claimed in claim 1, is characterized in that: in described step 4), in index FLASH, each byte is deposited an index sequence number.
3. a kind of method for calibrating MAP data of single chip system as claimed in claim 1, is characterized in that: in described step 4), when MAP number is greater than 255, in index FLASH, every two bytes are deposited an index sequence number.
4. a kind of method for calibrating MAP data of single chip system as claimed in claim 2, is characterized in that: in described step 4), when MAP number is greater than 255, in index FLASH, every two bytes are deposited an index sequence number.
5. a kind of method for calibrating MAP data of single chip system as described in claim 1 or 2 or 3 or 4 any one, is characterized in that: in described step 3), adopt structure array to preserve the start address of each MAP and the size that takes up room; Under this array element, be designated as the index sequence number of MAP, the number of array element is identical with the number of MAP, and array element is structure, comprise two member: MAP take up room size and MAP in demarcation the start address in 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 CN102446138A (en) 2012-05-09
CN102446138B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN109871001B (en) * 2019-03-06 2023-04-18 普华基础软件股份有限公司 Method for calibrating large data volume of engine
CN111596863B (en) * 2020-05-20 2023-04-07 歌尔科技有限公司 Data reading method, device and equipment and readable storage medium
CN113190471B (en) * 2021-06-30 2021-09-28 飞天诚信科技股份有限公司 Method and device for managing mnemonics

Citations (7)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI284806B (en) * 2003-02-27 2007-08-01 Mediatek Inc Method for managing external memory of a processor and chip for managing external memory

Patent Citations (7)

* 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
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

Also Published As

Publication number Publication date
CN102446138A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
CN102446138B (en) Method for calibrating MAP data of single chip system
US6370456B2 (en) Method for applying control data for an electronic motor vehicle control unit
CN104216390B (en) Device and method for calibrating electronic control units of automobiles on basis of CCP [CAN (controller area network) calibration protocol]
US11334283B2 (en) Method for providing application data of at least one application executable on a control unit of a vehicle, method for calibrating a control unit, control unit and evaluation unit
CN104050113B (en) Nonvolatile memory is accessed by volatibility shadow memory
CN112668181A (en) Simulation test method, simulation test device, electronic equipment and storage medium
CN106227769A (en) Date storage method and device
CN105955893B (en) Wiring method, read method and the intelligent terminal of storing data
CN102231136B (en) Data storage method and device for flash memory storage equipment
US20080005515A1 (en) Plant information processing system
CN110457326A (en) Engine torque MAP table look-up method, device, computer equipment and storage medium
CN109871001B (en) Method for calibrating large data volume of engine
CN106990981B (en) Program updating method and device
CN110032341A (en) A kind of data processing method, device, electronic equipment and the medium of mould group
CN103136343A (en) Shared resource real-time interaction method
CN103778153A (en) Method and system for generating calibration database based on ASAP standard
KR19990044413A (en) A method of creating and storing a user program of an accumulation program control unit made up of instructions and an operation method of the accumulation program control unit
CN112948291A (en) Data transmission method, electronic device and readable storage medium
CN114022148A (en) Transaction conflict detection method, device, equipment and storage medium based on block chain
CN103176812A (en) Method for covering and solidifying off-line calibration data
WO2016102176A1 (en) Method for accessing a number of slave devices with registers by a master device over a network
CN112104766B (en) Diagnostic protocol reconstruction method, device, terminal equipment and storage medium
CN112599172B (en) Data writing method and device of electronic control unit and storage medium
CN106991114B (en) Method and apparatus for managing non-volatile memory of control device
CN112596677B (en) Data storage method and device of electronic control unit and storage medium

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