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.

Compiler/MSP430F6723: Definition of SD24BTRGOSR control register is missing in IAR v7.10.3

Part Number: MSP430F6723

Tool/software: TI C/C++ Compiler

Hello everyone,

I am using MSP430F6723 micro and my IAR version is 7.10.3. 

While compiling the source code, it throws error -->  'SD24BTRGOSR is undefined'. When i check for the definition, i see that this control register has not been defined in the msp430xx.h file.

Secondly, if let's say if i don't use the register to proceed with the compilation, i am facing another issue described below:

I have a function call having declare my local variables in it plus some process which goes something like this:

bool abc (arg1, arg2, arg3) {

long var1 = 0;

long var2 = 0; 

var1 = x+ y;

//--

if else statements

--//

}

Whats happening is that var1 and var2 are not allocated any memory which is making them non-readable and further failing the checks in the if-else statements.

I wanted to understand if this memory allocation problem is because i commented out the use of SD24BTRGOSR  register ? Or is it because my stack is overflowed? 

Optimizations level is high for my C/C++ compiler with all the transformations checked.

Kindly let me know if any of you are aware or have faced this issue before. Any help would be just great! :)

Please also let me know if more information is required. 

Thank you!!

Cheers, 

Samarth

  • Samarth,

    I will be looking into the SD24BTRGOSR register for this family of devices. It could be that this family doesn't support this particular feature. I will working with our designers to clarify this. this may take sometime however to get the appropriate answer. Please stand by.

    For your other issue, the issue maybe the compiler optimizing this out. I would check to see if it is not down with optimizations turned off. There are options to block out parts of code for the compiler not to touch as well. Please see the IAR User Guide for MSP430 for this information.
  • Hi Jace,

    Thank you so much for your reply.

    For the second issue:
    Yes, it was the compiler optimizing it out. I tried to get a RS-232 out to check on the value and values are all OK. It was just that in the watch window it was showing as non-readable.

    I would still like to keep this thread open to get to know if SD24BTRGOSR register supports the 2xx family of micro controllers. Thanks again for looking into this.

    Much appreciated!

    Cheers,
    Samarth
  • Hi Jace,

    Just wanted to check with you if there is any update on SD24BTRGOSR register support for 2xx family of controllers? Appreciate your help, much obliged.

    Thanks,
    Samarth
  • Hello Samarth,

    No response from our designers as of yet, but it has recently moved up in priority. Will update as soon as I can.

**Attention** This is a public forum