Home > other >  Be urgent! Modular programming the main function directly generated hex file onto/SCM?
Be urgent! Modular programming the main function directly generated hex file onto/SCM?

Time:09-16

Single chip microcomputer after the modular programming is only need to burn the main function of the code? Generated hex file import single-chip microcomputer

CodePudding user response:

Don't know what you want to do, microcontroller is not a PC can be generated exe to the operating system
Hex is generated after the link of the entire project final code, containing project used all the procedures, burning the line
Is compiled separately generated. O file, the burn out useless

CodePudding user response:

reference 1st floor dceacho response:
don't know what you want to do, microcontroller is not a PC can be generated exe to the operating system
Hex is generated after the link of the entire project final code, containing project used all the procedures, burning the line
Is compiled separately generated. O file, the burn out useless

I mean multiple modules such as: water lamp module. The key module. LED display module respectively after writing, write a main function modular programming again, the main function and write module of header files directly generated hex file is all the functions can achieve the above module

CodePudding user response:

refer to the second floor liqifff response:
Quote: refer to 1st floor dceacho response:
don't know what you want to do, microcontroller is not a PC can be generated exe to the operating system
Hex is generated after the link of the entire project final code, containing project used all the procedures, burning the line
Is compiled separately generated. O file, the burn out useless

I mean multiple modules such as: water lamp module. The key module. LED display module respectively after writing, write a main function modular programming again, the main function and write module of header files directly generated hex file is all the functions can achieve the above module

The thinking of you in this line of thought is to use the library, each module generated. Lib, and other local calls,

and projects can add multiple files, you these function module files in one place, different projects directly added in line, the resulting hex file containing these you quoted,

CodePudding user response:

Say you of LED lights you related functions in the LED in the c file, buzzer related you on beep. C file, motor control on your motor. The c file, you need to which function which files to add to your project in the line, do not need to put all in a file

CodePudding user response:

Is that if you code only main function;
  • Related