OSBDM firmware error

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

OSBDM firmware error

5,622件の閲覧回数
adige
Contributor I
Hi all,
 
 I have downloaded OSBDM firmware project.When i try to make compile this project under CW5.1(OSBDM drivers already installed) it generates 51 errors.For example UCR0_T0SEQ_MASK not declared.I had to download special header file for this project?
 
Thanks...
/t
ラベル(2)
タグ(2)
0 件の賞賛
返信
3 返答(返信)

1,485件の閲覧回数
thm59
Contributor II
Hello,

I have tried to compile the OSBDM08 firmware with CW5.1, but, I got a lot of error too .

For exemple, the error you mention is due to a different declaration of UCR0_TOSEQ_MASK , witch is defined as UCR0_T0SEQ_MASK (find the difference!!) in mc68hc908JB16.c, some errors are also due to lower-case - uppercase differences in variables names, .. (it is probably an option to disable case sensibility in CW, but i don't know it)

I continued not to debug the code. Clearely, the code was written with CW3.1. With CW3.1, no compilation errors.

th.
0 件の賞賛
返信

1,485件の閲覧回数
adige
Contributor I
Ok.
Thanks a lot.
bye
 
/t
0 件の賞賛
返信

1,485件の閲覧回数
UcTechnoGeek
Contributor II
The firmware uses older mc68hc908jb16.c and .h files which have been depreciated in the newer 5.0+ versions.
 
I know 5.0 still had the files, but they were not in the default directory, so you will get errors generated by using the newer version of files.  CW08 V5.0\lib\hc08c\include and CW08 V5.0\lib\hc08c\src is where they kept them.  The new versions of Codewarrior now use the CW08 V5.0\lib\hc08c\device directory.
 
You can use the older version of files and it will work, but you'll get warnings about the files being depreciated.
 
uCTechnoGeek
0 件の賞賛
返信