Compiling OSBDM firmware under CW 6.1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compiling OSBDM firmware under CW 6.1

3,285 Views
welpa
Contributor I
I've tried to compile the OSBDM firmware under CW 6.1 (I need to change some output pins)
and I've encountered several problems.
- I have changed the mc68hc908jb16.h an .c files for the new ones from CW6.1
- I have changed the UCR0_T0SEQ_MASK/UCR0_TOSEQ_MASK error

Now there are 17 errors all related to inline assembler in bdm.c.
It seems that when the assembler wants to use "ROL i" the compiler gives me an
error about the "i" static variable:

"C18700: Unknown Opcode Operand Combination:smileysurprised:pc.:ROL/Dest.:Ext/Source:No0p"
and
"C18701: Unknown Opcode 19"

When I tried to use the same ROL with a different local variable it works ok (but that is not a solution - I need to access this static variable).

Did anyone encountered the same problem or if you have any advice, please reply.

Pawel Plesnar
Wroclaw, Poland
Tags (2)
0 Kudos
3 Replies

442 Views
bobbyAIR
Contributor I
I'm tring to compile tbdml firmware under CW 5.7 (osbdm firmware comes from tbdml's) aand i have the samee problem but i heven't found solution yet.
0 Kudos

442 Views
peg
Senior Contributor IV
Hi bobbyAIR,

I think you are confusing the IDE version number with the whole package version.
There is no CW 5.7!
Help | About | Installed products, then look in top window
Possibly its 5.1 you are talking about.

0 Kudos

442 Views
bobbyAIR
Contributor I
You are right. It was 5.1 ( now I have reinstalled it to newest version ). The best way to compile firmware it to get one from http://www.witztronics.com/ (it compiles under new CW) and work with this source
0 Kudos