Error in CodeWarrior Stationery for Coldfire 5485 (mcf548x_slt.h)

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

Error in CodeWarrior Stationery for Coldfire 5485 (mcf548x_slt.h)

1,083 Views
vortex
Contributor I
The include file mcf548x_slt.h contains a numbering error that causes problems when using Slice Timer 1.
 
Specifically,  the following lines have an incorrect offset:
 
#define MCF_SLT_SLTCNT1      (*(vuint32*)(void*)(&__MBAR[0x000914]))
#define MCF_SLT_SCR1            (*(vuint32*)(void*)(&__MBAR[0x000918]))
#define MCF_SLT_SCNT1          (*(vuint32*)(void*)(&__MBAR[0x00091C]))
#define MCF_SLT_SSR1             (*(vuint32*)(void*)(&__MBAR[0x000920]))
 
The correct offset is:
 
#define MCF_SLT_SLTCNT1      (*(vuint32*)(void*)(&__MBAR[0x000910]))
#define MCF_SLT_SCR1            (*(vuint32*)(void*)(&__MBAR[0x000914]))
#define MCF_SLT_SCNT1          (*(vuint32*)(void*)(&__MBAR[0x000918]))
#define MCF_SLT_SSR1            (*(vuint32*)(void*)(&__MBAR[0x00091C]))
Labels (1)
0 Kudos
1 Reply

248 Views
CrasyCat
Specialist III
Hello
 
Did you submit a bug report through our online support site for that?
Go to
and click on Submit a service request.
 
CrasyCat
0 Kudos