Keil™, An ARM® Company

Discussion Forum

Improper Fixup problem

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Maaz Qazi
Posted
28-May-2007 14:38 GMT
Toolset
C51
New! 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

Read-Only
Author
Jon Ward
Posted
28-May-2007 16:52 GMT
Toolset
C51
New! RE: Improper Fixup problem

Have you looked at: http://www.keil.com/support/docs/2157.htm

Jon

Read-Only
Author
Sidmeet Ran
Posted
29-May-2007 11:27 GMT
Toolset
C51
New! RE: Improper Fixup problem

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;
}


Read-Only
Author
Sidmeet Ran
Posted
29-May-2007 11:28 GMT
Toolset
C51
New! RE: Improper Fixup problem

SORRY PLEASE FOR WRONG CODE

Read-Only
Author
Sidmeet Ran
Posted
29-May-2007 11:36 GMT
Toolset
C51
New! RE: Improper Fixup problem

CODE IS

    #include <stdio.h> /*printf*/
 #include <8051.h> /*    TI*/

int main()
{
 loop_again:

       printf(     "code is here'    );   /*printf*/

                     goto loop_again;
}

Read-Only
Author
K Rahib
Posted
29-May-2007 12:27 GMT
Toolset
C51
New! plz do not shout!

why shout?

plz do not use big letters bcoz you look very big rude

do your code compile?

you not put good in string

printf(     "code is here'    );

change

printf( "code is here" );

code compile then?

Read-Only
Author
Per Westermark
Posted
29-May-2007 13:31 GMT
Toolset
C51
New! RE: plz do not shout!

Using goto for an infinite loop???

   #include <stdio.h> /*printf*/
 #include <8051.h> /*    TI*/

int main()
{
 loop_again:

       printf(     "code is here'    );   /*printf*/

                     goto loop_again;
}

instead of:

void main(void) {
    for (;;) {
        printf("code is here\n");
    }
}

or

void main(void) {
    while (1) {
        printf("code is here\n");
    }
}

By the way 1: Why hijack someone elses thread? The problems aren't even related.

Why the way 2: Why add a comment informing that the printf() call is a printf() call?

By the way 3: You shout that malloc() returns NULL - which malloc()?

Read-Only
Author
erik malund
Posted
29-May-2007 14:03 GMT
Toolset
C51
New! the pot calling the kettle black

plz do not use big letters bcoz you look very big rude
that is the pot calling the kettle black do you think that such gobbelygook is not considered rude?

Erik

Read-Only
Author
K Rahib
Posted
29-May-2007 14:16 GMT
Toolset
C51
New! son of pig farmer?

i not know who is gobbelygook

i google and it say he is son of a pig farmer

http://www.sonofapigfarmer.com/?p=351

you be rude to me?

why you think my father farms pigs??

you say i rude? i not shout at you!

have me offended you by me?

Read-Only
Author
Per Westermark
Posted
29-May-2007 14:42 GMT
Toolset
C51
New! Improving writing style

Good. Not a single SMS abbreviation in your text.

Next few steps:
- Start all sentences with a capital letter.
- End all sentences with a period, exclamation or question mark. In special cases, end the sentence with three terminating characters ("...", "???", "??!" or similar). Never two. Never four or more.
- Remember to spell I with a capital letter.

The above makes no difference in typing speed, but directly affects how people look at your posts.

Read-Only
Author
erik malund
Posted
29-May-2007 14:53 GMT
Toolset
C51
New! RE: son of pig farmer?

i not know who is gobbelygook
i google and it say he is son of a pig farmer

no, it does not it says that the word gobbelygook appear in "son of a pig farmer"

Gobbelygook is not a who, it is a what.

Gobbelygook is words that do not make sense and you used two.

Erik

Read-Only
Author
K Rahib
Posted
29-May-2007 15:06 GMT
Toolset
C51
New! RE: son of pig farmer?

you think i am a what??

no

i am a who

i ammm a person

i am not a gobbelygook!!!!!!

you think my words do not make sense???

i learn englis from book i have grade pass!!

plz no be rude to me

Read-Only
Author
erik malund
Posted
29-May-2007 15:24 GMT
Toolset
C51
New! RE: son of pig farmer?

you do not get it do you?

there is, in what I have posted NOTHING about YOU personally.

The gobbelygook is your screwy 'abbreviations'

i learn englis from book i have grade pass!!
if that book has "plz" and "bcoz" in it please give me the name of the book and a link to the institution that uses it.

Erik

Read-Only
Author
K Rahib
Posted
29-May-2007 15:45 GMT
Toolset
C51
New! you mean gobbledygook

now i understand

i find you word in my book

you had bad spelling!!!!!!

it is not gobbelygook

it is gobbledygook (or gobbledegook)

maybe i lend you my book please for you to learn????

Read-Only
Author
erik malund
Posted
29-May-2007 16:40 GMT
Toolset
C51
New! RE: you mean gobbledygook

you had bad spelling
OK I had an unintentional spelling error.
You had intentional lazy spelling.

Erik

Read-Only
Author
Per Westermark
Posted
29-May-2007 17:54 GMT
Toolset
C51
New! RE: you mean gobbledygook

Return thread back to OP fixup problems now.

Read-Only
Author
Neil Kurzman
Posted
30-May-2007 02:55 GMT
Toolset
C51
New! RE: you mean gobbledygook

Not to further Hijack the Thread, But
You Engish is Very Poor even without the SMS.
Do not take every thing so Personal.

now i understand
Now I understand.
i find your word in my book
I found your word in my book
you had bad spelling!!!!!!
You have bad spelling!
it is not gobbelygook
It is not gobbelygook
it is gobbledygook (or gobbledegook)
It is gobbledygook or gobbledegook
It means your words do not make sense, Please reprase them.
maybe i lend you my book please for you to learn????
Maybe I should lend you my book so you can learn?

Those who live in glass houses should not throw stones.

Read-Only
Author
K Rahib
Posted
30-May-2007 09:57 GMT
Toolset
C51
New! no stones

Those who live in glass houses should not throw stones

tk tk tk

we do a same saying in my country

the english words is

if you want to eat yak do not sell yak

i think my sounds more good to you!!!!!!!

Next Thread | Thread List | Previous Thread Start a Thread | Settings