20-bit addresses are not currently supported by mspgcc.  You can use inline
asm directives to work around this limitation (see the list archives for
details).

I'll be back to spending considerably more time on mspgcc starting next
week, and this will be one of the main features that will debut in the
4.6.x-based releases, but I'm not making any claims as to when 20-bit
support will be available for test.

Peter

On Tue, Jul 19, 2011 at 10:42 AM, Glib Dovgych <g.dovg...@googlemail.com>wrote:

> Hi everyone,
>
> I'm trying to call the function, which is placed in the upper memory
> (starting with 0x10000 address), but instead of
>
> calla    #0x10000
>
> in disassembly I get
>
> 44a8:    b0 12 00 00     call    #0x0000
>
>
> though the function is placed really to the 0x10000 address:
>
> 00010000 <delay>:
>   10000:    04 12       push    r4
>   10002:    04 41       mov     r1,    r4
> .....
>
> Should I use some special compiler instruction to enable calls from the
> upper memory or is it a bug?
> Now I'm calling the compiler like this:
>
> msp430-gcc -mmcu=msp430x5529 -mcpu=430xv2 -Wl,--section-start
> -Wl,.mysec=0x10000 -o main.elf main.c
>
> Any help would be appreciated.
>
> Best regards,
> Glib
>
>
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>
------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to