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.

CCS/TMS320F28075: TMS320F28075 Driverlib and Bit Fields

Part Number: TMS320F28075
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi,

With regards to the previous issue I had with setting up both the CAN buses in the TMS320f28075, I managed to get it up and running with the driverlib examples. However, I ran into a small road block in this example.I am very much used to working with bit fields with C2000 micro controllers. The problem is when sending or receiving a CAN messages, it has to be stored in a user created variable. But it is evident that the driverlib is much straightforward than using bit fields. However, in this particular case, I think it is better if you can directly pass to and retrieve the data from the CAN mailbox registers. Is there any way to use the driverlib and bit feilds for a specific use at the same time.

Regards,

Nisal

  • Nisal Bulathsinghala said:
    Is there any way to use the driverlib and bit feilds for a specific use at the same time.

    Yes, the driverlib and bit-fields can coexist in the same project at the same time.  There are instructions for adding bit-fields and driverlib to a project in the Developers User's Guide within C2000Ware:

    • C:\ti\c2000\C2000Ware_<version>\device_support\f2807x\docs

    Best Regards

    Lori

  • HI Lori,

    Thank you very much for the reply. I am having some difficulties implementing the driverlib and the bit fields. I have managed to setup and successfully transmit a CAN message object using the driverlib. However I can't seem to get my head as to how I can access the CAN registers from bit fields. The register values does not seem to update in the debug window, and I get and error saying "Memory map prevented reading". Please provide me with some more details as to how I can use driverlib and bit fields both. 

    Best regards,

    Nisal

  • Nisal,

    Confirm that you have #included and added the files needed for bit-field usage.  In the current version of C2000Ware (V 3.01) the list is on page 24 of following document:

    C:\ti\c2000\C2000Ware_3_01_00_00\device_support\f2807x\docs\F2807x_FRM_EX_UG.pdf

    Regards

    Lori