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