Hi

I've noticed that R1 is not intialized to the top address of RAM on the 1611. This MSP430 model has 10 kB RAM placed on the adress range 0x1100-0x38FF. But it seems mspgcc thinks the range is 0x0000-0x27FF.

int main(void)
{
  return 0;
}

compiled with the -mmcu=msp430x1611 flag generates this code

00004040 <main>:
    4040:       31 40 00 28     mov     #10240, r1      ;#0x2800
    4044:       0f 43           clr     r15
    4046:       30 40 4a 40     br      #0x404a

I've used a temporary solution by specifying -minit-stack=14592 when compiling.

/Robert


Reply via email to