Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » MSPGCC
  • » [Mspgcc-users] bug in CRT code for msp430f5438? [RSS Feed]

#1 Jan. 9, 2011 22:44:19

Piotr R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] bug in CRT code for msp430f5438?


Hi,

I found hardcoded address of the watchdog control register:

gcc-*\gcc\config\msp430\libgcc.S:

_low_level_init:
mov #0x5a80, *&0x120 *

or, when it is in decimal:

mov #23168, *&288*

It appears in all branches of gcc.Unfortunately, it is incorrect value for msp430f5438, where WDTCTL isat 0x15C (base addr+offset.=0x150 + 0x0c).That core is compiled to crt*.o and then linked as a startup withcompiled code.Would you be so kind to confirm that?

Regards
Piotr Romaniuk,
ELESOFTROM

PS
By the way, is the windows package of mspgcc still maintained?
or should I build it from sources?
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/mspgcc-users

Offline

#2 Jan. 9, 2011 22:54:31

Piotr R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] bug in CRT code for msp430f5438?


Hi,

I found hardcoded address of the watchdog control register:

gcc-*\gcc\config\msp430\libgcc.S:

_low_level_init:
mov #0x5a80, *&0x120 *

or, when it is in decimal:

mov #23168, *&288*

It appears in all branches of gcc.
Unfortunately, it is incorrect value for msp430f5438, where WDTCTL is
at 0x15C (base addr+offset.=0x150 + 0x0c).
That core is compiled to crt*.o and then linked as a startup with
compiled code.

Would you be so kind to confirm that?

Regards
Piotr Romaniuk,
ELESOFTROM

PS
By the way, is the windows package of mspgcc still maintained?
or should I build it from sources?


Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/mspgcc-users

Offline

#3 Jan. 9, 2011 22:54:39

Piotr R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] bug in CRT code for msp430f5438?


Please, excuse me, I should create new thread.
It was not related to this thread.

Piotr Romaniuk

W dniu 2011-01-09 23:42, Piotr Romaniuk pisze:
> Hi,
>
> I found hardcoded address of the watchdog control register:
>
> gcc-*\gcc\config\msp430\libgcc.S:
>
> _low_level_init:
> mov #0x5a80, *&0x120 *
>
> or, when it is in decimal:
>
> mov #23168, *&288*
>
> It appears in all branches of gcc.
> Unfortunately, it is incorrect value for msp430f5438, where WDTCTL is
> at 0x15C (base addr+offset.=0x150 + 0x0c).
> That core is compiled to crt*.o and then linked as a startup with
> compiled code.
>
> Would you be so kind to confirm that?
>
> Regards
> Piotr Romaniuk,
> ELESOFTROM
>
> PS
> By the way, is the windows package of mspgcc still maintained?
> or should I build it from sources?



Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/mspgcc-users

Offline

#4 Jan. 9, 2011 23:00:02

Peter B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[Mspgcc-users] bug in CRT code for msp430f5438?


That source is probably out of date. In mspgcc4, low_level_init seems to
come from msp430-libc. At any rate, the issue should not arise with
mspgcc4, unless you have an error in your build flags and the wrong MCU is
selected.

There appears to be a fairly recent windows build of mspgcc4 in the Windows
subdirectory of the files area on the mspgcc4 project, contributed by Oliver
Maye. Nobody's stepped forward to regularly provide updated windows
packages.

Peter

On Sun, Jan 9, 2011 at 4:42 PM, Piotr Romaniuk <p.roman***@*p.pl> wrote:

> Hi,
>
> I found hardcoded address of the watchdog control register:
>
> gcc-*\gcc\config\msp430\libgcc.S:
>
> _low_level_init:
> mov #0x5a80, *&0x120 *
>
> or, when it is in decimal:
>
> mov #23168, *&288*
>
> It appears in all branches of gcc.
> Unfortunately, it is incorrect value for msp430f5438, where WDTCTL is at
> 0x15C (base addr+offset.=0x150 + 0x0c).
> That core is compiled to crt*.o and then linked as a startup with compiled
> code.
>
> Would you be so kind to confirm that?
>
> Regards
> Piotr Romaniuk,
> ELESOFTROM
>
> PS
> By the way, is the windows package of mspgcc still maintained?
> or should I build it from sources?
>
>
>
>
>
> Mspgcc-users mailing list
> Mspgcc-us***@*ists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/mspgcc-users>
>
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/mspgcc-users

Offline

  • Root
  • » MSPGCC
  • » [Mspgcc-users] bug in CRT code for msp430f5438? [RSS Feed]

Board footer

Moderator control

Enjoy the 17th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support