say, all address spaces can be accessed through two-byte dptr.The tt120 chip does not have an MMU device, but it supports a 24-bit addressing mode, that is, "24-bit contiguous addressing mode". Sorry, I don't know how to translate "contiguous. The 24-bit addressing mode can address 16 m space, while tt120 only has K flash space, so you can access all the space without using the MMU device, in addition, it is a bit "small-sized", and there will be more room for use in the future for larger-capac
If Keil arm is used, vpbdiv = 0x00000000 is automatically generated in startup. S, which leads to fpclk dividing by 4. The baud rate is reduced by four times. The default value of startup. s in Keil is as follows .; // ; // ; // ; // ; // ; // ; // ; // ; // ; // ; // Vpbdiv_setup equ 0vpbdiv_val equ 0x00000000 we will change it:
Vpbdiv_setup equ 1
Vpbdiv_val equ 0x00000001
Solve the problem.
# Include
.
Printf is optimized in the integrated development environment Keil, and the following variants are available:
Int _ printf (const char * format ,...);Int _ fprintf (File * stream, const char * format ,...);Int _ sprintf (char * STR, const char * format ,...);Int _ snprintf (char * STR, size_t size, const char * format ,...);Int _ vprintf (const char * format, va_list AP );Int _ vfprintf (File * stream, const char * format, va_list AP );Int _ vspr
In the past two days, I have tried to build the stm32 development environment of eclipse + GNU arm Eclipse plug-in + sourcery g ++ Lite Edition for ARM + opencd + jlink, I also use Keil very well, mainly because I recently worked on a project to make it impossible to use a commercial environment. I searched almost all the information on the Internet and found that there was very little information. I sorted out some of my accumulated information and h
expert user (s) provides the team witha place to deploy and test the frequent deliveriesRapid feedback on the quality of their finished productrapid feedback on their design decisionsUp-to-date requirementsResearchers Keil and Carmel published results showing how critical it was to has direct links to expert users (Keil 1995).Surveying managers who had worked both with and without easy access to real users
used, conditional compilation is used instead of the IF statement, which helps reduce the length of the compiled code and makes it less useful to use judgments without judgment statements.
6. Expression typeWhere the precedence order of the various operations in an expression is not clear or confusing, the parentheses should explicitly specify their order of precedence. An expression can not be written too complex, if the expression is too complex, after a long time, they are not easy to read,
When Keil software compiles, there is always a problem:Warning: #1-D: lastline of file ends without a newline. As shown in the following illustration:
Baidu under the outcome of the method is
Move the cursor to the last line of code that prompts the alarm (the line that has the code) and then hold down the DEL key until you are sure there is no return line, and the last carriage return or more.However, my compiler will still report the same er
space removal but without grouping of small t-commands
Css
Css
CSS compressionParses and removes redundant information:replaces multiple spaces with a single space removes line-termination cr-lf Char Acters replaces tab characters with spaces removes "/*" and "//" style comments removes redundant spaces inserted in the 1 St Step removes spaces nearby a delimiter::; {}
No optimization
Js
Js
JS compressionParses and removes redundant information:replace
In the 51 MCU C programming, in order to improve the portability of the program, it is necessary to use the name of the portable variable type alias programming. Save the following to the include directory of the programming software and save it in order to mytype.h the file. If you are using Keil, this directory may be: Keil\c51\inc
#ifndef _mytype_
#define _mytype_
typedef unsigned int uint16;
typedef
platform. such as Keil Software, compiled on the Keil, but run on a microcontroller, typical cross-compilation. Before compiling the embedded operating system kernel and applications, you must install the cross-compilation tool first.Click to download[Edit] Open terminal to Ubuntu OS, select Applications (APP), Accessories (attachment), Terminal (terminal). The shell terminal interface looks like this.File
Contact SCM has a few years of time, has been focused on how to write some applications on a single chip microcomputer, how to start the knowledge of little, ashamed ashamed ... Today, I have to tidy up a bit, deepen the understanding of the SCM, such as why the definition of the data area of the variable restart the initial value of 0.
When the MCU is powered on, it will execute startup. The instructions for the A51 file, I analyzed the instructions in this file in a project where I did the fol
Many software, such as EditPlus, after generating some type of file, it will automatically generate its backup files, if you do not want to back up the file, you can open the menu bar tool-> parameters to select the-> file, the "Save automatically create backup file" before the check off on the line, Other software such as CAD, Keil and other software can also cancel the default backup file through the relevant settings
the meaning of bak file
Many
too complex, after a long time, they are not easy to read, not conducive to future maintenance.
7. functionFor a function in a program, the type of the function should be described before it is used, and the description of the function type must ensure that it is consistent with the type of function originally defined, with a "void" description for functions with no parameters and no return value type. If you need to shorten the length of your code, you can define some of the common program se
Comparison between Openjtag and Jlink:
Same point: Both USB to JTAG, USB to serial port function
Difference:
1. Operating system:
Openjtag can be used in Windows, Linux;
Jlink can only be used under Windows, under Linux its debugging function can not be used, can only use "JLINK+USB to serial 2 in 1" in the USB to serial port function
2. Integrated development Environment:
Openjtag can be used on all tools that support the GDB debug protocol, such as IAR, Eclipse, winarm, and cannot be use
Sep readme.txt
drwx------ 4 pi pi 4096 Sep 04:17 Source
Demo: Demo RoutinesLicense: Licensing InformationSource: Real-time kernel file
# ls-l freertos/source/Total
352
-rwx------ 1 pi pi 15771 may croutine.c
- rwx------ 1 pi pi 26251 event_groups.c
drwx------ 2 pi pi 4096 Sep 04:17 Inc Lude
-rwx------ 1 pi pi 10993 may list.c
drwx------pi pi 4096 Sep 04:17 Porta ble
-rwx------ 1 pi pi 83729 queue.c
-rwx------ 1 pi pi 822 Sep Readme.txt
-rwx------ 1 pi pi 157816 may
openjtag+eclipse 3.5+gdb+mini2440 Graphic Tutorial comparison between Openjtag and Jlink:Same point: Both USB to JTAG, USB to serial port functionDifference:1. Operating system:Openjtag can be used in Windows, Linux;Jlink can only be used under Windows, under Linux its debugging function can not be used, can only use "JLINK+USB to serial 2 in 1" in the USB to serial port function2. Integrated development Environment:Openjtag can be used on all tools that support the GDB debug protocol, such as I
;Int u32value3;} Asamplestructor;
In the preceding example, the size value is 13, indicating that the total length of the structure is 13 bytes after the 1-byte alignment. After the _ packed alignment is removed, it is 16 bytes.
Five alignment-related definitions that can run in a VC environment or an arm (Keil) environment at any time
We often take the code on the embedded platform to the PC environment for testing. The difference in the environm
Results of the selected data segments overlap, resulting in confusion. Simply put, a digital tube shows the overlapping effect of the characters to be displayed in the previous position and the characters to be displayed. To avoid "drag-and-drop", you must disable each digital tube after it is displayed. What can we add? "P2 = 0xff;", so that all digital tubes will not be selected, and the next digit will not be affected when it is displayed again. This is called "Shadow elimination ". Let's ch
Overview:
Yesterday, Keil, the firmware development environment, was basically completed, and the INC and Lib provided by suite 3.4.7 were added using the c file of the random firmware program ccd1, the Hex file is slightly smaller than the Hex file attached to ccd1. (Not fit: The old fx2regs. the hfile does not define every bit of the port ABCD (E cannot be accessed by bit), so the txmaster of ccd1. the beginning of the C file is defined in the form
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.