compiler-error icc430

hello,

i downloaded the sources of a.dannenberg from the texas-website.

in this package is a msp430x1xx.h

when i compile the sources using this header-file i get the compiler error, that “sfrb” and “sfrw” is not defined. what the hell is sfrb? and where do i have to define this?

when compiling them with the icc430 using the msp430x1xx.h that is shipped with the compiler i get these compiler errors:

C:\Programme\mspicc\bin\imakew -f easyweb.mak

icc430 -c -IC:\Programme\mspicc\include\ -IC:\download\easywebsource -e -l -g -Wf-hwmult C:\download\easywebsource\webside.c

icc430 -c -IC:\Programme\mspicc\include\ -IC:\download\easywebsource -e -l -g -Wf-hwmult C:\download\easywebsource\easyweb.c

!E C:\download\easywebsource/cs8900.c(86): lvalue required

!E C:\download\easywebsource/cs8900.c(196): lvalue required

!E C:\download\easywebsource/tcpip.h(249): syntax error; found void' expecting ;’

!E C:\download\easywebsource/tcpip.c(802): lvalue required

!E C:\download\easywebsource/tcpip.c(887): syntax error; found void' expecting ;’

!E C:\download\easywebsource\easyweb.c(90): type error in argument 2 to memcpy'; found pointer to const unsigned char’ expected `pointer to void’

C:\Programme\mspicc\bin\imakew.exe: Error code 1

Done: there are error(s). Exit code: 1

can anybody help me please?

greets, xray

i read, that dannenberg used the iar compiler.

does that mean, that only the iar-compiler can compile these files?

so that the 300 Euro expensive ICC-thing is totally useless for this application?

can anybody help me stepping into this?

xray

(nt)

Hi,

the C code may be runned on different compilers, but there are several things not standartized which are done in differnt way by the different compiler vendors

SFRB and SFRW is reserved words in IAR for MSP430 port definitions, I’m sure there should be such but maybe different way to define ports in ICC

it should be somewhere in ICC manual (you should read :wink:

you can see below in postings there is code modified for GCC (free) C compiler as well

Best regards

Tsvetan

thank you much for your help.

i am not that familiar with these compiler related things. but i am willing to learn.

i have little practice in programming the MC68000, but at school i’ve had a complete configured environment for that. just write your code, make two clicks and your software is running.

i will try the gcc code tomorrow. you mean the stuff from aalvarez, don’t you?

xray