Although the. NET Micro Framework is easy to learn and use, it is difficult for some applications that require real-time and high performance. After all, the upper-layer applications of. NET Micro Framework are interpreted and executed by the lower-layer CLR (TinyCLR). It is inevitable that the execution efficiency will be discounted.
GHI (a major manufacturer of. NET Micro Framework hardware products outside China) provides a RLP solution (https://www.ghielectronics.com/docs/50/rlp-enhanced ).
// ================================================ ====================================// Title:// Error in MDK assignment// Author:// Norains// Date:// Friday 15-10000l-2011// Environment:// MDK 4.02// ================================================ ====================================
Before reading this bug, let's look at a very simple formula: 0x81 0x7f =? It is estimated that many people will know
Source: Keil MDK How to set a non-0 initialization variableSome industrial products, when the system reset (non-power-on reset), may require to hold the data in the pre-reset RAM, used to quickly restore the scene, or not due to the instantaneous reset of the field equipment restart. and Keil MDK by default, any form of reset resets the uninitialized variable data in the Ram area to zero. How to set a non-i
After work, I switched from a single-chip computer to an arm. At the beginning, I used the ads1.2 compiler for a while, because the old program I took over was compiled using ads, and most departments were using it. when learning SCM, we use the Keil C51 compiler. ads and this compiler cannot be compared in terms of ease of use. later, we gradually learned that Keil has been acquired by arm, and now Keil MDK has become an official arm compiler, so we
Keil MDK version: v4.03. For more information, see my other blog posts.
PC-Lint version: v8.0
There are many powerful functions of PC-lint on the Internet. I don't want to repeat them here. I just want to say: it can be tested by PC-lint.ProgramIt may not be a problem, but the quality improvement is self-evident when the PC-Lint test program is passed.
First, install the Keil MDK and PC-Lint sof
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 \
In the integrated development environment of realview MDK, debugging files in *. axf format and executable files in *. hex format can be generated by default. Although the files in these two formats are very helpful for downloading and debugging the ulink2 simulator, ADS users are more accustomed to using *. bin files, even some embedded software developers already have *. debugging or burning tools for Bin files. To fully utilize the existing tools a
I. On use_stdperiph_driver issues in STM32 MDK
Beginner STM32, when building a project using STM32 firmware library in RealView MDK environment, beginners may encounter problems with compilation. The following warning or error message appears:
Warning: #223-D: function "Assert_param" declared Implicitly;assert_param (Is_gpio_all_periph (Gpiox));
In this case, we need to add use_stdperiph_driver, STM32F10X_
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
Source: KEIL MDK View Code volume, Ram usage--ro-data, Rw-data, zi-data explanationKEIL RVMDK Post-compilation informationProgram size:code=86496 ro-data=9064 rw-data=1452 zi-data=16116Code is the amount of space that is consumed by the codes;Ro-data is the size of Read only read-only constant, such as const type;Rw-data is the size of the read-write variable that was initialized;Zi-data is the size of a read-write variable (Zero Initialize) that is n
Good mind than bad writing, for the convenience of viewing code and code reuse, here posted s3c2440 LCD control initialization code. Using the friendly MINI2440 Development Board, the LCD is 320*240 and the development environment is RealView MDK 4.22.The source code structure is simple and clear, the original project: Click to open the linkRegister macro Definition:#define RGPCCON (* (volatile unsigned long *) 0x56000020) #define Rgpcup (* (volatile
1, the initialization of global variables.2. Cases not found yet./*************************************************/First on connection file SCTLr_rom1 0x30000000 0x00010000 { ; Load Region size_region Er_rom1 0x30000000 0x00010000 { ; Load address = execution Address *.o (RESET, +first) * (inroot$ $Sections) . Any (+ro) } rw_ram1 0x30010000 0x02000000 { ; RW Data . Any (+RW +zi) } rw_iram1 0x40000000 0x00001000 { . Any (+RW +zi) }}1, the initialization of global varia
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 is void test (void), and then use the function pointer to call it:
Void (* userprogram) (); // function pointer
Userprogram = (void (*) (0x00002000); // locat
Note that it is not as easy as writing a pen. To make it easier to view code and reuse code again, we will post the S3C2440 UART driver code here. Use the friendly mini2440 Development Board and the development environment is realview MDK 4.22. In this Code, the initialization of gpio is completed in S3C2440. s and configured in the HTML method provided by Keil.
The source code structure is simple and clear. For the original project, click the open li
Generate a. Lib file for a single c file under the Keil realview MDK
Having struggled for a day, there was no clear question about the complete web page. Isn't it too simple for everyone to say? In most cases, the project is simply converted to. Lib. Under Project-> options for target-> output, select create library.
However, the generated lib file is huge. The final lib generated by the project I compile now has 2.6 MB.
Later I found inspiration (
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
gprs_send_buff[index++]=stdev.sn>>24+ (gprs_send_buff[4]%4);gprs_send_buff[index++]=stdev.sn>>16+ (gprs_send_buff[4]%4);gprs_send_buff[index++]=stdev.sn>>8+ (gprs_send_buff[4]%4);gprs_send_buff[index++]=stdev.sn+ (gprs_send_buff[4]%4);Out of the results always in my unexpected, tossing half an hour to find out, is the algorithm out of the question,Priority judgment exceeded unexpected.Before learning C language when not how to remember the priority, just remind yourself when programming can not
(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) "End": Moves the cursor to the end of the line(8) "Ctrl" + ">": the cursor shifts one word right from the current position(9) "Ctrl" + "() "Ctrl" + "Shift" + ">": Select a word to the right from the cursor's current position(one) "Ctrl" + "Shift" + "
1. design requirements
EM-STM3210E Development Board has a LED lamp D1, write a program to light up the light.
2. hardware circuit connection
On the Development Board, D1 is connected to the PF6 pin on the STM32F103ZE chip, as shown in.
3. Software Programming
According to the task requirements, the program content mainly includes:
1. configure Reset and clock control (RCC) to enable the clock of the GPIOF port Module
2. Configure the PF6 pin of the GPIOF port (50 MHz, push-pull output)
3. Call
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.