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.

TMS320F280049: Question about bp_16 and bp_32

Part Number: TMS320F280049

Dear Champs,

Help customer post the problem, his problem as below:

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

I have a question about bp_16 and bp_32 declaration as below.

//

// The following data types are for use with byte addressable peripherals.

// See compiler documentation on the byte_peripheral type attribute.

//

#ifndef __TMS320C28XX_CLA__

typedef unsigned int bp_16 __attribute__((byte_peripheral));

typedef unsigned long bp_32 __attribute__((byte_peripheral));

#endif

 

Currently, these definition are used for CAN registers.

 

Now I would like to use CLA feature.

The bp_16 and bp_32 become undefine.

 

Could you please provide the solution as soon as possible? Thank you.

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

If you have any suggestion, please feel free to let us know.

Thanks a lot.

  • The type attribute byte_peripheral is not supported by the CLA compiler.

    Janet Shen said:
    Could you please provide the solution as soon as possible? Thank you.

    Unfortunately, the CLA compiler has no feature which supports accessing byte addressable peripherals.

    Thanks and regards,

    -George

  • Dear George,

    Based on data sheet, CPU can access byte addressable peripherals during CLA enable.

    Why does CCS compiler fail to retain CPU features when the CLA function is activated?

  • Dear Johnson,

    Could you kindly provide error message to us?
    As George said, CLA do not support byte_peripheral.
    Although your function run in C28x but it is CLA function, it still doesn't work.
    Thanks a lot.
  • Dear George,

    Thanks for your reminder.
    I have found more detail on compiler user guide and will discuss it with customer.
    Thanks a lot.