Hi,
I am using a TMS320F28x micro and Code Composer Studio V4. I'd like to be able to define a global variable (in C) at a particular address. I've used compilers in the past that will allow you to do Something like this:
int MyVar @0x1000; // MyVar is defined to exist in memory at address 0x1000
My end goal is to create a variable for accessing the CAN mailbox registers as an array. Something like this:
struct MBOX CanMboxReg[32] @0x6100;
Then I would be able to initialize the registers in a for loop instead of a long list of individual statements (to save a little flash and look a little cleaner). I'm sure that there are other registers that I could do the same thing with, but at the moment I'm working on CAN.
Thanks,
Mike