[Mspgcc-users] Beginners guide to contributing to MSPGCC please?

2008-11-27 Thread Wayne Uroda
call functions above 64kB? Many thanks, - Wayne Uroda

[Mspgcc-users] Help with building MSP430X gcc please!

2009-02-06 Thread 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

Re: [Mspgcc-users] multiple definition of ...

2009-02-13 Thread 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:

Re: [Mspgcc-users] Interrupt issues

2009-03-01 Thread Wayne Uroda
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:

Re: [Mspgcc-users] Interrupt issues

2009-03-02 Thread Wayne Uroda
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

Re: [Mspgcc-users] Interrupt vectors are ignored with asm rountines(MSP430F4783)

2009-03-18 Thread Wayne Uroda
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[] =

Re: [Mspgcc-users] # defines in Header Files

2009-03-30 Thread Wayne Uroda
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:

Re: [Mspgcc-users] changes of the memory mapping for family x5xx

2009-04-03 Thread Wayne Uroda
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

Re: [Mspgcc-users] Announcement: MSP430-GCC 4.3.4

2009-09-09 Thread Wayne Uroda
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 -

Re: [Mspgcc-users] source code stepping and backtrace

2009-12-10 Thread Wayne Uroda
...@eit.uni-kl.de TU Kaiserslautern, Germany Department of Real-Time Systems == End Quote == Good luck! - Wayne Uroda

Re: [Mspgcc-users] stack variable in flash?

2010-02-20 Thread 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]

Re: [Mspgcc-users] stack variable in flash?

2010-02-21 Thread Wayne Uroda
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

Re: [Mspgcc-users] stack variable in flash?

2010-02-22 Thread Wayne Uroda
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,

Re: [Mspgcc-users] problem converting signed shortto abs unsigned long

2010-02-24 Thread Wayne Uroda
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.

[Mspgcc-users] Critical keyword

2011-09-27 Thread Wayne Uroda
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

[Mspgcc-users] MSP430-insight

2011-10-10 Thread Wayne Uroda
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, -

Re: [Mspgcc-users] MSP430-insight

2011-10-10 Thread Wayne Uroda
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

Re: [Mspgcc-users] Confused about MSPGCC / MSPDEBUG...

2011-11-29 Thread Wayne Uroda
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

[Mspgcc-users] Enter LPM4 without missing the wakeup interrupt

2011-12-05 Thread Wayne Uroda
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

Re: [Mspgcc-users] Enter LPM4 without missing the wakeup interrupt

2011-12-05 Thread Wayne Uroda
, 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

Re: [Mspgcc-users] Enter LPM4 without missing the wakeup interrupt

2011-12-06 Thread Wayne Uroda
' 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

Re: [Mspgcc-users] Enter LPM4 without missing the wakeup interrupt

2011-12-06 Thread Wayne Uroda
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

Re: [Mspgcc-users] Enter LPM4 without missing the wakeup interrupt

2011-12-06 Thread Wayne Uroda
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

Re: [Mspgcc-users] Enter LPM4 without missing the wakeup interrupt

2011-12-07 Thread Wayne Uroda
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

Re: [Mspgcc-users] register save on thread switch (was: Enter LPM4 without missing the wakeup interrupt)

2011-12-08 Thread Wayne Uroda
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

[Mspgcc-users] Static analysis stack tool

2012-01-12 Thread Wayne Uroda
. 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

Re: [Mspgcc-users] Static analysis stack tool

2012-01-12 Thread Wayne Uroda
: 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

Re: [Mspgcc-users] mspdebug / FET v2 / 5528

2012-01-16 Thread Wayne Uroda
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

[Mspgcc-users] iostructures

2012-03-15 Thread Wayne Uroda
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

[Mspgcc-users] Stack push inside inline assembly

2012-04-17 Thread Wayne Uroda
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

Re: [Mspgcc-users] Stack push inside inline assembly

2012-04-17 Thread Wayne Uroda
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

Re: [Mspgcc-users] Draft 20-Bit Design/Interface Specification available for review

2012-04-26 Thread Wayne Uroda
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

[Mspgcc-users] Slow execution with MSPDebug, using tilib driver (msp430.dll v3)

2012-04-29 Thread Wayne Uroda
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

Re: [Mspgcc-users] Slow execution with MSPDebug, using tilib driver (msp430.dll v3)

2012-04-29 Thread Wayne Uroda
: 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

Re: [Mspgcc-users] Slow execution with MSPDebug, using tilib driver (msp430.dll v3)

2012-04-30 Thread Wayne Uroda
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

Re: [Mspgcc-users] port1.out.pin1 nomenclature

2012-07-16 Thread Wayne Uroda
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

Re: [Mspgcc-users] port1.out.pin1 nomenclature

2012-07-23 Thread Wayne Uroda
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

Re: [Mspgcc-users] Linker error

2013-03-16 Thread Wayne Uroda
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,

Re: [Mspgcc-users] Invalid Use of Void Expression

2013-03-19 Thread Wayne Uroda
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’:

[Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Wayne Uroda
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

Re: [Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Wayne Uroda
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

[Mspgcc-users] Whole program optimization / Link time optimization

2013-04-21 Thread Wayne Uroda
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

Re: [Mspgcc-users] Whole program optimization / Link time optimization

2013-04-21 Thread Wayne Uroda
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

Re: [Mspgcc-users] variable reusing

2013-05-14 Thread Wayne Uroda
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

Re: [Mspgcc-users] Size of global variable

2013-07-29 Thread Wayne Uroda
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

Re: [Mspgcc-users] SR getting corrupted

2013-09-05 Thread Wayne Uroda
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

[Mspgcc-users] Writing an ISR in pure assembly

2013-12-10 Thread Wayne Uroda
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

Re: [Mspgcc-users] Writing an ISR in pure assembly

2013-12-10 Thread Wayne Uroda
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

Re: [Mspgcc-users] Writing an ISR in pure assembly

2013-12-11 Thread Wayne Uroda
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

[Mspgcc-users] Minimum optimizations required to use inline functions

2014-04-12 Thread Wayne Uroda
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

Re: [Mspgcc-users] __delay_cycles() is not working with timerA interrupts

2014-07-04 Thread Wayne Uroda
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

[Mspgcc-users] Producing TI text files

2014-07-30 Thread Wayne Uroda
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,

Re: [Mspgcc-users] Producing TI text files

2014-08-01 Thread Wayne Uroda
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

Re: [Mspgcc-users] Looking at a a core; reading the stack.

2014-08-08 Thread Wayne Uroda
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

Re: [Mspgcc-users] Thingsquare Eclipse and GDB

2015-02-22 Thread Wayne Uroda
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

Re: [Mspgcc-users] while(flag)

2015-11-08 Thread Wayne Uroda
"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

[Mspgcc-users] Instruction reordering

2015-11-27 Thread Wayne Uroda
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,