This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Resolved

Incorrect PWM_Obj definition for f2805x in pwm.h

Intellectual 655 points

Replies: 4

Views: 671

Hi there,

We noticed a misalignment between the PWM data structure and the registrers on the chip. The fault seems to be in

sw/drivers/pwm/src/32b/f28x/f2805x/pwm.h

line 840 says:

volatile uint16_t rsvd_4[11]; //!< Reserved

Experiments indicate that this should probably be [12] instead of [11].

Can you confirm this?

Best regards,

Rob Jacobs

  • 
    

    Dear Rob Jacobs,

    I worked with F2805x in InstaSPIN, and I confirm that there is nothing wrong in definition of the Motorware Library.

    volatile uint16_t rsvd_4[11]; //!< Reserved
    

    The above code line means, the structure reserved 12 adjacent bits (from 0 to 11) in the memory to present the part of PWM register.

    I don't see any wrong here.

    Mr. Tran

    With kind regards,

    Tran Binh Duong,

    VPEC Team, Vietnam.

    "Good ideas are not complicated, they are complex, but we are making it easy !!!"

  • In reply to Tran Binh Duong:

    This is a bug.

    It was reported in MotorWare 15, but unfortunately wasn't fixed in the latest MotorWare.

    See:  

    http://e2e.ti.com/support/microcontrollers/c2000/f/902/t/477694

  • In reply to RLetizia:

    Thank you RLetizia!

    Too bad indeed, that this was not fixed in MotorWare 16, since we did check for any changes between the version we are using and MW16.

    Thank you for the confirmation.

    Best regards,

    Rob.
  • In reply to Tran Binh Duong:

    Thanks for your fast response Mr. Tran, but your answer is incorrect;
    The given line reserves 11 16-bit words, not 12 bits. When compared to the Technical Reference Manual, it is clear 12 words should be reserved, instead of 11.

    Best regards,

    Rob.

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.