"Reference url" http://www.openedv.com/posts/list/600.htm
1. Use. bat (Batch) file can be used to delete Keil compiled generated useless files, reduce the volume of the project disk, easy to talk about the project to the collaborators.
2. The unused file storage directory compiled by the program has been set to the Obj folder. When compiled, you will find that there are several files in the obj directory, about 100 files, occupying space will be nea
After the project is successfully compiled in Keil, the following message is printed in the Bulid ouput window below:Program size:code=6320 ro-data=4864 rw-data=44 zi-data=1636The meaning of the representative:Code: The size of the bytes in the programRo-data: Instruction and constant size defined in the program (Personal understanding: Read only)Rw-data: The variable size initialized in the program (Personal Understanding ": read/write)Zi-data: Unini
STM32 Keil Software Setup program write start address selection
STM32 Series MCU, here take CORTEX-M4 as an example, when we debug online, we usually set the program to write the start address and size. This size is typically 0x08000000, which is the mapping address of the internal flash. But some products start from 0x08020000, which is why. is because in the 0x08000000-0x08020000 this space is the boot program, that is, the boot program is stored f
Problem: Using a computer to send data through the serial port to the SCM, not continuously sent or every time the data is not too large SCM can be normal to receive, but the continuous sending a large number of data can not work correctly, to
Add the following code that can be implemented in a GNUC way #ifdef __gnuc__/* with gcc/raisonance, small printf (option LD linker->libraries->small printf Set to ' Yes ') calls __io_putchar () */#define PUTCHAR_PROTOTYPE int __io_putchar (int ch)
This article draws from http://blog.ednchina.com/likee/25421/category.aspx
We usually say that Keil's pure software simulation function is extremely powerful. to which extent is it powerful? In short, it can simulate almost all internal
ArticleDirectory
Question
Answer
More information
See also
Forum threads
1. How to embed Assembly commands in C language:
Reprinted from: http://www.keil.com/support/docs/2308.htm C51: Getting inline assembly to work
In KeilCompileAfter the project is successful, the following bulid ouput window willOutputThe following is a piece of information:Program size: code = 6320 ro-Data = 4864 RW-Data = 44 Zi-Data = 1636Meaning:Code: YesProgramMediumCodeByte sizeRo-data:
(1) "F7": Compiling(2) "F9": Add/Cancel Breakpoint(3) "Ctrl" + "F5": Debug(4) "tab": Move selected content to the right(5) "Shift" + "tab": Move the selected content to the left of the whole(6) "Home": Move the cursor to the beginning of the line(7)
The commonly used debugging methods in single-chip microcomputer debugging include printf and simulation. printf is flexible but not easy to use.ProgramWill die badly;
A simple example:
Main Program Main. c
The key initialization is called
1. Define several variables to store the number of bytes of each data type.
# Include
Unsigned char a, B, c, d, e, f, g;
Main ()
{
A = sizeof (char );
B = sizeof (short INT );
C = sizeof (INT );
D = sizeof (long );
E = sizeof
In MDK configuration Stm32 project is a very troublesome thing, so directly apply engineering template, reduce the time spent. (here with Wildfire's M3 engineering template)
The configuration of a template is based on a relative path, so the
Problem descriptionKeil V4.72 upgrade to V5.1x, the original compiled through the project, the following error occurred:
. \libraries\cmsis\cm3\devicesupport\st\stm32f10x\stm32f10x.h (298): Error: #67: expected a "}
Cause analysisKeil V4.72
The composition of the ARM programThe "arm program" here refers to the program being executed in the arm system, not the bin image (image) file that is stored in the ROM, which is a clear note of the difference.An arm program consists of 3 parts: Ro,
Previously, I listed the function declaration in the function declaration as follows:
Void display_normal ();Void display_reset ()Void display_year ();Void display_month ();Void display_day ();Void display_week ();Void display_hour ();Void display_
Use MDK for programming. If you have defined a useful function but no explicit call is made, MDK uses the entire function in the default mode.ProgramAlways Delete to save Rom.
For example, if you locate a function in 0x00002000 of Rom, assume it
How to debug on KeilProgramHow to estimate the size of the RAM used by the program.
Many problems that need to be considered when porting the system to a single-chip microcomputer, such as re-entry, stack allocation, external storage usage, and
Today, I first used the stm32 template to create a project or something. In short, there are a lot of header files. You all know those who have experienced it. If you haven't experienced it, mark this method. It will certainly be useful in the
[This article is original and copyrighted. If you need to reprint it, please indicate the source !]
Next, I will talk about the responses of ARM7 to common interruptions. Let's talk about the response to the rapid interruption.
Step 1:Basic
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.