Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430





Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | MSP430 | Hi all, Stack overflow


Advertise Here

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

Hi all, Stack overflow - Bobby Baskar - Oct 15 11:43:11 2009

Dear All,
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Can anyone help me in solving th=
is problem in IAR compiler.
=A0
The stack 'Stack' is filled to 92% (74 bytes used out of 80). The warning t=
hreshold is set to 90%
=A0
Have a nice day.
=A0
Bobby
Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. h=
ttp://in.overview.mail.yahoo.com/photos

[Non-text portions of this message have been removed]

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )


Re: Hi all, Stack overflow - Michael - Oct 15 12:09:15 2009

First, it is not necessary a problem, it's just a warning as it hasn't over=
flowed yet. You need to know what the stack is and how it is used to unders=
tand what the warning means and if you need to do something about it and wh=
at that would be.

But to answer your question:
You have a bucket. You have someone watching it. He gives you a warning whe=
n it's 90 percent full.
The watcher is sending you a warning because it is 92% full. What do you do=
if you don't want him to give you a warning?
Either increase the stack size (override the default 80 bytes), increment t=
he treshold (or shut him up) or decrease the stack usage. You can do the la=
tter by moving local variables to global ones, using smaller variables like=
chars instead of ints where allowed, or reduce function call nesting. Each=
time you call a function, local variables from the CALLING function are pu=
shed into the stack. IAR has a very useful option where you can see which f=
unctions are presently on the stack (you can see the stack 'tree'). Don't r=
emember where it is. Maybe View -> Stack?

Anyway, you first need to learn what the stack is.

Regards,
Michael K.

--- In m...@yahoogroups.com, Bobby Baskar wrote:
>
> Dear All,
> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Can anyone help me in solving =
this problem in IAR compiler.
> =A0
> The stack 'Stack' is filled to 92% (74 bytes used out of 80). The warning=
threshold is set to 90%
> =A0
> Have a nice day.
> =A0
> Bobby
>=20
>=20
> Now, send attachments up to 25MB with Yahoo! India Mail. Learn how.=
http://in.overview.mail.yahoo.com/photos
>=20
> [Non-text portions of this message have been removed]
>

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

RE: Hi all, Stack overflow - "Jitendra Chauhan, Noida" - Oct 15 13:02:47 2009


Please don't set any limit the stack. Set it to auto.

Regards,
Jitendra

From: m...@yahoogroups.com [mailto:m...@yahoogroups.com] On Behalf Of Bobby Baskar
Sent: Thursday, October 15, 2009 12:32 PM
To: m...@yahoogroups.com
Subject: [msp430] Hi all, Stack overflow

Dear All,
Can anyone help me in solving this problem in IAR compiler.

The stack 'Stack' is filled to 92% (74 bytes used out of 80). The warning threshold is set to 90%

Have a nice day.

Bobby

Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/photos

[Non-text portions of this message have been removed]
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------
[Non-text portions of this message have been removed]

------------------------------------

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Hi all, Stack overflow - buffaloengineer - Oct 16 1:08:31 2009

Is there a way to set it to auto? Mine just says choose a number between 0 and 65535.

--- In m...@yahoogroups.com, "Jitendra Chauhan, Noida" wrote:
> Please don't set any limit the stack. Set it to auto.
>
> Regards,
> Jitendra
>
> From: m...@yahoogroups.com [mailto:m...@yahoogroups.com] On Behalf Of Bobby Baskar
> Sent: Thursday, October 15, 2009 12:32 PM
> To: m...@yahoogroups.com
> Subject: [msp430] Hi all, Stack overflow
>
> Dear All,
> Can anyone help me in solving this problem in IAR compiler.
>
> The stack 'Stack' is filled to 92% (74 bytes used out of 80). The warning threshold is set to 90%
>
> Have a nice day.
>
> Bobby
>
> Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. http://in.overview.mail.yahoo.com/photos
>
> [Non-text portions of this message have been removed]
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
> [Non-text portions of this message have been removed]
>

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Enabling analog inputs of Adc10 - Abimbola Jubril - Oct 16 10:37:15 2009

Dear all,
Please, help me out. I modified the code that came with the ez430-2500rf but it seemed the input is still behaving as digital input. It only moves from high to low and low to high.

find below the clip of the code:
************************************************************************************

uint8 msg[64];
__no_init volatile int dataloc[16] @ 0x200;
void ADC10_AcquireData()
{

ADC10CTL1 = INCH_7 + CONSEQ_3; // A7/A0, repeat multi channel
ADC10CTL0 = SREF_0 + ADC10SHT_2 + MSC + ADC10ON + ADC10IE;
ADC10AE0 = 0xFF; // P2.0,1,...7 ADC option select
ADC10AE1 |= 0xF0;
ADC10DTC1 = 0x20; // 32 conversions

for (;;)
{
P1OUT |= 0x01; // Set P1.0 LED on
ADC10CTL0 &= ~ENC;
while (ADC10CTL1 & BUSY); // Wait if ADC10 core is active
ADC10SA = 0x200; // Data buffer start
ADC10CTL0 |= ENC + ADC10SC; // Sampling and conversion ready
__bis_SR_register(CPUOFF + GIE); // LPM0, ADC10_ISR will force exit
P1OUT &= ~0x01; // Clear P1.0 LED off
}
//****************************************************

msg[0]='#';
// msg[9]= '#';
for(int i=0; i<8;i++){
msg[i+1] =(dataloc[i]>>2)&0xFF;
}
}

thanks

Jubril Abimbola M.
Department of Electronic and Electrical Engineering
Obafemi Awolowo University,
Ile-Ife, Nigeria.


________________________________
From: Michael
To: m...@yahoogroups.com
Sent: Thu, October 15, 2009 9:09:04 AM
Subject: [msp430] Re: Hi all, Stack overflow

First, it is not necessary a problem, it's just a warning as it hasn't overflowed yet. You need to know what the stack is and how it is used to understand what the warning means and if you need to do something about it and what that would be.

But to answer your question:
You have a bucket. You have someone watching it. He gives you a warning when it's 90 percent full.
The watcher is sending you a warning because it is 92% full. What do you do if you don't want him to give you a warning?
Either increase the stack size (override the default 80 bytes), increment the treshold (or shut him up) or decrease the stack usage. You can do the latter by moving local variables to global ones, using smaller variables like chars instead of ints where allowed, or reduce function call nesting. Each time you call a function, local variables from the CALLING function are pushed into the stack. IAR has a very useful option where you can see which functions are presently on the stack (you can see the stack 'tree'). Don't remember where it is. Maybe View -> Stack?

Anyway, you first need to learn what the stack is.

Regards,
Michael K.

--- In msp430@yahoogroups. com, Bobby Baskar wrote:
>
> Dear All,
> Can anyone help me in solving this problem in IAR compiler.
>
> The stack 'Stack' is filled to 92% (74 bytes used out of 80). The warning threshold is set to 90%
>
> Have a nice day.
>
> Bobby
> Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. http://in.overview. mail.yahoo. com/photos
>
> [Non-text portions of this message have been removed]
>

[Non-text portions of this message have been removed]

------------------------------------

______________________________
Stellaris® MCU Family: New Parts, New Package, New Price.


(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Enabling analog inputs of Adc10 - Michael - Oct 19 14:29:59 2009

> I modified the code that came with the ez430-2500rf but it seemed
> the input is still behaving as digital input. It only moves from
> high to low and low to high.
What do you mean by that? If it's an analog input, it doesn't 'move' anything.

How are we supposed to help if you don't tell us anything? You don't say what you modified, not even which pin you chaged nor from what to what you changed it.
If you want help, make it easy for people to help you.

Michael K.

--- In m...@yahoogroups.com, Abimbola Jubril wrote:
>
> Dear all,
> Please, help me out. I modified the code that came with the ez430-2500rf but it seemed the input is still behaving as digital input. It only moves from high to low and low to high.
>
> find below the clip of the code:
> ************************************************************************************
>
> uint8 msg[64];
> __no_init volatile int dataloc[16] @ 0x200;
> void ADC10_AcquireData()
> {
>
> ADC10CTL1 = INCH_7 + CONSEQ_3; // A7/A0, repeat multi channel
> ADC10CTL0 = SREF_0 + ADC10SHT_2 + MSC + ADC10ON + ADC10IE;
> ADC10AE0 = 0xFF; // P2.0,1,...7 ADC option select
> ADC10AE1 |= 0xF0;
> ADC10DTC1 = 0x20; // 32 conversions
>
> for (;;)
> {
> P1OUT |= 0x01; // Set P1.0 LED on
> ADC10CTL0 &= ~ENC;
> while (ADC10CTL1 & BUSY); // Wait if ADC10 core is active
> ADC10SA = 0x200; // Data buffer start
> ADC10CTL0 |= ENC + ADC10SC; // Sampling and conversion ready
> __bis_SR_register(CPUOFF + GIE); // LPM0, ADC10_ISR will force exit
> P1OUT &= ~0x01; // Clear P1.0 LED off
> }
> //****************************************************
>
> msg[0]='#';
> // msg[9]= '#';
> for(int i=0; i<8;i++){
> msg[i+1] =(dataloc[i]>>2)&0xFF;
> }
> }
>
> thanks
>
> Jubril Abimbola M.
> Department of Electronic and Electrical Engineering
> Obafemi Awolowo University,
> Ile-Ife, Nigeria.
>
> ________________________________
> From: Michael
> To: m...@yahoogroups.com
> Sent: Thu, October 15, 2009 9:09:04 AM
> Subject: [msp430] Re: Hi all, Stack overflow
>
>
> First, it is not necessary a problem, it's just a warning as it hasn't overflowed yet. You need to know what the stack is and how it is used to understand what the warning means and if you need to do something about it and what that would be.
>
> But to answer your question:
> You have a bucket. You have someone watching it. He gives you a warning when it's 90 percent full.
> The watcher is sending you a warning because it is 92% full. What do you do if you don't want him to give you a warning?
> Either increase the stack size (override the default 80 bytes), increment the treshold (or shut him up) or decrease the stack usage. You can do the latter by moving local variables to global ones, using smaller variables like chars instead of ints where allowed, or reduce function call nesting. Each time you call a function, local variables from the CALLING function are pushed into the stack. IAR has a very useful option where you can see which functions are presently on the stack (you can see the stack 'tree'). Don't remember where it is. Maybe View -> Stack?
>
> Anyway, you first need to learn what the stack is.
>
> Regards,
> Michael K.
>
> --- In msp430@yahoogroups. com, Bobby Baskar wrote:
> >
> > Dear All,
> > Can anyone help me in solving this problem in IAR compiler.
> >
> > The stack 'Stack' is filled to 92% (74 bytes used out of 80). The warning threshold is set to 90%
> >
> > Have a nice day.
> >
> > Bobby
> >
> >
> > Now, send attachments up to 25MB with Yahoo! India Mail. Learn how. http://in.overview. mail.yahoo. com/photos
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
> [Non-text portions of this message have been removed]
>

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )