S32DS MPC5605B header file error

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

S32DS MPC5605B header file error

Jump to solution
681 Views
Daniel_Wax
NXP Employee
NXP Employee

There is an issue in the header definition of the ME_PS2 register field in the included header files for the MPC5605B.h processor.

 

The highlighted line should be a 17 not a 16.  We have fixed this internally, but it would be good to let you know that this is incorrect even in the latest version of S32 Design Studio.

 

From the MPC5605B.h header file (see highlighted line):

 

    union { /* Peripheral Status 2 (Base+0x0068) */

        vuint32_t R;

        struct {

            vuint32_t :3;

            vuint32_t S_PIT_RTI:1;

            vuint32_t S_RTC_API:1;

            vuint32_t :16;

            vuint32_t S_EMIOS1:1;

            vuint32_t S_EMIOS0:1;

            vuint32_t :2;

            vuint32_t S_WKPU:1; 

            vuint32_t S_SIUL:1;

            vuint32_t :4;

        } B;

    } PS2;

 

From the reference manual (see bit position of S_PIT_RTI and S_RTC_API):

 

Labels (2)
0 Kudos
1 Solution
593 Views
jiri_kral
NXP Employee
NXP Employee

Hi Daniel, 

thanks for report. I can confirm that in latest S32DS is this miss alignment still present.  I'll create JIRA ticket for this bug. 

Jiri

View solution in original post

0 Kudos
1 Reply
594 Views
jiri_kral
NXP Employee
NXP Employee

Hi Daniel, 

thanks for report. I can confirm that in latest S32DS is this miss alignment still present.  I'll create JIRA ticket for this bug. 

Jiri

0 Kudos