Automobile electronic control basic software code generation method, device and equipment and storage medium
By building a template syntax and template engine and using MATLAB software to generate automotive electronic control software code, the problem of complex and expensive code generation in the existing technology is solved, and simple and easy code generation and support for multiple text files are achieved.
Patent Information
- Application Number
- CN202510861523.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-25
- Publication Date
- 2025-09-23
AI Technical Summary
Existing technologies are unable to efficiently generate automotive electronic control software code, and existing tools are expensive or complex, lack flexibility, and are difficult to adapt to different code generation requirements.
By constructing template syntax and template engine, defining delimiters and writing code template files, and using MATLAB software to generate m language files, automatic code generation is achieved.
It simplifies the code generation process, reduces tool development costs, improves the flexibility and adaptability of code generation, supports the generation of multiple text files, and only requires mastering the M language.
Smart Images

Figure CN120687074A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile production and manufacturing technology, and specifically to a method, device, equipment and storage medium for generating basic software code for automobile electronic control. Background Art
[0002] The application layer of automotive electronic control software is generally based on model design, building control models in the MATLAB / Simulink environment and automatically generating C language code; however, the underlying basic software (MATLAB software) does not provide direct support and cannot automatically generate code by building models.
[0003] Therefore, there are currently four main development methods for automotive electronic control software code: (1) Completely handwritten, but this method is only suitable for relatively simple microcontrollers; (2) Use AUTOSAR tools to generate configurations, but such tools are very expensive and can only be used by professional Tier 1 suppliers. (3) Use C, M, and TLC languages to write the target support package, but this method is too complicated and difficult to implement; (4) Customize code generation tools using programming languages such as C, C++, C#, and Python. However, this approach requires modifying the tools to suit different code generation scenarios, which is not flexible enough. Summary of the Invention
[0004] The present application provides a method, apparatus, device and storage medium for generating basic automotive electronic control software code, which can effectively realize the generation of automotive electronic control software code.
[0005] In a first aspect, an embodiment of the present application provides a method for generating automotive electronic control basic software code, the method comprising: Constructing a template grammar and creating a template engine according to the template grammar for converting a code template file into an M language file; A code template file corresponding to the target automotive electronic control software is written based on the template syntax, and the template engine is called to process the code template file to realize code generation.
[0006] In conjunction with the first aspect, in one embodiment, The template syntax is used to implement the definition of delimiters; The delimiters include code delimiters, expression delimiters, meta-command delimiters and others; The "other" is used to indicate that the text that is not between code delimiters, expression delimiters, and meta-command delimiters is output as is.
[0007] In conjunction with the first aspect, in one embodiment, for the template engine to convert the code template file into an M language file, the specific conversion steps include: Obtain and scan the code template file to identify various delimiters in the code template file; For the text between code delimiters, it is output to the M language file as is. For the text between expression delimiters, it is used as a parameter of the print function and output to the M language file together with the print function. For the text between meta-command delimiters, the corresponding M language function is written according to the relevant commands to implement its function, and finally the code template file is converted into an M language file.
[0008] In conjunction with the first aspect, in one embodiment, The text between the code delimiters belongs to the m language code; The text between the expression delimiters belongs to the m language expression; The text between the meta-command delimiters belongs to the built-in commands of the code template file.
[0009] In conjunction with the first aspect, in one embodiment, calling the template engine to process the code template file to achieve code generation specifically includes: Encode preset m language scripts to assign values to variables in code template files; Calling the template engine to process the code template file to convert the code template file into an M language script; Run the converted M language script to generate code.
[0010] In combination with the first aspect, in one implementation, the variables in the code template file include part number, supplier code, hardware version number, software version number, and part name.
[0011] In a second aspect, an embodiment of the present application provides a device for generating code for basic automotive electronic control software, the device comprising: A construction module, which is used to construct a template grammar and create a template engine according to the template grammar to convert the code template file into an M language file; An execution module is used to write a code template file corresponding to the target automotive electronic control software based on the template syntax, and call the template engine to process the code template file to realize code generation.
[0012] In conjunction with the second aspect, in one embodiment, The template syntax is used to implement the definition of delimiters; The delimiters include code delimiters, expression delimiters, meta-command delimiters and others; The "other" is used to indicate that the text that is not between code delimiters, expression delimiters, and meta-command delimiters is output as is.
[0013] In a third aspect, an embodiment of the present application provides an automotive electronic control basic software code generation device, which includes a processor, a memory, and an automotive electronic control basic software code generation program stored in the memory and executable by the processor. When the automotive electronic control basic software code generation program is executed by the processor, the steps of the above-mentioned automotive electronic control basic software code generation method are implemented.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a basic automotive electronic control software code generation program is stored. When the basic automotive electronic control software code generation program is executed by a processor, the steps of the above-mentioned basic automotive electronic control software code generation method are implemented.
[0015] The beneficial effects of the technical solutions provided in the embodiments of the present application include: By constructing a template syntax and creating a template engine based on the template syntax to convert a code template file into an M language file, a code template file corresponding to the target automotive electronic control software is written based on the template syntax, and the template engine is called to process the code template file to realize code generation. The code generation method is simple and easy, relying only on MATLAB software and mastering the M language; the template engine only needs to be developed once and can be used repeatedly; for different code generation requirements, only the code template file needs to be modified, and there is no need to modify the source code of the tool itself like a customized code generation tool; it has a wide range of applications and can generate not only C code but also various text files such as makefile. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a flowchart of the method for generating code for basic automotive electronic control software in this application; Figure 2 This is a schematic diagram of the functional modules of the device for generating basic software code for automotive electronic control in this application; Figure 3 This is a hardware structure diagram of the automotive electronic control basic software code generation device for this application. DETAILED DESCRIPTION
[0017] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0018] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0019] In a first aspect, an embodiment of the present application provides a method for generating code for basic automotive electronic control software, providing a simple and easy code generation method that can be implemented only in the M language.
[0020] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of the method for generating code for basic automotive electronic control software in this application. Figure 1 As shown in FIG, the method for generating code for basic automotive electronic control software includes: S1: constructing a template syntax, and creating a template engine based on the template syntax to convert a code template file into an M language file; M language is a programming language; That is, first define the template syntax and create a development template engine. Then, based on the template engine, the code template file can be converted into an M language file. It should be noted that the code template file is written according to the defined template syntax. S2: Write a code template file corresponding to the target automotive electronic control software, and call the template engine to process the code template file to achieve code generation. That is, write the code template file and then call the template engine to achieve code generation.
[0021] In this application, template syntax is used to implement the definition of delimiters; delimiters include code delimiters, expression delimiters, meta-command delimiters and others; others are used to indicate that the text that is not between code delimiters, expression delimiters and meta-command delimiters is output as is.
[0022] Specifically, for template syntax, there are four definitions: Define code delimiters. For example, it is stipulated that the text between "<%" and "%>" is code, following the m language syntax; Define expression delimiters. For example, it is stipulated that the text between "<$" and "$>" is an expression, following the m language syntax; Define meta-command delimiters. For example, it is stipulated that the text between "<!" and ">" is a meta-command. A typical meta-command is "inc", whose function is to include other code template files in the code template file; The text not between any of the above delimiters is output as it is.
[0023] Furthermore, in one embodiment, for the template engine to convert the code template file into an m language file, the specific conversion steps include: S101: Obtain the code template file and scan it to identify various delimiters in the code template file; S102: For the text between the code delimiters, output it as it is to the m language file. For the text between the expression delimiters, output it as an argument of the print function together with the print function to the m language file. For the text between the meta-command delimiters, write the corresponding m language function according to the relevant command to implement its function. Finally, convert the code template file into an m language file.
[0024] That is, subsequently, when using the template engine to convert the code template file into an m language file to achieve code generation, the specific processing steps include: Scan the code template file, identify delimiters such as code delimiters, expression delimiters, and meta-command delimiters in the code template file. According to the implementation results, for the text between the code delimiters, output it as it is to the m language file. For the text between the expression delimiters, output it as an argument of the print function together with the print function to the m language file. For the text between the meta-command delimiters, write the corresponding m language function according to the relevant command to implement its function. After the above operations, the code template file can be converted into an m language file. [[ID= / * F187: vehicleManufacturerSparePartNumberDataIdentifier * / / *<$GD.PartCode$>* / __ attribute. _ ((section(". DidData"))) const uint8 F187_DATA[F187_DATA _LENGTH] =<$iniChArr (GD. PartCode) $> / * F18A: systemSupplier IdentifierDataldentifier * / / *<$GD.SupplierID$>* / __ attribute__ ((section(".DidData"))) const uint8 F18A_ DATA[F18A _DATA_ LEINGTHO =<$iniChArr (GD. SupplierID) $> / * F193: systemSupplierECUHardwareVersi onNumberDataIdentifier * / / *<$GD. HardwareVer$>* / __ attribute__ ((section(" . DidData"))) const uint8 F193 _DATA[F193_DAIA_ LENGTH] = "<$GD. HardwareVer$>" .
[0027] Furthermore, in one embodiment, calling the template engine to process the code template file to realize code generation specifically includes: S201: Encode a preset M language script to assign values to variables in a code template file; the variables in the code template file include part number, supplier code, hardware version number, software version number, and part name.
[0028] S202: calling a template engine to process the code template file to convert the code template file into an M language script; S203: Run the converted M language script to generate code.
[0029] In this application, the variables in the code template file are assigned values, and the template engine is called to process the code template file to achieve code generation. The complete process can be shown as follows: patternMain.m % Template variable assignment GD. PartCode='2115010-VE0101':% Part number GD. SupplierID=' X0267" :%Supplier code GD. HardwareVer='H003':%Hardware version number GD.SoftwareVer='S100.003C255.255':% software version number GD. PartName=' VCU' :% Part name outDir = 'output':%path to the generated code file fn=' pattern' : GD. objFile = [fn, ".c' ]:% The name of the .c file to be generated %Turn the template engine to convert the code template file into an m language script mc = gencode(['template\',fn,'C.tpl'], CoutDir,'\', fn,'Cm'],GD, CoutDir,'\',fn,'.c'], true, true): evalin('base', mc): %Execute the m language script and generate code.
[0030] In this application, the code template file is converted into an M language script through the template engine, which can be shown as follows: patternC.m [Open, Print, VaL, BKS, Close] = Init. _Func(): Open(' output \pattern.c' ): Print('%s' ,' / / '): VAL (GD.objFile): Print("%s',' file created by LIXIN using '): VAL (GD. File) ; Print("%s',' on '): VAL (datestr (now(),31)): Print('%s\n','. '): Print('%s\n' ,' #include” pattern. h"'); Print('%s\n',"'): Print("%s' ,' / * F187: vehicleManuf acturerSpareP artNumberDataIdentifier * / / *') VAL (GD. PartCode) ; Print(' %s\n' * / '): Print('%s' ,'__ attribute. __ ((section(" . DidData"))) const uint8F187_ DATA[F187_ DATA_ LENGTH] = '): VAL (iniChArr (GD. PartCode)): Print('%s\n' ,"): Print('%s\n' ,"): Print('%s',' / * F18A: systemSupplier IdentifierDataIdentifier * / / *'): VAL (GD. SupplierID): Print('%s\n',’* / '): Print('%s' ,’__ attribute. __ ((section(" . DidData' ))) const uint8F18A_ DATA[F18A, _DATA_ LENGTH] =‘): VAL (iniChArr (GD. SupplierID)): Print('%s\n',"); Print('%s\n', '): Print('%s' ,' / * F193: systemSupplierECUHardwareVersionNumberDataIdentifier| * / / * '): VAL (GD. HardwareVer) : . Print('%s\n','* / '): Print('%s' ,'__ attribute. __ ((section(" . DidData"))) const uint8F193_ DAIACF193. DAIA_ LENGTH] = "'): VAL (GD. HardwareVer) : Print('%s\n','":'): Close().
[0031] Among them, functions such as Print, VAL, Open, and Close are all built-in functions of the template engine.
[0032] In this application, the final generated code can be as follows: pattern.c / / pattern.c file created by LIXIN using patternMain.m on 2025-05-2713:32: 21. #include " pattern.h" / * F187: vehicleManuf acturSpar eP ar tNumberDataIdentifier * / / *2115010-VE0101 * / __ attribute__ ((section(" . DidData"))) const uint8 F187_ DATA[F187_DATA LENGTH] = ;{0x32, 0x31, 0x31, 0x35, 0x30, 0x31, 0x30, 0x2D, 0x56, 0x45, 0x30,0x31, 0x30, 0x31} : / * F18A: systemSupplier IdentifierDataIdentifier * / / * X0267 * / __ attribute, _. ((section(" . DidData"))) const uint8 F18A_ DATA[F18A_ DATA LENGTH] = {0x58, 0x30, 0x32, 0x36, 0x37} : . / * F193: systemSupplierECUHardwareVersi onNumberDataIdentifier * / / *H003 * / __ attribute_ _ ((section(" . DidData"))) const uint8 F193_ DATA[F193_ DATA LENGTH] = "H003" .
[0033] The automotive electronic control basic software code generation method of the embodiment of the present application constructs a template syntax and creates a template engine based on the template syntax to convert the code template file into an M language file, then writes the code template file corresponding to the target automotive electronic control software based on the template syntax, and calls the template engine to process the code template file to realize code generation. The code generation method is simple and easy, relying only on MATLAB software and mastering the M language; the template engine only needs to be developed once and can be used repeatedly; for different code generation requirements, it is only necessary to modify the code template file, without modifying the source code of the tool itself like a customized code generation tool; it is widely used and can generate not only C code but also various text files such as makefile.
[0034] In a second aspect, an embodiment of the present application also provides a device for generating basic software code for automotive electronic control.
[0035] In one embodiment, referring to Figure 2 , Figure 2 This is a functional module diagram of the device for generating basic software code for automobile electronic control in this application. Figure 2 As shown, the vehicle electronic control basic software code generation device includes: a construction module and an execution module.
[0036] The construction module is used to construct a template syntax and create a template engine based on the template syntax to convert the code template file into an M language file; the execution module is used to write a code template file corresponding to the target automotive electronic control software based on the template syntax, and call the template engine to process the code template file to realize code generation.
[0037] That is, first define the template syntax and create a development template engine. Then, based on the template engine, you can convert the code template file into an M language file, then write the code template file, and then call the template engine to generate the code.
[0038] In this application, the template syntax is used to define delimiters; the delimiters include code delimiters, expression delimiters, meta-command delimiters and others; others are used to indicate that the text not between the code delimiter, expression delimiter and meta-command delimiter is output as it is.
[0039] Specifically, for the template syntax, there are four definitions: define the code delimiter. For example, it is stipulated that the text between "<%" and "%>" is code, following the m language syntax; define the expression delimiter. For example, it is stipulated that the text between "<$" and "$>" is an expression, following the m language syntax; define the meta-command delimiter. For example, it is stipulated that the text between "<!" and ">" is a meta-command. A typical meta-command is "inc", whose function is to include other code template files in the code template file; the text not between any of the above delimiters is output as it is.
[0040] In this application, for the template engine to convert the code template file into an m language file, the specific conversion steps include: Obtain the code template file and scan it to identify various delimiters in the code template file; For the text between the code delimiters, output it as it is to the m language file. For the text between the expression delimiters, output it as the parameter of the print function together with the print function to the m language file. For the text between the meta-command delimiters, write the corresponding m language function according to the relevant commands to implement its function. Finally, convert the code template file into an m language file.
[0041] That is, subsequently, when using the template engine to convert the code template file into an m language file to achieve code generation, the specific processing steps include: scanning the code template file, identifying delimiters such as code delimiters, expression delimiters, and meta-command delimiters in the code template file. According to the implementation results, for the text between the code delimiters, output it as it is to the m language file. For the text between the expression delimiters, output it as the parameter of the print function together with the print function to the m language file. For the text between the meta-command delimiters, write the corresponding m language function according to the relevant commands to implement its function. After the above operations, the code template file can be converted into an m language file.
[0042] In this application, the text between the code delimiters belongs to the m language code; The text between the expression delimiters belongs to the m language expression; The text between the meta-command delimiters belongs to the built-in commands of the code template file.
[0043] In this application, calling the template engine to process the code template file to implement code generation specifically includes: Encode preset m language scripts to assign values to variables in code template files; Calling the template engine to process the code template file to convert the code template file into an M language script; Run the converted M language script to generate code.
[0044] In this application, the variables in the code template file include part number, supplier code, hardware version number, software version number, and part name.
[0045] In a third aspect, an embodiment of the present application provides a device for generating basic software code for automotive electronic control. The device for generating basic software code for automotive electronic control may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.
[0046] Reference Figure 3 , Figure 3 Schematic diagram of the hardware structure of the vehicle electronic control basic software code generation device involved in the embodiment of the present application. In the embodiment of the present application, the vehicle electronic control basic software code generation device may include a processor, a memory, a communication interface and a communication bus.
[0047] The communication bus may be of any type and is used to interconnect the processor, memory, and communication interface.
[0048] Communication interfaces include input / output (I / O), physical, and logical interfaces, used to interconnect components within the automotive electronic control basic software code generation device, as well as interfaces used to interconnect the device with other devices (such as other computing devices or user devices). Physical interfaces can include Ethernet, fiber optic, and ATM interfaces; user devices can include displays and keyboards.
[0049] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.
[0050] The processor may be a general-purpose processor that can invoke a program for generating basic automotive electronic control software code stored in a memory and execute the method for generating basic automotive electronic control software code provided in the embodiments of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the program for generating basic automotive electronic control software code is invoked can be referenced in the various embodiments of the method for generating basic automotive electronic control software code of the present application and will not be further described here.
[0051] Those skilled in the art will understand that Figure 3 The hardware structure shown in the figure does not constitute a limitation to the present application and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0052] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.
[0053] The computer-readable storage medium of the present application stores an automotive electronic control basic software code generation program, wherein when the automotive electronic control basic software code generation program is executed by a processor, the steps of the automotive electronic control basic software code generation method as described above are implemented.
[0054] Among them, the method implemented when the automobile electronic control basic software code generation program is executed can refer to the various embodiments of the automobile electronic control basic software code generation method of this application, and will not be repeated here.
[0055] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit the "first", "second" and "third" to different types.
[0056] In the description of the embodiments of this application, the words "exemplary," "for example," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary," "for example," or "for example" in the embodiments of this application should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary," "for example," or "for example" is intended to present the relevant concepts in a concrete manner.
[0057] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0058] In some processes described in the embodiments of the present application, multiple operations or steps are included that appear in a specific order. However, it should be understood that these operations or steps may not be performed in the order in which they appear in the embodiments of the present application or may be performed in parallel. The sequence numbers of the operations are only used to distinguish between different operations, and the sequence numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be performed in sequence or in parallel, and these operations or steps may be combined.
[0059] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, or the part that contributes to the existing technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes a number of instructions for enabling a terminal device to execute the methods described in each embodiment of this application.
[0060] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for generating code for basic automotive electronic control software, characterized in that: The method for generating automotive electronic control basic software code comprises: Constructing a template grammar and creating a template engine according to the template grammar for converting a code template file into an M language file; A code template file corresponding to the target automotive electronic control software is written based on the template syntax, and the template engine is called to process the code template file to realize code generation.
2. The method for generating automotive electronic control basic software code according to claim 1, wherein: The template syntax is used to implement the definition of delimiters; The delimiters include code delimiters, expression delimiters, meta-command delimiters and others; The "other" is used to indicate that the text that is not between code delimiters, expression delimiters, and meta-command delimiters is output as is.
3. The method for generating automotive electronic control basic software code according to claim 2, wherein: For the template engine to convert the code template file into an M language file, the specific conversion steps include: Obtain and scan the code template file to identify various delimiters in the code template file; For the text between code delimiters, it is output to the M language file as is. For the text between expression delimiters, it is used as a parameter of the print function and output to the M language file together with the print function. For the text between meta-command delimiters, the corresponding M language function is written according to the relevant commands to implement its function, and finally the code template file is converted into an M language file.
4. The method for generating automotive electronic control basic software code according to claim 3, wherein: The text between the code delimiters belongs to the m language code; The text between the expression delimiters belongs to the m language expression; The text between the meta-command delimiters belongs to the built-in commands of the code template file.
5. The method for generating automotive electronic control basic software code according to claim 1, wherein: The calling of the template engine to process the code template file to realize code generation specifically includes: Encode preset m language scripts to assign values to variables in code template files; Calling the template engine to process the code template file to convert the code template file into an M language script; Run the converted M language script to generate code.
6. The method for generating automotive electronic control basic software code according to claim 1, wherein: The variables in the code template file include part number, supplier code, hardware version number, software version number, and part name.
7. A device for generating code for basic automotive electronic control software, characterized in that: The vehicle electronic control basic software code generation device includes: A construction module, which is used to construct a template grammar and create a template engine according to the template grammar to convert the code template file into an M language file; An execution module is used to write a code template file corresponding to the target automotive electronic control software based on the template syntax, and call the template engine to process the code template file to realize code generation.
8. The device for generating code for basic automotive electronic control software according to claim 7, wherein: The template syntax is used to implement the definition of delimiters; The delimiters include code delimiters, expression delimiters, meta-command delimiters and others; The "other" is used to indicate that the text that is not between code delimiters, expression delimiters, and meta-command delimiters is output as is.
9. A device for generating code for basic automotive electronic control software, characterized in that: The automobile electronic control basic software code generation device includes a processor, a memory, and an automobile electronic control basic software code generation program stored in the memory and executable by the processor. When the automobile electronic control basic software code generation program is executed by the processor, the steps of the automobile electronic control basic software code generation method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores an automotive electronic control basic software code generation program, wherein when the automotive electronic control basic software code generation program is executed by a processor, the steps of the automotive electronic control basic software code generation method according to any one of claims 1 to 6 are implemented.