Python-based MCU resource automatic identification and statistics method
A technology of automatic identification and statistical methods, which is applied in the field of MCU resource statistics, and can solve the problem that the size of specific address space data cannot be obtained intuitively.
Pending Publication Date: 2022-03-25
YANFENG VISTEON ELECTRONICS TECH NANJING
View PDF0 Cites 0 Cited by
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
[0002] As the current embedded products are becoming more and more complicated, the requirements for software are also getting higher and higher. In the process of product development, there will be statistics on the use of memory chips with specific addresses. From the link files generated by the compiler, you can intuitively obtain specific The storage location of functions or variables, but the size of data in a specific address space cannot be obtained intuitively. In order to obtain the usage of resources in a specific address range, developers need to check the map file, find qualified data, and manually calculate the usage of resources.
Method used
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View moreImage
Smart Image Click on the blue labels to locate them in the text.
Smart ImageViewing Examples
Examples
Experimental program
Comparison scheme
Effect test
Embodiment
[0035] Such as Image 6 shown by tag to get the compiler type, through The label obtains the storage path of the map file, through The label obtains the name of a specific address range, the start address is obtained through the label, and the end address is obtained through the label. After getting the information, match the information filtered out by the map file with these addresses, and then perform calculations, such as Figure 7 As shown, the final result is displayed in the form of a pie chart.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More PUM
Login to View More Abstract
The invention provides a python-based MCU (Microprogrammed Control Unit) resource automatic identification statistical method, which takes a python language as a development language, supports map files generated in IAR and GreenHill development environments, screens out useful information from the map files by utilizing a regular expression, matches the useful information with an address range in an XML (Extensible Markup Language) file defined by a user, and finally graphically displays the successfully matched information. The method has the beneficial effects that the chart data can be generated by one key, the use condition of each storage resource can be intuitively reflected, and support is provided for development work.
Description
technical field [0001] The invention relates to the technical field of MCU resource statistics, in particular to a method for automatically identifying and counting MCU resources based on python. Background technique [0002] As the current embedded products are becoming more and more complicated, the requirements for software are also getting higher and higher. In the process of product development, there will be statistics on the use of memory chips with specific addresses. From the link files generated by the compiler, you can intuitively obtain specific The storage location of functions or variables, but the size of data in a specific address space cannot be obtained intuitively. In order to obtain the usage of resources in a specific address range, developers need to check the map file, find qualified data, and manually calculate the usage of resources. . Contents of the invention [0003] In order to solve the above problems, the present invention discloses a python...
Claims
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More Application Information
Patent Timeline
Login to View More Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41G06F11/34
CPCG06F8/41G06F11/3452
Inventor 郭阳
Owner YANFENG VISTEON ELECTRONICS TECH NANJING



