Re: BxDism question Re: stack

Started by Mike Perks in BasicX12 years ago 1 reply

arhodes19044 wrote: > I used BxDism, and confirmed that I was running out of stack space in > a major way. I deleted wasted...

arhodes19044 wrote: > I used BxDism, and confirmed that I was running out of stack space in > a major way. I deleted wasted space/variables and fised it up and > have just enough by 5 bytes, according to BxDism. This is tight > enough that I am worried. None of my functions are very odd, so all > the required stack should be pretty obvious i


BxDism question Re: stack

Started by arhodes19044 in BasicX12 years ago 15 replies

I used BxDism, and confirmed that I was running out of stack space in a major way. I deleted wasted space/variables and fised it up and ...

I used BxDism, and confirmed that I was running out of stack space in a major way. I deleted wasted space/variables and fised it up and have just enough by 5 bytes, according to BxDism. This is tight enough that I am worried. None of my functions are very odd, so all the required stack should be pretty obvious in static analysis. With only 5 to spare, I will


Task stack usage?

Started by arhodes19044 in BasicX12 years ago 12 replies

When a task calls a subroutine, do all the subroutine's local variables get placed on the Task's stack, or the main stack? I am...

When a task calls a subroutine, do all the subroutine's local variables get placed on the Task's stack, or the main stack? I am sure I will find this out shortly, but if I have a task sleep for a while and then call a few subroutines with no variables being passed, but with a bunch of local variables in the subs, will I greatly enlarge my


Stack overflow I think

Started by Peter Richeson in BasicX7 years ago 3 replies

My first attampt at multitasking with BasicX and I think I killed a BX24. When I loaded and ran my program the display went nuts and now I can't...

My first attampt at multitasking with BasicX and I think I killed a BX24. When I loaded and ran my program the display went nuts and now I can't get the BX24 to respond. Tried reset button, load program then turning on the unit, nothing helps. have I killed it? Since stack is in ram i did not think a stack overflow would kill the unit. Next question, how do I make sure i don't kill another ...


Task stack requirement calculated by Ramalyze

Started by Bob Dengler in BasicX13 years ago 1 reply

Is the stack requirement for tasks reported by Ramalyze the total number of elements needed in the stack byte array, or should I be...

Is the stack requirement for tasks reported by Ramalyze the total number of elements needed in the stack byte array, or should I be adding 15 for the task frame? I've tried using the reported requirement from Ramalyze as the size of the task array & seem to be having problems with i


BX-24 stack problem? RAM usage?

Started by don_kinzer in BasicX14 years ago 6 replies

Greetings, I'm working on an application that uses a BX-24 and I've been seeing some strange problems that I suspect are...

Greetings, I'm working on an application that uses a BX-24 and I've been seeing some strange problems that I suspect are caused by stack overflow. I've been reducing String usage and I've also changed the string size from 64 to 24 and those two changes have helped me get mu


Question on bxDism

Started by gui_dpcs in BasicX12 years ago 2 replies

Hi, I just downloaded the bxDism program from Mike Perks' website and have been trying it out. We've been looking for a good way to do...

Hi, I just downloaded the bxDism program from Mike Perks' website and have been trying it out. We've been looking for a good way to do stack analysis. I ran it on our current project and it showed that we're about 100 bytes short of having enough stack space. You would think the project would hardly run at all if it's that far short. I tried r


Stack pops?

Started by Tom Becker in BasicX13 years ago 1 reply

If, while deep into a nest of Calls, I need to abend and return to several levels up - skipping the intermediary Calls - can I, in...

If, while deep into a nest of Calls, I need to abend and return to several levels up - skipping the intermediary Calls - can I, in essence, pop the BasicX stack myself? Tom Tom Becker --... ...-- www.RighTime.com The RighTime Cloc


size of task stack

Started by Tom Stutsman in BasicX13 years ago 4 replies

I was wondering how you figure out how much task space to use for a program running in the background. For instance if I am running...

I was wondering how you figure out how much task space to use for a program running in the background. For instance if I am running some servo's in the background on my robot I usually specify a task stack (1 to 30), but I am going to be doing that plus run 2 (13 line) loop progr


Question about Stack-Size

Started by itisnt in BasicX13 years ago 8 replies

Hi Does anybody know if the amount of Bytes used by a given Task is always the same ? Or can it change from Run to Run ? ...

Hi Does anybody know if the amount of Bytes used by a given Task is always the same ? Or can it change from Run to Run ? My Test-Prog initializes the Task-Stack Memory with hex "FF", starts the Task and when i press Button 1, it prints out the hol


Multiple Instances of a Task

Started by Don Kinzer in BasicX12 years ago 5 replies

Has anyone ever tried to invoke multiple instances of a given task so they are running "at the same time"? I tried the code below which...

Has anyone ever tried to invoke multiple instances of a given task so they are running "at the same time"? I tried the code below which seems like it ought to work. However, it only runs if I comment out the second and third task invocations. I have separate a task stack for each invocation - an obvious requirement. I tried different stack sizes; I


multitasking problem

Started by gvartani in BasicX12 years ago 10 replies

Background? I have written a main program that is intended to read GPS text as a task (140 task stack) and run an xbotx. For my bot I am...

Background? I have written a main program that is intended to read GPS text as a task (140 task stack) and run an xbotx. For my bot I am using code that came from Netmedia xbotx. The servo driver module calls a public task within the sub "ServoTask" (25 task stack). This task is dimensioned as private within the module. Current problem?


RAM/stack Analysis Tool

Started by Don Kinzer in BasicX14 years ago 1 reply

I've written a tool to analyze a BasicX project and estimate the total RAM space that will be used (static variables plus stack)....

I've written a tool to analyze a BasicX project and estimate the total RAM space that will be used (static variables plus stack). It uses information in the .mpp file together with information collected by performing a static analysis of the source file components of the project


MultiTasking Question

Started by Bob Roos in BasicX13 years ago 3 replies

I have been reading about multitasking. Where does the stack for each task reside? If RAM is limited to 400(?) bytes and they...

I have been reading about multitasking. Where does the stack for each task reside? If RAM is limited to 400(?) bytes and they talk about 1000 tasks running in a test how does it fit? Thanks, Bob Roos


microcontroller with ethernet

Started by David Sousa Mendes in BasicX7 years ago 13 replies

Hello fellows I've been working with BX24 for quite some time. Here, at AmberjackSolutions, we are now looking for another kind of micro...

Hello fellows I've been working with BX24 for quite some time. Here, at AmberjackSolutions, we are now looking for another kind of micro controller... We are looking for one with multiple counters, ADCs, I/O pins, memory and an Ethernet card included with TCP/IP stack and http support. The best would be a supplier of several different microcontrollers, thast we could choose depending o...


Case statement Vs Else If efficiency

Started by juniortajrin in BasicX13 years ago

I am designing a simple interpreter on a BX-24 board and would like to know which is the more efficient between using a...

I am designing a simple interpreter on a BX-24 board and would like to know which is the more efficient between using a select case construct or a number of If...Then...ElseIf statements. I am concerned about speed, stack usage and how well it scales with incr


Re: IP Theft. Was (DC motor Questions (was PWM Generation))

Started by arhodes19044 in BasicX12 years ago

And sometimes the similarity is due to the fact that there is ONE good way to do the job. I once wrote some ASM code to use the PC...

And sometimes the similarity is due to the fact that there is ONE good way to do the job. I once wrote some ASM code to use the PC FPU for some intense 80 bit repetetive math operations. Not many variables, but a TON or recursive calculations. It was possible to do nearly all the calculations in the FPU stack. It was as streamlined as I knew ho


Having trouble downloading programs

Started by gvartani in BasicX12 years ago 9 replies

I was tweaking a program for stack size and time delay until I realized pressing the reset button wasn't enough to get the program to ...

I was tweaking a program for stack size and time delay until I realized pressing the reset button wasn't enough to get the program to download. I had to disconnect and reconnect the power. Then eventually the program stopped executing. I figured maybe I had been running the microcontroller for too long (all day). I gave it a break, and star


Multi Tasking

Started by cadurrans in BasicX9 years ago

I'm just coming back to my BasicX-24 having dabbled with various other controllers, corrupted disks and various other events... I remember...

I'm just coming back to my BasicX-24 having dabbled with various other controllers, corrupted disks and various other events... I remember problems with memory/stack allocation when multi-tasking but that there was a tool that could help you fix the problems. bxDism written by Mike Perks? Is this still available? The old link seems to have disappeared, or is the function in the com...


RAM efficient programming - How?

Started by John Ely in BasicX13 years ago 1 reply

Hello, This question is a rather broad and open ended one. I've heard bits and pieces of programming advice, but I wonder...

Hello, This question is a rather broad and open ended one. I've heard bits and pieces of programming advice, but I wonder if there is an article someplace with the basics of conserving RAM (particularly keeping the stacks low). How do I best keep stack space fr