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

philips AN10155

I faithfully typed in all the I2C code from philips application notes, AN10155. I get the following when I compile in Keil:

Build target 'Target 1'
assembling START900.A51...
compiling demo.c...
I2CEXPRT.H(65): error C141: syntax error near 'using'
I2CEXPRT.H(65): error C141: syntax error near '1'
DEMO.C(12): error C129: missing ';' before 'char'
compiling I2CINTF.c...
I2CEXPRT.H(65): error C141: syntax error near 'using'
I2CEXPRT.H(65): error C141: syntax error near '1'
I2CINTF.C(3): error C141: syntax error near 'char', expected ')'
I2CINTF.C(5): error C129: missing ';' before 'char'
compiling I2CDRIVR.C...
I2CEXPRT.H(65): error C141: syntax error near 'using'
I2CEXPRT.H(65): error C141: syntax error near '1'
I2CDRIVR.C(19): error C141: syntax error near 'interrupt'
I2CDRIVR.C(19): error C141: syntax error near '6'
I2CDRIVR.C(19): error C141: syntax error near '1'
I2CDRIVR.C(21): error C141: syntax error near 'STAT'
I2CDRIVR.C(21): error C202: 'STAT': undefined identifier
I2CDRIVR.C(23): error C172: 'case': missing enclosing switch
I2CDRIVR.C(25): error C171: 'break': missing enclosing loop
I2CDRIVR.C(26): error C172: 'case': missing enclosing switch
I2CDRIVR.C(27): error C172: 'case': missing enclosing switch
I2CDRIVR.C(30): error C171: 'break': missing enclosing loop
I2CDRIVR.C(31): error C172: 'case': missing enclosing switch
I2CDRIVR.C(32): error C172: 'case': missing enclosing switch
Target not created

Exactly what settings must keil uVision be in in order to compile philips application notes code for AN10155?

Is this possibly just a syntax problem?

Parents
  • "not necessarily, it may very well be right for another compiler"

    Ok, point taken.

    Since this is a Keil forum and the OP mentions C51 as the architecture, I would assume that the bias was towards the Keil C51 toolset.

    I'll bear it in mind for any future posts - May end up getting comments about being unnecessarily verbose ;)

Reply
  • "not necessarily, it may very well be right for another compiler"

    Ok, point taken.

    Since this is a Keil forum and the OP mentions C51 as the architecture, I would assume that the bias was towards the Keil C51 toolset.

    I'll bear it in mind for any future posts - May end up getting comments about being unnecessarily verbose ;)

Children