Sergei Sharonov | 18 May 23:19
Favicon

missing GET_FRAME_ADDR_F

Dear All,
I am porting some old code from mspgcc v3.x  to v4.x and came across
missing macro GET_FRAME_ADDR_F(). I was using that to determine
from ISR if CPU was sleeping:
   psr = (int *) GET_FRAME_ADDR_F(__FUNCTION__);
   if((*psr & (LPM3_bits)) == LPM3_bits) { /* in LPM3 mode */
         ....

What is the preferred method of doing that with a new toolchain?
Thanks,
Sergei

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Rob Spanton | 17 May 23:15
Gravatar

Fedora Packages

Hi Everyone,

I finally got around to doing some work towards packaging the uniarch
version of mspgcc and friends for Fedora.  I'm working on getting them
into the Fedora repos, but in the meantime you can grab the RPMs from
here: http://users.ecs.soton.ac.uk/rds/rpm/mspgcc-uniarch/

Cheers,

Rob

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Adam Ford | 16 May 17:14
Favicon

MSPGCC Code Size vs IAR

I'm sorry for bugging people, and I have Googled this question, but the
answers I'm finding are really old and I know there are updates to
mspgcc since most of the answers were posted....

I am trying to port 3 different programs from IAR to MSPGCC for work.
I'm using the latest released version, but 2 of the 3 won't fit even
when compiling using optimizations: -mmcu=$(MCU) -g -Os -Wall
-fdata-sections -ffunction-sections  and linked with --no-keep-memory
-Wl,-gc-sections

Does anyone have any ideas how I can further optimize the compiler
(other than rewriting - which I've been trying to do)?

With an MSP430F149 processor, under IAR, the code compiles and links
(Code = 45858, data = 3000, CONST=4935)

Under GCC, it won't link because '.rodata won't fit into region rom' and
rom overflows by 796 bytes.

Examining the Map file shows .rodata is 0x1a66 in size, .text is 0xc240
in size, .bss is 0x712

Any ideas how to make the libraries or optimizer make smaller code?

adam

This email, including any attachments and files transmitted with it, are for the sole use of the intended
recipient(s) to whom this email is addressed, and may contain confidential and/or privileged
information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please be advised that you have received this email in error, and please contact the
(Continue reading)

Picon

Help to MSPDebug running in eclipse

Good Morning.

I'm a eletronic technologist, and I have recently stated working with MSP
programming. I'm trying to make an Ide for program MSP430 in C language
using Eclipse, MSPGCC an MSPDebug. Through reseach I realised that you all
works using some of these tools, so I was wondering if you could help me to
continue my work.
I have already installed the MSPdebug and MSPGCC is already working with
Eclipse, but now i don't know which is the best way to proceed to make
eclipse program and debug my chip when I click in the debug butom.

Could you help me, please?

Thanks for the attention.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Picon

Updated Debian/Ubuntu Packages ?

Is there any timeline for updated debian or Ubuntu packages based on
the current LTS Relaease?

The packages available out there are still based on the old 20110612 release.

--

-- 
Henry von Tresckow (hvontres)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Peter Bigot | 15 May 04:12
Picon
Favicon

mspgcc development release 20120514 now available

Development release 20120514 of mspgcc is now available.

This is a development release.  It's being made to clear up a few reported
issues in 20120425 without announcing any new capabilities.  It also
incorporates a major rework of the gcc infrastructure that is required
because gcc never intended sizeof(void*) to differ from sizeof(void(*)()),
and generally isn't prepared to deal with pointers of different sizes.

The patch bundle for 20120514 is available at:

 https://sourceforge.net/projects/mspgcc/files/mspgcc/DEVEL-4.7.x

The tag workspace/release/20120514 in
git://mspgcc.git.sourceforge.net/gitroot/mspgcc/mspgcc checks out a
workspace configured for this release.  The tag workspace/master checks out
a workspace configured for the development series.

Downstream packagers: please don't bundle this.  It's so experimental, only
people who are build from source should be playing with it.  The stable series
remains LTS-20120406.

As usual, please submit problems as tracker tickets at:
https://sourceforge.net/tracker/?group_id=42303&atid=432701

Summary of changes in mspgcc release 20120514 since release 20120425

binutils: changes from binutils-2.22-20120407 to binutils-2.22-20120514:
 - afddce7 [2012-05-14 20:04:59 -0500] Update DEV-PHASE for release
 - 17d6d5d [2012-04-27 11:08:16 -0500] Complete set of far sections
 - de75aa8 [2012-04-27 11:03:19 -0500] Eliminate PROVIDE from symbols
(Continue reading)

Guido Muesch | 14 May 23:19

ptrdiff_t is 32bit, intended?

Dear all,

Is it really intended that ptrdiff_t is 32bit?
I guess not, because the "gcc47: 20-Bit Design" states:
"Memory model target options are accepted only when building for
CPUX-capable MCUs. Compilation for non-CPUX MCUs effectively uses the
small memory model."
And before that about the small memory model was stated:
"size_t and ptrdiff_t are 16 bits, and no data object may exceed 32767 bytes."

I am referring to mspgcc-20120406-p20120502 (non-CPUX)

For a quick check how msp430-gcc is configured:
$ msp430-gcc -dM -E - < /dev/null | grep PTRDIFF
#define __PTRDIFF_MAX__ 2147483647L
#define __SIZEOF_PTRDIFF_T__ 4
#define __PTRDIFF_TYPE__ long int

In contrast to the AVR gcc:
$ avr-gcc -dM -E - < /dev/null | grep PTRDIFF
#define __PTRDIFF_MAX__ 32767
#define __SIZEOF_PTRDIFF_T__ 2
#define __PTRDIFF_TYPE__ int

I came across this issue when looking at the generated code for int
pointer subtraction. Surprisingly huge code, because a sign extension
and a 32bit subtraction was performed.
However when dealing with a char pointers subtraction (being casted
into an int result) the 32bit operations are optimized away. That
might explain why this has not been noticed yet.
(Continue reading)

Franck Rousseau | 11 May 15:46
Picon
Picon
Favicon

__udivmodsi4 missing at link

  hello everyone,

  i've been trying to move from the old mspgcc4 version to the current LTS one for an on-going project, but
there is a problem at the final link stage : __udivmodsi4 is missing for vuprintf

/opt/mspgcc/lib/gcc/msp430/4.6.3/../../../../msp430/lib/libc.a(vuprintf.o): In function `vuprintf':
/mspgcc/msp430-libc-20120224/src/./stdlib/vuprintf.c:549: undefined reference to `__udivmodsi4'
/mspgcc/msp430-libc-20120224/src/./stdlib/vuprintf.c:549: undefined reference to `__udivmodsi4'
/mspgcc/msp430-libc-20120224/src/./stdlib/vuprintf.c:552: undefined reference to `__udivmodhi4'
/mspgcc/msp430-libc-20120224/src/./stdlib/vuprintf.c:552: undefined reference to `__udivmodhi4'

  this symbol can be found in gcc-4.4.5/gcc/config/msp430/libgcc.S in the old mspgcc4 source that i built
some time ago, but not any more in the new version based on 4.6.3, although the symbol appears in many object
files of the msp430-libc

  btw, i followed these directions to build the tool chain
http://sourceforge.net/apps/mediawiki/mspgcc/index.php?title=Install:fromsource

  the same problem was reported in this mail on the list
From: Aljaž Srebrnič <a2piratesoft <at> gmail.com>
Subject: [Mspgcc-users] Portfiles completed
Date: 6 jan 2012 11:12:54 HNEC

  is this a mistake on my side ? a problem somewhere in the build process ? in mspgcc ?

  cheers,

--

-- 
Franck

(Continue reading)

Tal Anker | 10 May 14:14
Picon

msp430-objcopy for arm

Hi,
Did anyone tried to install and use the binutils, especially the
msp430-objcoy on a sheevaPlug (Plug computer - ARM based)? The armel
distribution binaries fail with seg fault....

- Tal

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
asma bel hadj med | 8 May 23:47
Picon

error when installing msp430-gcc

Hello,
Using tutorials on net, i tried to install msp430-gcc.
these are the steps i did:

1)sudo apt-get install subversion gcc-4.4 texinfo patch
libncurses5-dev zlibc zlib1g-dev libx11-dev libusb-dev
libreadline6-dev
2)svn checkout https://mspgcc4.svn.sourceforge.net/svnroot/mspgcc4
3)cd mspgcc4
4)sudo ./buildgcc.sh
5)I accepted all the the default (no selection) until i'm asked to
start the build [default NO], i did yes:
then i get this error:

config.status: executing default commands
make[2]: entrant dans le répertoire « /mspgcc4/build/binutils-2.20.1-build/bfd »
Making info in doc
make[3]: entrant dans le répertoire «
/mspgcc4/build/binutils-2.20.1-build/bfd/doc »
make chew
make chew
make[4]: entrant dans le répertoire «
/mspgcc4/build/binutils-2.20.1-build/bfd/doc »
make[4]: entrant dans le répertoire «
/mspgcc4/build/binutils-2.20.1-build/bfd/doc »
make[4]: « chew » est à jour.
make[4]: « chew » est à jour.
make[4]: quittant le répertoire « /mspgcc4/build/binutils-2.20.1-build/bfd/doc »
make[4]: quittant le répertoire « /mspgcc4/build/binutils-2.20.1-build/bfd/doc »
./chew -f /mspgcc4/build/binutils-2.20.1-build/../binutils-2.20.1/bfd/doc/doc.str
(Continue reading)

Adam Ford | 4 May 21:38
Favicon

Linker script questions

We have an older project at my work where we use the TI BSL loaded to
load code over RS-232.  Our code is broken up into two categories a
configuration file and a firmware file and they are both loaded together.

The configuration file is a list of constants stored in flash and
specific addresses and they are unique for each of our customers, but
the firmware file is the same.

The code we have now was written with IAR, and I'm trying to port it
over to mspgcc.

What I'd like to be able to do is compile the firmware with the linker
script specifying certain addresses of data, but I don't want the
compiler to actually put any data at those locations.

For the configuration, I'd like to just compile the constant variables
without firmware.

The problem I see is that GCC initializes the constant variables in the
FW which I have to go and manually delete because those constants are
loaded from a separate txt file.  I'd like to have that more streamlined
technique to build both.  Any ideas on the best way to do that?

thanks

adam

This email, including any attachments and files transmitted with it, are for the sole use of the intended
recipient(s) to whom this email is addressed, and may contain confidential and/or privileged
information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the
(Continue reading)


Gmane