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.

Predefined label that tells the code which processor it is running in

 I have seen that normally when you define a certain processor to be used in a project the IDE uses it and creates a “predefined” label, something like “__TMS540LS714__” that defines which processor I am actually using. I then can use this to select for instance the number of CAN mailboxes per processor model, something like:

 

#ifdef    (__TMS540LS714__)

#define                CAN1_MAILBOX_N          32

#define                CAN2_MAILBOX_N          16

#define                CAN1_MAILBOX_N          16

#endif

 

#ifdef    (__TMS540LS1227__)

#define                CAN1_MAILBOX_N          64

#define                CAN2_MAILBOX_N          64

#define                CAN1_MAILBOX_N          64

#endif

I checked with Lawrence Wong from TI and this improvement was defined for the MSP430 years ago. I would like to see it added to the current CCS to all other families, in particular the Hercules one that I am using. 

The references to the enhancement already implemented can be seen at:

https://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/59186

 

I checked the enhancement request: SDSCM00037577 

 

I discovered it was added into the code composer v4.2.3:

 

http://archive.is/RFWLp under bug fixes:

 

SDSCM00037577

Emulation

4.1.3

ALL

Request for a predefined symbol to be passed from project wizard to compiler options for MSP430 devices

But the reference to "ALL" is incorrect and it works only for the MSP430.

Could you help>

Best regards

Caio

  • Caio,

    These parameters are usually defined on a component provided by the device team (not CCS). Therefore I will forward your question to the Hercules device forum as they will be able to handle your request more promptly.

    Regards,
    Rafael