Keil software DownloadKeil Uvision4 and Registration machine http://www.liangchan.net/soft/softdown.asp?softid=5688Separate registration Machine http://www.newasp.net/soft/77176.htmlRegisteredKeil registry entry for the License Manager entry for the File menuCopy the CID number to the keygen, multiple generate several times, input window, must appear similar to ' Expires 2020 ' wordsSet up a project and debug to test if the registration is successful
Goal:On the stm32f429 disco Development Board, double-flashing LEDs are lit with freertos dual threads.Get ready:0. Stm32f429i-disco1. Keil ARMMDK 5.132. STM32CUBEMX 4.8Steps:1. Establishment of the projectKeil-project-new Project2. Save on the hard drive, give the project a name3. Save the ProjectAt the same time, the device selection interface is ejected, select STM32F429ZITX4. Above the interface point OK after the run environment Configuration int
Source: Keil c51 internal RAM (idata) dynamic memory management ProgramThe procedure is relatively simple, but the feeling is more interesting, the individual thinks has the certain application value, hoped everybody has the better thought and the method, promotes mutually.The basic idea of the program is that in the Ram area above the CPU stack pointer sp, by moving the stack pointer sp up to a few bytes, the vacated Ram area is available to the user
Today, Proteus and Keil uversion3 are online successfully.Program, Drew a simple circuit on Proteus and ran it to see the effect. Indulge in it ~
Below are the programs I wrote in Keil.
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> # Include Reg52.h > # Include Intrins. h > # Define Uint unsigned int # Define Uchar unsigned
In actual projects, the Internal flash space of the chip is often insufficient, which requires the program to be installed into the external flash.
In order to avoid detours, I would like to share some of my problems and lessons with you.
For your reference only. If you have any errors, please correct them. Thank you in advance!
Reprinted please indicate the source: blog.csdn.net/waitig1992
Introduction to hardware environment
The chip is lpc1788, and the External Flash is sst39vf1601 (norf
Use the Keil development environment to develop the release L discovery. After firmware is updated, the target board cannot be connected. The error "Internal Command error flash download failed target dll has been can" is returned. Finally, update Keil to 4.60.During use, when the target board chip is in sleep state, the internal command error flash download failed target dll has been can error will also oc
Keil upgrade to 4.72 version, Jlink began to prompt firmware upgrade, is very irritable, but look on the internet can be said to replace the previous version of the Segger file to Keil the latest version of the Segger file, it can be used, I tried the next, it really works ha, below to share the operation process.
Save the previous 4.6 version of the Segger file, the version using Jlink no problem, Keil6.0
Recent contact with the arm chip, learning conditions from the hardware and software are not available. It's hard to wait for the company to solve the problem, in which I basically give up the last fantasy of the company. I think that if you want to master what skills or to contact a little more interesting things, still have to test themselves to invest, efforts. Often, a similar learning infrastructure can be solved on Taobao.
Bought the development Board, and found the
This is an external interrupt in the Keil MDK environment.ProgramIt is really convenient to use H-JTAG and MDK for debugging because Keil is used and ADS is not used. This program is just a large framework.
irq_handler proc export irq_handler [Weak] sub LR, LR, #4; Save the return address analytic dB SP !, {R0-R12, LR}; save site LDR r0, = effecffset; Determine the interrupt source LDR r0, [R0] L
It is annoying to install the system each time. The biggest thing is to install a lot of software. Today, I installed all the software again. In the face of Keil, the software that seems not very difficult to install, there was a small problem after the installation, and finally it was solved. Write it out today to prevent you from forgetting it later.
1. Click Install.
2. The installation page appears. click Next.
Completion phase:
Click Ne
After some analysis, Kung fu is not a conscientious, find Global.prop This file, this file is used to save users on the Keil interface and font information such as parameters, If you want to save or share beautiful settings , you can just replace the file. Don't talk nonsense directly The global replica is a backup of the original configurationThis is my configuration, like can save the following code, replace the original global (original directly
Keil upgrade to 4.72 version, Jlink began to prompt firmware upgrade, is very irritable, but look on the internet can be said to replace the previous version of the Segger file to Keil the latest version of the Segger file, it can be used, I tried the next, it really works ha, below to share the operation process.Save the previous 4.6 version of the Segger file, the version using Jlink no problem, Keil6.0 i
Keil program in the basic steps of internal RAM debugging online has been very much, I will not repeat, we can search the Internet very much.But sometimes the internal ram is not enough, this need to load the program into the external Ram debugging, and in this process may have a variety of problems, here I will have some of the problems I have encountered and the need to pay attention to the place to summarize, I hope to be helpful to everyone.The wr
http://blog.csdn.net/men_wen/article/details/52694069The first one:Small experiment of array pointersPassing parameters with pointersResults:The second one:Array pointer experimentDefine a pointer he points to an arrayReplace the parameter passing part of the test function above with thisAfter the change.The input part of the argument will be an errorAddress symbols must be added Third KindFormal parameters: Define an array with pointers all insideThe surest way to pass array parameters under
Keil STM32 C + + mixed programming Essentials
1. The filename must be. CPP and. h2. In the. h file, add the following code:
#ifndef __ledtask_h
#define __LEDTASK_H
#ifdef __cplusplus
extern "C" {
#endif
#include " Stm32_led.h "
void Led1_task (void *pdata);
#ifdef __cplusplus
}
#endif
#endif
3. When calling resources in a. cpp file (such as classes, functions, etc.), that file must also be a. cpp file. Programs in the. cpp file that can in
Keil always appears "File has been changed outside the editor, reload?" Hint, when using Keil sometimes do not know something wrong, always will appear this hint, in fact, this is not a bug knowledge you opened the corresponding **.map file, resulting in each time you compile the file after the file will change, resulting in this hint.
The workaround is to close the map file of the corresponding project fi
The ARM application code needs to load a startup program code before it runs, and the following is an example of the s3c2440 startup code that analyzes the arm's stack settings. If we directly use the Keil in the boot code, maybe sometimes we will smooth through the compilation, and then run, but, sometimes we write code can not be successfully compiled, and our desire to violate. All we have to do at this point is modify our startup code to fit our r
Recently found that the project warning a bit more, good dozens of, a look at the majority of this:
Warning: #1-D: Last line of file ends without a newline
warning: #550-d: Variable "XX" is set but never used
The first my file at the end of a blank line, but it also error, do not know what the reason.Second, some register zeroing action is cleared by reading the value of the register, I define a local variable, then Keil said I defined the usele
1.xdata means that this is the data in an external RAM address, and the data will eventually be saved to an address cell in the external RAM;However, external RAM can only be accessed through register indirection, that is, its address needs to be stored in internal RAM (in fact, perhaps SFR, 8-bit addresses are generally R0, r1,16 addresses are generally dptr)Here, the content stored in the dptr is equivalent to pointers to external RAM units ... So, a pointer to an internal data type, and an ex
1. The process of the new project is unchanged, the selection of the chip, but in the new file is the. asm suffix2. Once the assembler is complete, place it in a folder and then right-click on the project to generate the hex file3. Then press the Debug button4. Step Execution (step button), you can see the changes on the right side of the PSW,R0-R7,A,B,PC, you can choose the Memory tab in the lower right corner, enter the storage space you want to see in address, you can see the changes in the c
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service