Solutions to Common Warnings and Error Messages of KEIL C Compiler

Publisher:HarmonySpiritLatest update time:2016-12-14 Source: eefocusKeywords:Keil Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

If the memory type is not specified for the function's independent variables, local variables, and global variable declarations, the memory mode will become the default memory type. If
the variable of the memory type is specified, the memory mode will be ignored and the specified memory type will be the main one.
    
SMALL mode:
    All variables, local variables, or global variables in the small mode are specified to exist in the address range of 0-0x7F of the internal RAM. This mode is like
defining all variables as data type memory.
    
COMPACT mode:
    All variables in the compressed mode will be assigned to the external data memory with an address range of 0-0xFF. This mode is like defining all variables
as pdata type memory.
    
LARGE mode:
    All variables in the large mode will be assigned to the external data memory with an address range of 0-0xFFFF. This mode is like defining all variables
as xdata type memory.

Re: Bank Switch cannot compile message

 

[QUOTE]The original poster is Vic 

1.*** WARNING L15: MULTIPLE CALL TO SEGMENT 
SEGMENT: ?PR?SD_INITIALIZE?DRVSD 
CALLER1: ?C_C51STARTU
CALLER2: ?PR?TIMER0_ISR?INTERRUPT 


This means that the SD_INITIALIZE function is 
called by C_C51STARTUP and the interrupt service function TIMER0_ISR. 
What problems will this cause?  If the TIMER0_ISR interrupt occurs when SD_INITIALIZE is called, there will be a reentrant problem if SD_INITIALIZE 
is called again  . Keil C51 The local variables of general functions are placed in the same place, so they cannot be  reentrant. If the program guarantees that such a situation will not occur (for example, disable interrupt before calling  ), you can ignore this warning.  2.*** ERROR L107: ADDRESS SPACE OVERFLOW  SPACE: XDATA  SEGMENT: ?XD?DRVMS  LENGTH: 0515H  XDATA is used too much! Lose weight!  3.*** WARNING L17: INTERRUPT FUNCTION IN BANKS NOT ALLOWED  SYMBOL: INT0_ISR  SPACE: BANK0  cannot put interrupt function in bank area  4.*** WARNING L4: DATA SPACE MEMORY OVERLAP  FROM: 003FH  TO: 0050H  Some data areas are shared by two devices  5.*** ERROR L105: PUBLIC REFERS TO IGNORED SEGMENT  SYMBOL: MEM_POOL  SEGMENT: ?XD?MTM808  6.*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL  SYMBOL: SYSTEM_MODE  MODULE: .\debug\mtm808.obj (MTM808)  ADDRESS: 3A7CH  7.*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL  SYMBOL: ADPCM_STATE  MODULE: .\debug\SystemManager.obj (SYSTEMMANAGER)  ADDRESS: 358FH  references an unusable memory segment (may be caused by the previous over fllow error)  13.*** WARNING L1: UNRESOLVED EXTERNAL SYMBOL  SYMBOL: DATEI  MODULE: .\mtm809.LIB (CMDIF)  The entity of the external symbol cannot be found, so it cannot be linked

















































Keywords:Keil Reference address:Solutions to Common Warnings and Error Messages of KEIL C Compiler

Previous article:WARNING 15 (MULTIPLE CALL TO SEGMENT)
Next article:C compiler error message Chinese translation

Recommended ReadingLatest update time:2024-11-16 19:45

Support and code generation for dual data pointers in Keil C51 in 8051 architecture
In the 8051 system, the data pointer DPTR is a special 16-bit register used to address the 64 KB XDATA or CODE space. It is usually used as a 16-bit pointer to a constant table. Dual data pointers can improve the performance when two 16-bit pointers are used at the same time. As an enhanced feature, many 8051 derivativ
[Microcontroller]
Support and code generation for dual data pointers in Keil C51 in 8051 architecture
Use of keil: Create a new Project
Create a new project--- New folder----- Put the new project in your own folder------ Select the development board------ Add the driver file of the development board- --- main function   The project grouping is basically as shown in the figure. S3C2440.S is the bare board driver of the 2440 board. It helps us initial
[Microcontroller]
Use of keil: Create a new Project
How to add STC model in Keil C
        The STC series of MCUs are designed and produced by Hongjing Technology, a local company in mainland China. Due to its low price and high cost performance, STC MCUs have been favored by many beginners and intermediate learners and MCU learning board developers. Among MCU learning boards, STC MCUs occupy a certa
[Microcontroller]
Keil debugging method in actual project development
1. In the debugging state of Keilc, how to observe the operating status of each on-chip peripheral? How to modify their settings? ​   In the debugging state, click on different peripheral option commands under the Peripherals menu to display or hide the observation window of the corresponding peripheral.    
[Microcontroller]
ARM9 Learning 1-Installation and Use of Keil uVision 4.14
1. Assembly language preparation ----- Installation of editor RealView MDK Keil uVision 4.14 1. First, double-click the welcome interface of Keil u Vision 4.14 2. After next, the interface for accepting the installation is displayed. 3. After next, the custom installation directory interface 4. After ne
[Microcontroller]
ARM9 Learning 1-Installation and Use of Keil uVision 4.14
Keil's software simulation and hardware simulation
1. Software Simulation     Keil has a powerful software simulation function. Through software simulation, many problems that will occur can be discovered. Keil simulation can view many hardware-related registers. By observing the changes in these register values, you can know whether the code is running normally. Th
[Microcontroller]
Keil's software simulation and hardware simulation
Keil C51 interrupt program rules
The interrupt function attribute when included in a declaration specifies that the function is an interrupt function. For example, unsigned int interruptcnt; unsigned char second; void timer0 (void) interrupt 1 using 2  {     if (++interruptcnt == 4000) { /* count to 4000 */     second++; /* second counter */      in
[Microcontroller]
The keil5 project generated by stm32cube crashes when adding a group
Through trial and error, we found a method that can be used: Right-click on New Group and select Manage Progect Item... You can modify the group name and add items.
[Microcontroller]
The keil5 project generated by stm32cube crashes when adding a group
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号