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 ", sizeof (unsigned short )); 9 printf ("int: % d \
[Original]
We are using Keil recently. I want to try it.Source codeManagement tools to facilitate the project teamCodeManagement.
(My Keil version is 3)
1. There is a menu SVCs in Keil
Open the configure version control... menu.
Configure the command of each source code management tool here (I have configured the command with content; if you have
Keil RTX is a royalty-free, deterministic real-time operating system for ARM and cortex-m devices. With this system, you can create programs that execute multiple functions at the same time, and create applications with better structure and easier maintenance.Highlights
Royalty-free and deterministic RTOS with source code
Flexible scheduling: loop, preemptive, and collaborative
High-speed real-time operations with low interrupt latency
Small spac
When you look at the functions in the MSC of EFM32, for example, when you look at the function MSC_ErasePage (), do you have to pay attention to a large part of the above explanation. The detailed English is as follows:
This function MUST be executed from RAM. failure to execute this portion of the code in RAM will result in a hardfault. for IAR, Rowley and Codesourcery this will be achieved automatically. for Keil uVision 4 you must define a section
1, the Tool.ini file in the installation directory of Keil is added on [ARM][C51]Path= "G:\Keil\C51\"Sn=k1dzp-5iush-a01ueversion=v9.01Book0=hlp\release_notes. HTM ("Release Notes", GEN)Book1=hlp\gs51. PDF ("UVision2 Getting Started", GEN)Book2=hlp\c51. PDF ("C51 User ' s Guide", GEN)Book3=hlp\c51lib. CHM ("C51 Library Functions", C)Book4=hlp\a51. PDF ("Assembler/utilities", GEN)Book5=hlp\tr51. CHM ("RTX51 T
Keil link When this problem occurs, the computer has installed ads and Keil, it should be their conflict.Linking .... \obj\hello.axf:warning:l6373w:libattrs.map file not found in System Library directory C:\Program files\arm\adsv1_2\lib \armlib\. Library selection may impaired.. \obj\hello.axf:warning:l6310w:unable to find ARM libraries.. \obj\hello.axf:error:l6411e:no compatible library exists with a defin
(1) copy the file vdm51.dll (C: \ ProgramFiles \ labcenterelectronics \ proteus6 \ Professional \ models) under the Proteus installation directory to the \ C51 \ bin directory in the Keil installation directory;(2) edit the tools. ini file in C51 and add:Tdrv1 = bin \ vdm51.dll ("Proteus VSM Monitor-51 driver"); Number "1" flexible change(3) set in Keil uvision: Project --> options for project --> debug tab
1. Open Keil μ vision3 and open the project to be checked.
2. Open the Tools menu, select setup PC-lint..., and open the PC-Lint options window.
3. Click the four edit icons (new, delete, move up, move down) in the upper right corner to set PC-Lint include folders. Based on the C source
ProgramThe header file (. h) name in the file to locate the related folder (including the INC folder itself) in the "C:/Keil
Problem description:When using the Keil software, a similar error occurs: failed to execute 'd: Program Files \ Keil \ C51 \ bin \ c51.exe'Cause:Mostly becauseChanged the "initial installation directory" of Keil . If it is an installation version, this problem should not occur (to be confirmed); this problem is almost always caused by the use of a free installati
Because many of the old Code is compiled by ads1.2, this problem is common to all users.
There are a lot of handouts on the Internet, so I will not talk about the principles ~~
However, pay attention to the following points during the transplantation process to completely transplant the project.
Environment: Simplified Chinese XP Professional + SP3 + ADS 1.2 + Keil 3.5
1. Create a New root directory such as "D:/
example:
SWI 0x02; this command calls the system routine of the operating system number 02.
In the Keil MDK, the keyword _ SVC can generate the hardware SWI command so that the processor can respond to the software interrupt. The keyword _ SVC, which is described in the Keil MDK help file as follows:
The _ SVC keyword declares that the Super User calls the (SVC) function. This function uses up to four par
1. Replace C: \ Keil \ ARM \ STLink with the STLink file in the resource. Remember to back up the original file,
2. Change C: \ Keil \ TOOLS. INI to the following
[UV2]ORGANIZATION="cs2c"NAME="jianzhong", "cui"EMAIL="cjzswust@gmail.com"ARMSEL=1BOOK0=UV4\RELEASE_NOTES.HTM("uVision Release Notes")[ARM]PATH="C:\Keil\ARM"VERSION=4.60PATH1="C:\Program Files\arm-none-
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
Incorrect display of Chinese Punctuation Marks in keil 4
Select configuation in edit in keil and Change Encoding to Chinese GB2312 to solve the problem of copying Chinese characters!
Keil MDK 412 font problems Courier New font Chinese display is not normal, it is difficult to see which can solve the problem of extra points
Why are you doing this? How about set
Note Points for minimum system construction:1, will choose the relevant chip under the LIbrary to find2, the grounding symbol in the left terminal symbol below the search, self-modification VCC VDD3, the bus also on the left a row of blue symbol bus draw a small slash hold CTRL4, exclusion (Respack) usage is wrong, this is a problem, so we have to step by step with 470 resistor replacementJoint Commissioning: Specific steps1, need to download software Vdmagdi.exe software (for two software to co
Through the *.m51 file we can clearly see the use of SCM memory, as well as can see each variable including the location of local variables.Before encountering a problem, the same program, in small mode after compiling the operation is no problem, but in large mode can be compiled, but run an error. Finally look at the M51 file, found the problem, in a strict timing requirements of a place to declare a few local variables, some of the local variables are assigned to the data, some assigned to th
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
Lou Pig is used to download and debug Stm32 program, because JTAG is the D version (you understand), the official upgrade when the hands of the cheap upgrade, JTAG changed brick. Later found used for STM8 download debugging with the Stlink can also be used to debug Stm32, Lou Pig bought is more than 20 yuan Stlink,x Bao bought, claiming to be able to use the official firmware, so there is this article:First of all, the building pig with win 10 64, Keil
Notes:
(1) How do I disable Keil from initializing zero Ram?
1. Hook in Keil noinit
2.
Int test1 = 1;
_ Attribute _ (zero_init) int Test2;
Int test3 _ at (0x20001000 );
View Map Files
Test1 0x20000000 data 4 main. O (. Data)Test2 0x2000000c data 4 main. O (. BSS)Test3 0x20001000 data 4 main. O (. Arm. _ at_0x20001000)
(2) How can I determine whether it is a soft reset or a power-on reset for stm32?
Flag
Today, I wrote a 51 program. during compilation, Keil always prompts that a semicolon was lost, but I couldn't find out where the semicolon was lost. It took me one afternoon to solve the problem, share your experience here to prevent others from making the same mistake! The prompt message is:
Lcd12864.h (20): Error c129: Missing '; 'before' flag'
The u8 flag I defined in the lcd12864.c file is 0;
Make this statement in the lcd12864.h file: extern u8
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.