unkown identifiler, vbr for mc68322 complie

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

unkown identifiler, vbr for mc68322 complie

626 Views
chaseunghyun
Contributor I


I estimate the codewarrior for 68k.

Then, I meet the compile error as below .

“unkown identifiler, vbr

---------------------------------------------------

move.l #STRT,d0

move d0,vbr ;Set the VBR offset

/-------------------------

0 Kudos
1 Reply

585 Views
TomE
Specialist II

"VBR" is the "Vector Base Register". This is a special CPU register, accessed with the MOVEC command.

Are you sure you're not meant to be using "movec" instead of "move"? Some compilers convert this automatically.

Where did you get the sample code from?

The error you're getting suggests you don't have the compiler set up properly to recognise the CPU. Or maybe you're missing a header file that defines the VBR (but I doubt that).

You can search this forum for "vbr" to see if anyone else has had this problem. Searching finds the following that has the example code "movec d0,vbr" and has some other information:

https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/VBR-Not-getting-set-properly-on-MCF2110/m...

Tom

 

0 Kudos