EXPERTS, PLEASE GO TO KEIL C TO COMPILE THE ANALYSIS THAT CANNOT GENERATE HEX FILES

Updated on technology 2024-05-24
11 answers
  1. Anonymous users2024-02-11

    The situation after your compilation here is that only one of your ptz speed select() functions is not called, which is a warning and generally has no effect.

    And you have to note that a bank in keil is 64k in size, and your 160k program needs 3 banks, so you need to set it up like this:

    Open the keil project file, right-click your "target" (generally target 1) - setting options "(some abbreviations here) - project" tab,,, there is a "pagination**" optional box at the bottom, you need to select her, select 3 in the banks drop-down box, and the start and end addresses of the bank range generally do not need to be changed, the default is 0x0000---0xffff (this is already the maximum) (in this case, Your maximum program capacity is 64kb * 3 = 192kb, to meet your 160kb requirements), after all confirmed, recompile the entire project file, if the program itself is not a problem, and only the previous due to the size of the ** and the part of the program written to the chip should be able to be solved.

    PS: I still solve it according to the actual situation you mentioned above, good luck

  2. Anonymous users2024-02-10

    Program sizeYou look at this sentence program size: data= xdata=30443 code=90420 OK,As long as this is the right place,What do you care about the size of the hex file。

    There is a caveat in the text".\2808\tp2808" - 0 error(s), 1 warning(s).

  3. Anonymous users2024-02-09

    Doesn't it show that hex has been generated? You didn't find it?

  4. Anonymous users2024-02-08

    If you generate a hex file after compiling with keil4, but you can't find the hex file in the comby folder, it may be due to the following reasons:

    1.The hex file save path is set incorrectly. In Keil4's Option For Target, you can set the path to the HEX file output.

    You need to make sure that the path is set up correctly and that the path does not contain special characters or symbols that are not allowed.

    2.The wrong project target was selected at compile time. In the Targets tab of the Keil4 Project Manager, you need to select the correct project target to ensure that the HEX file is generated into the correct folder.

    3.There are disallowed characters in the hex file name. If the file name contains special characters or unallowed symbols, Windows may prevent the file from being created or saved.

    You need to check whether the HEX file name complies with the Windows file naming rules.

    4.There is an abnormality in the operating system or keil4 software. This is rare, but if something goes wrong with the software or computer, it may cause the HEX file to not be generated correctly.

    You can try restarting your computer and the keil4 software before recompiling the program to generate the hex file.

    If the above methods still can't solve the problem, please try to check whether a newer version of keil4 software and operating system is available, or try to use another compiler for compilation.

  5. Anonymous users2024-02-07

    Here are three ways to try it:

    First, the operating system will hide the extension of the file, if you don't set the extension to display, you can't see it, but there must be a fuytf file, look at the wood.

    Second, as shown in the figure below, the button with a red circle on the right can be used to compile the hex file, and the button with a blue circle on the left side of the key point will not generate a hex file.

    3. I've tried both of the above two items, but I haven't done it yet, so I will knock out the create hex file checkbox, close the dialog box, compile it once, and then hit the create hex file and try it again.

  6. Anonymous users2024-02-06

    I've come across it too. Changing the program overnight is actually not generating a file. I can't change it, so I still follow his program, but in the last step, you click on defaults, and then check the create hex file option.

  7. Anonymous users2024-02-05

    First of all, your keil version, some damn trial versions can't be generated, or if you don't have registration, you may not be able to generate; And then there's the problem I just encountered yesterday... After the windows are reinstalled, keil will also be reinstalled by the way, or it won't be generated. In addition, if the registry of the system is messy, it will also affect Keil. Also, the shorter the installation directory for keil, the better, such as d:

    The directory where the project files are stored is also the same, and the address is too long will cause problems. Some versions do not support Chinese, and it is best not to have Chinese characters in the file name and address name. Well, that's all, I hope it helps.

  8. Anonymous users2024-02-04

    "keil compiler no errors and no warnings".

    There has to be some hint of information. You post the full prompt message.

    Some beginners used to say "no errors, no warnings", and the result message was that they didn't ......start compiling at all

  9. Anonymous users2024-02-03

    The compiler has no errors and no warnings, create hex file has been checked, and there should be an output file. It is recommended to see where the file is saved.

  10. Anonymous users2024-02-02

    First open the KEIL software, click on the "project" menu and click "new".

    project" to create a new project. If you don't create a new project, you can't generate a hex file, so in the next dialog, select a directory and give the project a name. You can choose any name, but here we take "test project" as an example.

    A dialog box appears to select a CPU for your project. Click the scroll bar of the tree directory on the left, click ATMEL, select AT89C51, and click OK.

    This dialog asks if you want to add the startup file to the project, and selects "Yes".

    To generate a hex file, you need to set it up. Click the settings icon in the following figure to switch to the "output" tab, and select "createhexfile" in the following figure. If you want to change the location where the HEX file is saved, you can click "Select" in the upper left corner

    flolder

    forobjects".

    When you're done, select OK.

  11. Anonymous users2024-02-01

    Double-click on the keil software, select the new project in the "project" drop-down item, give it a name and save it.

    2.In the dialog box that pops up, select AT89C51 in ATMEL below the CPU and click OK to add the file to the project.

    3.Click on the icon circled in red in the image below.

    4.Select the output page, tick "create hex file", and click OK after completing the task.

Related questions
6 answers2024-05-24

This program has no problem compiling the compiler, but there are 8 functions that you don't call >>>More

9 answers2024-05-24

Plants have chlorophyll, no nerves, no sensations.

Animals, on the other hand, have nerves and sensations. It feeds on organic matter (plants, animals or microorganisms) for life activities such as feeding, digestion, absorption, respiration, circulation, excretion, sensation, movement and reproduction. >>>More

16 answers2024-05-24

The positional relationship is vertical.

The quantitative relationship is equal. >>>More

11 answers2024-05-24

Iodized salt, kelp – endemic goiter.

Pork liver – anemia, night blindness, rickets. >>>More

25 answers2024-05-24

Someone who genuinely praises you, someone who truly loves you, someone who genuinely helps you when you are in trouble, and someone who genuinely rejoices for you when you succeed.