call functions above 64kB?
Many thanks,
- Wayne Uroda
simple build steps for me? I
see others are building it ok so I am obviously missing something.
Perhaps the build steps could be put on the wiki too? That would be
great. (Also a link to the wiki from the mspgcc website would be good
but I am not going to hold my breath).
Thanks!
- Wayne Uroda
If the header file is included in multiple C files, this is why you are seeing
the multiple definition error. It is more correct to put the definition in one
C file only, then put a declaration in the header file:
Strings.c:
const char AverageCurrentDisp[] = Bat Avg Current;
Strings.h:
Are interrupts enabled? Is the timer interrupt enabled? The timer's clock
source is still active in LPM1?
Don't know what else it could be! I've not used an RTOS on 430 though.
- Wayne
Sent via BlackBerry® from Vodafone
-Original Message-
From: Bernard Mentink bment...@gmail.com
Date:
I know this is again off topic, but, what does the OS/scheduler do if there are
no threads? :)
Why not just make your own defines for the LPM modes the way you like?
Sent via BlackBerry® from Vodafone
-Original Message-
From: Bernard Mentink bment...@gmail.com
Date: Tue, 3 Mar 2009
Are you compiling with the -nostartfiles flag? If so, you can define the
vectors yourself (maybe you need to, I am not sure...)
Make an array which is the size of your vectors, and initialise it manually
Something like
__attribute__ ((section(.vectors))) unsigned short loadVectors[] =
I believe it is to do with the pull-up resistors available in the 2 family
chips. The 1 family didn't have pull-ups.
- Wayne
Sent via BlackBerry® from Vodafone
-Original Message-
From: Anthony L blueshockz...@hotmail.com
Date: Mon, 30 Mar 2009 07:43:18
To:
I don't see any reason not to simply keep resetting the WDT as part of the C
startup routine. Sure it probably means the startup time is increased by some
percentage (20%? 30%?) but it seems more logical to match the behaviour with
what the datasheet says.
Having to turn off or reset the
What is MSP430X support like on this new port? Stable enough for real world
production use?
- Wayne
Sent via BlackBerry® from Vodafone
-Original Message-
From: Peter Jansen pwjan...@yahoo.com
Date: Wed, 9 Sep 2009 02:30:41
To: GCC for MSP430 -
...@eit.uni-kl.de
TU Kaiserslautern, Germany
Department of Real-Time Systems
== End Quote ==
Good luck!
- Wayne Uroda
try declaring i as volatile, or the compiler will probably get rid of it since
it has no effect or side-effect.
Sent via BlackBerry from Vodafone
-Original Message-
From: Carl c...@turner.ca
Date: Fri, 19 Feb 2010 18:29:03
To: mspgcc-users@lists.sourceforge.net
Subject: [Mspgcc-users]
at 09:08 +0100, N. Coesel wrote:
Carl,
Try to declare it outside the function (as a global).
At 19:43 19-2-2010 -0800, you wrote:
I tried declaring as volatile and it is at the exact same address.
Carl
On Sat, 20 Feb 2010 01:35:03 +
Wayne Uroda wayne.ur...@grabba.com wrote:
try
That certainly looks strange how it is adding to the stack. (First line is
taking the __stack symbol, adding 4, and putting it in R1 (the stack pointer).
__stack is defined by the linker so the full linked listing may shed some light.
Can you use
msp430-objdump -D output.elf
To dump the final,
According to the C standard, when you apply the unary operator - to x, x
is first promoted to an integer.
I think the difference between the PC and the MSP430 is that on the
MSP430, the variable is promoted to 16bits which is the same size as the
short. On the PC, x is first promoted to 32bits.
Hi Guys,
I am moving to the latest version of mspgcc and notice that the critical
keyword no longer compiles.
Any tips on what supersedes the critical keyword or should I just put dint and
eint around my critical functions?
Thanks,
- Wayne
I have a couple of stupid questions:
1. Is there any way to search the mspgcc-users mail archive on sourceforge? (I
may not have needed to ask question 2).
2. How/where can I get MSP430-insight? Is it available in binary form for
windows 7? Or is there now a better alternative?
Thanks,
-
Thanks Eric.
I managed to find insight in the last mspgcc4 build - upon seeing how awful it
looks I think I'll stick with gdb.
- Wayne
From: Eric Decker [cire...@gmail.com]
Sent: Tuesday, 11 October 2011 8:32 AM
To: Wayne Uroda
Cc: GCC for MSP430 - http
I too didn't know anything about MinGW and always was a little afraid to try,
but it isn't hard really. It is just a compiler which lets you make windows
executables afaik.
Building mspgccdebug under windows really is quite easy if you follow the
instructions linked in the previous email. The
I have a question which isn't technically related to MSPGCC (more of a msp430
question) but I thought one of you smart people might know.
Imagine the following scenario:
/* 1*/ while (1)
/* 2*/ {
/* 3*/ if (!port1.in.pin1)
/* 4*/ {
/* 5*/ // Enable interrupt
, in the future I will post there, but I do detest having to sign
up for yet another forum.
Thanks,
- Wayne
-Original Message-
From: pabi...@gmail.com [mailto:pabi...@gmail.com] On Behalf Of Peter Bigot
Sent: Tuesday, 6 December 2011 10:29 AM
To: Eric Decker
Cc: Sergio Campamá; Wayne Uroda; mspgcc
' MSP forum: e2e.ti.com.
JMGross
- Ursprüngliche Nachricht -
Von: Wayne Uroda
An: mspgcc-users@lists.sourceforge.net
Gesendet am: 06 Dez 2011 00:40:59
Betreff: [Mspgcc-users] Enter LPM4 without missing the wakeup interrupt
I have a question which isn't technically related to MSPGCC (more
they ever need to port the code to IAR ;)
- Wayne
-Original Message-
From: pabi...@gmail.com [mailto:pabi...@gmail.com] On Behalf Of Peter Bigot
Sent: Wednesday, 7 December 2011 11:59 AM
To: Wayne Uroda
Cc: mspgcc-users@lists.sourceforge.net
Subject: Re: [Mspgcc-users] Enter LPM4 without missing
December 2011 12:34 PM
To: Wayne Uroda
Cc: Peter Bigot; mspgcc-users@lists.sourceforge.net
Subject: Re: [Mspgcc-users] Enter LPM4 without missing the wakeup interrupt
Hey, maybe I'm straying a bit from the conversation, but
1. Is there a way to obtain (and set) the registers? I want to try a feature
between the two contexts (make sure
to write/read multiword types/structs from critical sections to avoid data
corruption).
- Wayne
- Original Message -
From: Sergio Campamá [mailto:scamp...@ing.puc.cl]
Sent: Wednesday, December 07, 2011 08:56 PM
To: Wayne Uroda
Cc: Peter Bigot big
Hi Sergio,
For my work many years back I ran into the problem where my stack was
overflowing (too much code in too little ram unfortunately) - I wrote a static
analyser which took the ASM file listing of my entire project, built a big
directed graph from all the functions and then analysed
.
I plan on using C++. Any comments are welcome.
Thanks,
- Wayne Uroda
--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
: Thursday, 12 January 2012 11:19 PM
To: Wayne Uroda
Cc: mspgcc-users@lists.sourceforge.net
Subject: Re: [Mspgcc-users] Static analysis stack tool
On Thu, Jan 12, 2012 at 6:49 AM, Wayne Uroda wayne.ur...@grabba.com wrote:
Hello,
I am interested in starting an open source tool for msp430 development
Hi Matthias,
I had a similar problem with an MSP430F5437 part (it failed C_IDENT3). Using
the latest version of mspdebug and the new MSP430.dll v3 driver and firmware
has fixed the problem.
I hope it also works for you.
- Wayne
-Original Message-
From: Matthias Ringwald
I notice that iostructures.h hasn't been a part of the MSPGCC project for a
while now...
I am wondering if there is a reason for this? I always found these structures
were a very convenient way to access individual pins, and I can't recall ever
suffering any strange problems from using the
Hi,
I feel quite foolish asking the following question... Please don't judge me too
harshly...
In my MSPGCC based system I have got the following #defines which I use for
critical (interrupts disabled) access around volatile memory which is modified
by interrupt routines:
#define
Thanks everyone for the very interesting discussion, as always.
I will reform my ways and do something sensible like
void myFunction(void)
{
// non-atomic work here
{
UInt16 interruptState = startCriticalSection();
// critical/atomic statements
Hi Peter,
This is amazing work. I am very excited for 20bit support in mspgcc.
After reading the document I want to ask what may be an extremely out-there
question:
I gather that most people who require far code support should use the compiler
options -mc20 and -msr20. I am not sure how
Hi,
I have been doing a bit of work on MSPDebug over the weekend trying to
figure out a few issues I've been having. The one problem I can't solve
is when using msp430-gdb and mspdebug, the code executes about ten times
slower than it should (when using the new tilib driver which makes use
of
: Monday, 30 April 2012 7:14 AM
To: Wayne Uroda
Cc: mspgcc-users@lists.sourceforge.net
Subject: Re: [Mspgcc-users] Slow execution with MSPDebug, using tilib driver
(msp430.dll v3)
At Sun, 29 Apr 2012 23:52:37 +1000, Wayne Uroda wrote:
I have been doing a bit of work on MSPDebug over the weekend trying
and
msp430-gdb when used with the tilib driver and v3.2.3.15 of MSP430.dll.
Thanks for looking into it.
- Wayne
-Original Message-
From: Stolyar, Rostyslav [mailto:r-stol...@ti.com]
Sent: Monday, 30 April 2012 5:18 PM
To: Wayne Uroda; Daniel Beer; Wayne Uroda
Cc: mspgcc-users
Hi Paul,
Even though the official line is don't use iostructures, I am still
a big fan of this method.
I have attached the header file I wrote for use with some 2 family parts.
You should find it easy to adapt to 1 family or 5 family parts, also
you should double check that everything is in the
I am not a compiler expert, but I have been writing embedded software for 8
years now - most of that has been using the msp430 and all of that on mspgcc.
I certainly understand all the arguments being put forth, but I have to say
that of the many problems I have encountered over the years, I
This might be off base, but I've had similar issues when there was a space in
my path to mspgcc in the newer versions.
- Wayne
On 16/03/2013, at 5:53, garyr ga...@fidalgo.net wrote:
I've been using the mspgcc toolchain I downloaded in 2006. I'm now trying to
switch to the latest version,
LPM4 is a standalone macro which enters LPM4:
#define LPM4 _BIS_SR(LPM4_bits) /* Enter Low Power Mode 4 */
- Wayne
On Tue, Mar 19, 2013 at 8:44 PM, Dean Chester dean.g.ches...@gmail.com wrote:
Hi,
When I compile my source code I get the following error:
main.c: In function ‘main’:
Hi,
I just want to double check, is the interrupt syntax described here:
http://mspgcc.sourceforge.net/manual/x918.html
still modern and current? I know many parts of MSPGCC have changed, and
I may be getting confused with IAR or code composer because somewhere I
recall the ISR syntax changed
Thanks, so, is this syntax still current? I.e. hasn't been superseded?
On 19/03/2013 11:05 PM, Peter Bigot wrote:
That page suggests including signal.h and using the interrupt macro.
On Tue, Mar 19, 2013 at 7:56 AM, Wayne Uroda w.ur...@gmail.com
mailto:w.ur...@gmail.com wrote:
Hi
Hi,
Can anybody comment on LTO or WPO’s effect on optimizing for space - I have
run out of flash memory and would rather not refactor my code at the moment. I
only need 10 more bytes or so, for today at least... Yes it’s not ideal, such
is life.
I am using mspgcc 20120406-p20120911 and when
Thanks, it works great!
- Wayne
From: Peter Bigot
Sent: Monday, April 22, 2013 11:17 AM
To: Wayne Uroda
Cc: MSPGCC list
Subject: Re: [Mspgcc-users] Whole program optimization / Link time optimization
I've never tested mspgcc for any whole-program optimizations. A common and
supported way
Would either of these solutions work?:
- use a scheme like Malloc/free to allocate the buffers when you need them
- allocate the buffers on the stack (is there a practical limit to doing this?)
and that way they can be recycled when not in use
The terrible downside with stack based allocation
Hi Daniel,
Yesterday I was looking at just this and to my surprise there was one extra
word allocated to .noinit. I had never seen this before in all my years, and
I was almost filling over it with a pattern to measure my stack usage. My point
is that one should add the size of bss and data
I don't think bt actually works correctly on mspgdb (at least it never has for
me in the last 6 years). I recommend you check the sp directly with the info
registers command (or simply i r). The sp is r1 if I recall correctly.
Then you can dump the memory in your stack and do something of a
Hello,
I am trying to port FreeRTOS to the MSP430F5519.
In order to write the context switching part, I need to write a timer
interrupt service routine in pure assembly (the compiler right now is doing
some extra push before I can do anything in the ISR, even with nothing in
the body...)
How
it all.
- Wayne
On 11/12/2013, at 16:29, Hynek Sladky ec...@centrum.cz wrote:
Hi Wayne,
have You tried __attribute__ ((naked)) ? This makes function without any
push/pop... just return. Inside body use asm ( ... );
Hynek
Dne 11.12.2013 4:48, Wayne Uroda napsal(a):
Hello,
I am trying
supported but it could be if people find it useful.
Peter
On Tue, Dec 10, 2013 at 9:48 PM, Wayne Uroda w.ur...@gmail.com wrote:
Hello,
I am trying to port FreeRTOS to the MSP430F5519.
In order to write the context switching part, I need to write a timer
interrupt service routine
Hi,
I make extensive use of inline functions in my code, as below:
extern inline void setClockLine(Bool value)
{ ... }
Sometimes I put these definitions in .c files, sometimes in .h files (I'm
not sure if that makes a difference, apart from scope).
The code builds and links at -O (or
I believe your problem is that in the timer A1 ISR, you need to read from
TA0IV in order to clear the interrupt (timer A1 isn't fired from an
interrupt flag but rather from the grouping of events which are then routed
through TA0IV, unless I am mistaken)
17.2.6 Timer_A Interrupts
Two interrupt
Hello all,
I need to produce a Ti .txt file to use with Ti USB BSL utility.
Caveat - I already have ihex2titext.exe which came with some ancient
version of MSPGCC. The exe file is dated November 2006. The problem with
this version is that it generates one contiguous listing for main code
memory,
unix2dos on the output file to use the proper CR/LF stuff.
# TI TXT file
$(OUTDIR)/%.txt: $(OUTDIR)/%.hex
$(MAKETXT) -O $@ -TITXT $ -I
$(UNIX2DOS) $(OUTDIR)/$(TARGET).txt
On Thu, Jul 31, 2014 at 9:05 AM, Chris Liechti cliec...@gmx.net wrote:
Am 31.07.2014 um 03:24 schrieb Wayne
Hi Mark,
I've never had luck with backtraces even when using GDB (perhaps due to
excessive optimisation).
I have managed to do a manual backtrace. If you know the PC then that will give
you the current function. You can then go back through each word of the stack
and look for values which
Hi Ben,
I've been using eclipse and MSPGCC for a long time now, and while my
configuration might not match exactly what you want (I tend to avoid cygwin
where possible because the DLL nightmares drive me mad), here are the
instructions I put together for myself to follow and they've always worked
"flag" should be marked volatile, otherwise the optimiser may see it never
changes inside the body of the loop and omit checking the flag entirely.
- Wayne
> On 9 Nov 2015, at 08:01, Ian Chapman wrote:
>
> Hi all,
> I'm having difficulty understanding this
Hello,
I have a question about instruction reordering in the compiler.
In this blog
http://preshing.com/20120625/memory-ordering-at-compile-time/
It says that a compiler barrier should be used where writes to memory must not
be reordered.
My MSP430 code is all bare metal,
57 matches
Mail list logo