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
We can double-click the error and then automatically navigate to the error in the file stm32f10x.h where you can see the code:#if!defined (stm32f10x_ld) &&!defined (STM32F10X_LD_VL) &&!defined(STM32F10X_MD) &&!defined (STM32F10X_MD_VL) &&!defined
When you just took over STM32, you only write an int main () {while (1);} Build://program size:code=340 ro-data=252 rw-data=0 zi-data=1632 compiled, you will find that this program has used more than 1600 RAM, if the 51 SCM, the pain of death, Where
Q:
The role of the header file STM32F10X_SDIO.C.
Sometimes when adding a path, why not add src. In some projects, the role of each folder in a new project has been added.Core, Obj,stm32_fwlib (this is why the name changed when you added the group.) )
Do a project to write a small project, compile the title as shown by the error (L6236e:no section matches selector-no), Baidu on the internet, some people say that is the problem of startup files, so look at their own works, It's true: I'm using a
An in-depth understanding and application of C51 to standard Ansic is one of the keys to learning C51. Because most of the extension features are directed to the 8051 series CPU hardware. There are roughly 8 categories:
8051 storage type and
Do a project to write a small project, compile the error shown title (L6236e:no section matches selector-no section), Baidu on the internet a bit, some say is the issue of startup files, so look at their own projects, Yes: I'm using a medium-density
1. Hint unresolved EXTERNAL symbol symbol:? C
It is very likely that the corresponding code forgot to join the code group.
2, has been prompted me to repeat the definition of functions, search the Internet, it seems that only the variables of the
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)
put them under different folders, because the source files suffixed with. C will participate in compilation as long as they are added to the project, and must be added to the project. So here we will only summarize how to add several header file directories.
Method 1 add in the development environment of Keil:
1.
2.
3.
4.
5.
6.
7.
Note that the header file directory generated by the above system is:. \ dd
Eclipse+cdt+yagarto+j-li; Open source development environment setup and commissioning; Chongqing e-mail: [Email protected] ; Document version: V1.0; release date: 2014-08-04; This document is based on the LGPL protocol, which is published on the basis of open source, because of the small information on the online open source MCU and microcontroller development platform, it is because of the keiluvision development environment of ARM company. ; Because
The stm32 microprocessor is based on the ARM core, so many ARM-based embedded development environments can be used on the stm32 development platform. Development tools can be used for stm32 development. Selecting an appropriate development environment can speed up development and reduce development costs. This chapter briefly introduces the commonly used development tools Keil MDK and IAR ewarm of stm32, and then explains how to use resources on the s
. That is, the time delay is less than 20ms, our naked eye is not able to tell the light is flashing, it is possible to see the most is a small light bright and dark slightly changed a bit. To clearly see the light flashing, the value of the delay must be a little larger, to what extent, different brightness of the lamp is not exactly the same, we can do their own experiments.So how do you see how long it takes to delay? Everyone mouse point Keil proj
,// Route B to p1.7// Move to the following hc595{P1_4 = 0; // lower the p1.4 port,// Generates the shift pulse shclk
If (A Au)> 0) // false serial port p1.6, output 16 rows// Display dataP1_6 = 1;ElseP1_6 = 0;
If (B Au)> 0) // false serial port p1.7, output the next 16 lines// Display data BP1_7 = 1;ElseP1_7 = 0;
P1_4 = 1; // set the p1.4 port to a high value to generate a shift// Pulse shclkAu = au J ++;}J = 0;Au = 0x01;
Z ++;}K = 0;Z = 0;}P1 = (P1 0xf0) | I; // use p1.0 ~ P1.3 generates 4
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.