keil microcontroller

Discover keil microcontroller, include the articles, news, trends, analysis and practical advice about keil microcontroller on alibabacloud.com

About the construction of Keil environment

Recently in doing STM32F4 test development, use to keil,mdk512,mdk514,mdk520 ... Uh, uh, all kinds of entanglements, okay, it's all sorted out, share your experience here.Start Download installation package next-> All the way, no need to modify anything.In the configuration of the appropriate hardware pack package, the different MDK version of the pack package may be installed after the error, you should note. Generally MDK5.12 corresponds to 2.7.0 Th

Use Keil to build engineering and burn to 89C52 board

began to learn C51, do not know how long to persist, before learning a period of time, after learning P1 mouth did not learn, before learning all forget.1. Use Keil to build the project: Open Keil4. Load c file into the projectthen expand "Source Group1" and you'll seelesson2_1.c loaded in, write a little code in, light the first LED light.1 #include 2 sbit p1_1 = p1^0; 3 void Main () 4 {5 0 ; 6 while (1); 7 },

About porting a project on Keil to IAR

I tried to port the STM Keil project to IAR several times. Fortunately, all of them succeeded. Here I will write down the notes during the porting process... The first step is to first create a project folder PWM, and then create several subfolders in the folder: User, Inc, and startup. Of course, we have to copy the official library directory of STM, so there are four folders under the project directory (in fact, creating a few folders is random, jus

Use "Ul" to avoid overflow errors of Keil C51 large Integer constants

Keil C51 is a compiler compatible with ansi c. The ansi c Specification specifies that the default data types of decimal Integer constants are int, long int, and unsigned long Int, which of the given constants depends on the actual size of the constant. If the constant is between-32768 and ~ Between 32767 and are processed by the int type. If the processing by the int type overflows, consider the long Int or larger data type unsigned long Int. In shor

How Keil C reduces the size of code compilation

Label: Style Color Io use AR for strong data spHow to Reduce the code compilation size of Keil-C: (reduce by optimizing the code) 1.1 perform less multiplication and division operations, and use left/right shift to realize multiplication and division Eg, common: a = 0x80*4; Optimization: a = 0x80 1.2 use the short type instead of the long type without affecting the operation Eg, common: int; Optimized: Char; 1.3 Use unsigned data whenever possible Eg

Putchar in Keil C, take 8051 as an instance, putcharkeil

Putchar in Keil C, take 8051 as an instance, putcharkeilIn Keil C, it is necessary to implement char putchar (char c), or the powerful function printf wocould not work.We shoshould notice in here: new line command for serial output be "\ r \ n" (line feed: LF, 0x0a + carriage return: CR, 0x0d ), not only "\ n" in Keil C.I do not want to write too much tedious wor

Debug configuration of SDRAM in Keil + jlink + small2440

I installed analyticdb in windows. It was a headache. I had to use it in compatibility mode. Even if this happens, there is a problem with jlink. I had no choice but to give up ads, but I had a lot of materials to develop with ads. Finally, I tried to use Keil and searched the internet for the information. I found that some people did the same thing. So I tried to find out what they did, but it was not a success. Finally, I had to wait for a while to

Debug one of at91sam7x256 using Keil and jlink

Follow the Keil for ARM tutorial to create a project, write the main function, and operate gpio,ProgramThere is no problem with compilation after writing, "At91sam7x. axf"-0 error (s), 0 warning (s ). Set debug to jlink. When the program is downloaded to flash, The following error is prompted when the out window of Keil is displayed: No algorithm found for: 00100000 H-001004e7h. Very depressing. Why not

Linux installation Run Keil uvision 4 (MDK v4.7) __linux

The Keil uvision (MDK v4.7) was run on Ubuntu 12.04LTS a few days ago. The process is also smooth, sharing the next steps to the needs of friends. A screenshot of the previous installation (I'm using the old-fashioned Gnome classic interface) to see Keil uVision4 in the Wine menu. In fact, using wine (HTTP://BAIKE.BAIDU.COM/LINK?URL=8TJGR-T30E9PQ-H4MOY_55BL__W8HDLNIKYPZD9M8G7WYFTIJL-S3S4LIGGBA_MJ) to ins

Cross-Compilation of assembly and C language in the Keil C51 Environment

/lib/c51s. Lib(If yesSmallMode) copy the file to the project directory The5Step: Add a library fileC51s. LibFile to project, right-click'SourceGroup 1', Select'Add files to group...', Select under the project directoryC51s. Lib, Click to open (Because3Step. If no library file is added here, compileHEXThe file cannot be correctly executed by the microcontroller, and a warning will appear during compilation: Warning L1: unresolved external symbol

Fixed repeated variable definitions when multiple files are created in Keil

Fixed repeated variable definitions when multiple files are created in Keil Extern is used in many places in the C/C ++ language. However, if you do not really understand its meaning, it will bring a lot of trouble to programming, let's explain it in detail. For small programs, there is usually only one C file and one head file. We usually define global variables directly in the C file and add int I Definitions before the program. If you want to de

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 \ r \ n", sizeof (INT); 10 printf ("unsigned INT: % d \ r \ n ", sizeof (unsigned INT); 11 pri

Multi-engineering multi-objective of Keil

51655502Https://mp.weixin.qq.com/s/CSUa4zegzz8JWr0dtaaqQAThe relationship between a space, a project, a goal:Multiple projects under one workspace (different MCU for Master and slave), with multiple versions (simple and complex) based on different software configurations per projectBuilding a multi-project under the workspace: a project (project file extension) is first added to a multi-project space for unified management. Commissioning requires setting up a project for the active project.Set m

Test of Keil C51 xdata base address partial addressing

Keil C51 xdata base address partial addressing test [transfer] (22:18:31) ReprintedBytes Tags:C51 base address it Category: Software Technology Http://blog.sina.com.cn/s/blog_44153f8f0100eqsj.html I recently used keilc51 to create a program. I want to use an external data storage device and address other external chips. because I want to use continuous read/write of external data, I did a little research on xdata. I,The first method

Keil uvision4 bytes occupied by various data types

View the number of bytes occupied by the Keil MDK-ARM for various data types 1. Define several variables to store the number of bytes of each data type. 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 (long INT ); F = sizeof (float ); G = sizeof (double ); While (1 ); } 2. view the storage address of each variable. View --- symbols window. 3. view the sto

Solutions to common warnings and error messages of the Keil C Compiler

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 externally, so it cannot be called by other functi

Keil software simulation *** error65: accessviolationat0x0000000C: n

1. put keilkill. put the bat file under the same path as the Project, and double-click keilkill. bat can delete the intermediate files generated by compilation, and then re-compile the files to avoid xxx. _ I class error. Keilkill. bat file 2. The simulation displays *** error65: accessviolationat0x0000000C: noreadpermissi 1. put keilkill. put the bat file under the same path as the Project, and double-click keilkill. bat can delete the intermediate files generated by compilation, and then re-c

Do stm32 software simulation in Keil, view output PWM waveform, specify IO port signal in Logic Analyzer, "Unknow signal" appears

Article Source Address: http://blog.sina.com.cn/s/blog_dc9244010102vtn1.htmlRecently in the study of STM32 PWM output, because the hands do not have an oscilloscope, so in accordance with the Wildfire tutorial using software simulation, using MDK5 Logic Analyzer to observe the waveform, the front all the way smoothly, in the logic Analyzer to open the Add Signal, the problem occurred--unknown signal! The signal cannot be added in. In the Baidu Library to see a MDK460 related problems of the solu

The role of Startup.a51 in Keil C "turn"

change it? So to speak: at any time, you don't need to change startup.a51, if you understand its characteristics. Below is a detailed explanation: 1. Label Idatalen equ 80h ; The length of IDATA memory in bytes. Here Idatalen is just a label, and IDATA is not the same thing! If you want to, this procedure in the idatalen you can change to dog ah, pig ah, playboy ah these markings (in fact, my ideal is the life of pigs, not worry about eating and drinking, carefree, but can not do), The above s

Understanding of target configuration and scatter files in Keil

The target configuration diagram for the options for target and the scatter file for the project file.When we modify the address in read/only memory areas and read/write memory areas in target, the address in the scatter file is automatically changed after compiling the project file.To observe the relationship between the two, it is not difficult to find that the starting address and size in the read/only memory areas correspond to the load address of the image file in the scatter file and the s

Total Pages: 15 1 .... 7 8 9 10 11 .... 15 Go to: Go

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.