This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Improper Fixup problem

I am using Keil version 7.07 and Microcontroller C8051F340. My whole code is in C-language and only the serial receiving function is in assembly language. I was using only UART1 and till then it was working fine, but now I changed the code for UART1 and UART0 both and want to receive different data from both. Now the error coming is "IMPROPER FIXUP" in both serialISR0 and serialISR1 functions. Even the compiler is not giving error, the linker is generating this error. All the variables are properly defined.

Please Help!

Regards
M. Maaz Qazi

Parents
  • I ALSO DO HAVE SAME PROBLME BUT CODE MAIN SAYING FIXUP ERROR

    I CHANGE CODE AND FIXUOP ERROR CHANGE TO DATA ERROR

    MALLOC RETURN NUL?

    PLZ TELL ME HELP IS WHAT CODE

    SINSERLY
    RS

    
    #include <stdlib.h>
    #include <stdio.h>
    #include <conio.h>
    #include <string.h>
    #include <graph.h>
    #include <pgchart.h>
    #include <8051.h>
    
    /* Structures for system configuration and chart environment. */
    struct videoconfig vc;
    chartenv ce;
    
    /* Category variables.  */
    short cCat;
    char _far *aCat[MAXVALUES];
    
    /* Series variables.  */
    short cSeries;
    short _far acSeries[MAXSERIES];
    char _far *aSeriesName[MAXSERIES];
    
    /* Temporary holding array for all data. Data values for multi-series
     * bar, column, and line charts remain here. Data for other kinds of
     * charts are transferred to the arrays below.
     */
    float _far aValue[MAXSERIES][MAXVALUES];
    
    /* Data values for single-series charts. First array is used for
     * bar, column, line, and pie. First and second are both used for
     * single-series scatter.
     */
    float _far axValue[MAXVALUES];
    float _far ayValue[MAXVALUES];
    
    /* Data values for multi-series scatter charts.  */
    float _far axValueMS[MAXVALUES][MAXVALUES];
    float _far ayValueMS[MAXVALUES][MAXVALUES];
    
    /* Exploded flags for pie chart.  */
    short _far aExplode[MAXVALUES];
    
    /* Variable used to track control and screen position.  */
    struct SCREENINFO si;
    
    /* Colors of menus and prompts. */
    struct tagColor co;
    
    /* Sample data.  */
    #define O_JUICE 0
    #define I_TEA   1
    #define H_CHOC  2
    #define TEMPERATURE  3
    
    char _far *aQuarters[] =
        { "First", "Second", "Third", "Fourth" };
    
    char _far *aMonths[] =
        { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
          "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
    
    char _far *aSalesTitles[] =
        { "Orange Juice Sales", "Iced Tea Sales", "Hot Chocolate Sales" };
    
    char *TempTitle = "Average Temperature";
    
    int main()
    {
        Initialize();
        MainMenu();
    
        /* Reset the video mode and screen colors prior to leaving. */
        _setvideomode( _DEFAULTMODE );
        _settextcolor( co.InfoColor );
        _clearscreen( _GCLEARSCREEN );
    
        return 0;
    }
    
    
    

Reply
  • I ALSO DO HAVE SAME PROBLME BUT CODE MAIN SAYING FIXUP ERROR

    I CHANGE CODE AND FIXUOP ERROR CHANGE TO DATA ERROR

    MALLOC RETURN NUL?

    PLZ TELL ME HELP IS WHAT CODE

    SINSERLY
    RS

    
    #include <stdlib.h>
    #include <stdio.h>
    #include <conio.h>
    #include <string.h>
    #include <graph.h>
    #include <pgchart.h>
    #include <8051.h>
    
    /* Structures for system configuration and chart environment. */
    struct videoconfig vc;
    chartenv ce;
    
    /* Category variables.  */
    short cCat;
    char _far *aCat[MAXVALUES];
    
    /* Series variables.  */
    short cSeries;
    short _far acSeries[MAXSERIES];
    char _far *aSeriesName[MAXSERIES];
    
    /* Temporary holding array for all data. Data values for multi-series
     * bar, column, and line charts remain here. Data for other kinds of
     * charts are transferred to the arrays below.
     */
    float _far aValue[MAXSERIES][MAXVALUES];
    
    /* Data values for single-series charts. First array is used for
     * bar, column, line, and pie. First and second are both used for
     * single-series scatter.
     */
    float _far axValue[MAXVALUES];
    float _far ayValue[MAXVALUES];
    
    /* Data values for multi-series scatter charts.  */
    float _far axValueMS[MAXVALUES][MAXVALUES];
    float _far ayValueMS[MAXVALUES][MAXVALUES];
    
    /* Exploded flags for pie chart.  */
    short _far aExplode[MAXVALUES];
    
    /* Variable used to track control and screen position.  */
    struct SCREENINFO si;
    
    /* Colors of menus and prompts. */
    struct tagColor co;
    
    /* Sample data.  */
    #define O_JUICE 0
    #define I_TEA   1
    #define H_CHOC  2
    #define TEMPERATURE  3
    
    char _far *aQuarters[] =
        { "First", "Second", "Third", "Fourth" };
    
    char _far *aMonths[] =
        { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
          "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
    
    char _far *aSalesTitles[] =
        { "Orange Juice Sales", "Iced Tea Sales", "Hot Chocolate Sales" };
    
    char *TempTitle = "Average Temperature";
    
    int main()
    {
        Initialize();
        MainMenu();
    
        /* Reset the video mode and screen colors prior to leaving. */
        _setvideomode( _DEFAULTMODE );
        _settextcolor( co.InfoColor );
        _clearscreen( _GCLEARSCREEN );
    
        return 0;
    }
    
    
    

Children