Hi Robert,

What version are you running? I just grabbed the latest binutils source from Redhat and it looks OK.

Regards,
Steve


Robert Carlsson wrote:

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



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users



Reply via email to