After work, I switched from a single-chip computer to an arm. At the beginning, I used the ads1.2 compiler for a while, because the old program I took over was compiled using ads, and most departments were using it. when learning SCM, we use the Keil C51 compiler. ads and this compiler cannot be compared in terms of ea
Data Type Definition of the Keil MDK compiler.
1 # include "usart. h "2 int main () 3 {4 usartmediaconfig (); // serial port initialization, the following information is printed through the serial port 5 printf (" char: % d \ r \ n ", sizeof (char); 6 printf ("unsigned char: % d \ r \ n", sizeof (unsigned char); 7 printf ("short: % d \ r \ n ", sizeof (short); 8 printf (" unsigned short: % d \ r \ n ", size
A few days ago into the hands of a J-LINK, because the H-JTAG after all on the MDK support is not too perfect, for example, with the Download button on the Keil MDK burning program, not directly can burn in, instead, the H-Flash software is popped up, and then the file is manually selected for installation. In addition, the single-step debugging with h_jtag is easy to run inexplicably. Fortunately, J-LINK is not too expensive (I mean domestic imitatio
A few days ago into the hands of a J-LINK, because the H-JTAG after all for the MDK support is not too perfect, such as using the Download button on the Keil MDK burnProgramInstead of simply burning the file, the H-Flash software is popped up, and then the file is manually selected for burning. In addition, the single-step debugging with h_jtag is easy to run inexplicably. Fortunately, J-LINK is not too expensive (I mean domestic imitation), MDK can b
1 # include "usart. H "2 int main () 3 {4 usartmediaconfig (); // serial port initialization, the following information is printed through the serial port 5 printf (" char: % d \ r \ n ", sizeof (char); 6 printf ("unsigned char: % d \ r \ n", sizeof (unsigned char); 7 printf ("short: % d \ r \ n ", sizeof (short); 8 printf (" unsigned short: % d \ r \ n ", sizeof (unsigned short )); 9 printf ("int: % d \ r \ n", sizeof (INT); 10 printf ("unsigned INT: % d \ r \ n ", sizeof (unsigned INT); 11 pri
Solutions to common warnings and error messages of the Keil C Compiler
1. Warning 280: 'I': unreferenced local variable
Note that local variable I does not perform any access operations in the functionSolution: Eliminate the declaration of the I variable in the function
2 warning 206: 'music3': missing function-Prototype
It indicates that the music3 () function is not declared or is not declared exter
Keil uvision, Keil MDK, Keil for ARM, realview MDK, Keil C51, Keil c166, Keil c166
From contact with MCS-51 microcontroller, we know that there is a software called Keil. When developin
Transferred from: http://blog.chinaunix.net/uid-20734916-id-3988537.htmlKeil and MDK coexist, follow these steps:1 Install Keil C51 First, install directory to: "D:\Keil2" (I was installed on the D drive)2 Reinstall RealView MDK, directory: "D:\Keil"3 Copy the C51 folder under Keil2 to Keil4 Copy and paste all the files under Keil2 under UV4 (or UV3) to the UV4 folder under
The same shoes that used Keil know that now the Keil can be output by default. AXF debug files and the. Hex executable file that can be checked for output, there is no output option for the bin (binary) file. However, there are times when it is necessary or customary to use the. bin file for Burn-write, one example below:1. users who have been using ads habitually use the. bin file;2. some of the applicatio
original author)1 Problem Review and Analysisas mentioned in the original text: in the actual work encountered on the same port repeated continuous reading, Keil C51 compilation did not achieve the expected results. The author of the original C compiled assembler analysis found that the same port of the second read statement is not compiled. But unfortunately the original author did not analyze the reasons for not being compiled, but rushed to use so
Keil Optimization Level settingOptimization level description (for reference only):The Code optimization bar is used to set the C51 level of optimization. There are 9 levels of optimization (as written in the book), and the high level of optimization includes all the previous levels of optimization. The various levels are described below:0-Level optimization:1, constant folding: Whenever possible, the compiler
At the beginning of contact Cortex-M0, so everything starts from 0!
First, you must have your own hardware platform. I have a coocox M0 board, and then the download tool. coocox has its own download tool. This afternoon, the driver will be installed, then you need to find this download tool in your own Keil! I have never touched this item before, so it was a little difficult at the beginning. I found it online for a long time before seeing how to ins
USB learning notes serialization (13th): keil configuration environment, learning notes keil
When changing the driver name of a USB device, you must use the keil software to modify the firmware and generate the firmware. iic files are burned to the external EEPROM of CY7C68013A, which is generated by keil. hex files ca
Introduction8051 Core SCM is a universal monolithic microcomputer, which occupies a large market share in China. Keil has been the most successful in the study of the use of C language for 51-core microcontroller. Due to the particularity of the storage structure of the 51-core microcontroller, the use of variables in Keil C51 differs from standard C. The correct use of variables facilitates the acquisition
1. Open cmd and go to the appropriate pathCD C:\Keil\ARM\BIN\Input ARMCC The following interface indicates that Keil is already registered2. If the registration success has not resolved the problem, then the software is downloaded on the Internet cracked version, it is recommended to uninstall. Go to official websitehttps://www.keil.com/Download and install the official software package again. The problem i
Http://download.csdn.net/source/201540
PC-lint, which is integrated into Keil. It is easy to use and has powerful functions. Everyone may help you and take every colleague seriously.
Information such as PC-Lint warning and info can be filtered by adding and deleting options in the configuration file. For example, when using the realview compiler of Keil, the con
[]);
IAP iap_entry;
Set function pointer
Iap_entry = (IAP) iap_location;
Use the following statement to call IAP.
Iap_entry (command, result );
Flash memory cannot be accessed during write or erase operations. IAP command for executing flash write/erase operations
Uses 32 bytes of space at the top of the block ram. If IAP programming is allowed in the application, the user program should not
Use this space.
3Implementation process of the upgrade of the lpc2114
In the software design of the Upgr
installation directory, the old lib version is used, and the new version is used in the project. The code structure of the two is different. While compiling the project files, the compiler automatically links the files under the Keil installation directory, causing a conflict. However, the option does not find the link to the Lib in the installation directory of Keil
Source: Keil MDK How to set a non-0 initialization variableSome industrial products, when the system reset (non-power-on reset), may require to hold the data in the pre-reset RAM, used to quickly restore the scene, or not due to the instantaneous reset of the field equipment restart. and Keil MDK by default, any form of reset resets the uninitialized variable data in the Ram area to zero. How to set a non-i
Embedded Assembly in Keil C51 and mutual call between C51 and A51
Author [ycong_kuang] [youth]
There have been many posts on how to call an assembly function in Keil C51 (v6.21) [ycong_kuang] for the methods of calling the Assembly by the C51, but generally only focus on the points, I rarely describe the entire process in detail, but it is not enough for beginners. Here I will des
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.