Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal freezes after multiple funtion calls #18

Open
Volhout opened this issue Jun 11, 2016 · 1 comment
Open

Terminal freezes after multiple funtion calls #18

Volhout opened this issue Jun 11, 2016 · 1 comment

Comments

@Volhout
Copy link

Volhout commented Jun 11, 2016

Compiled tiny basic 0.13 and uploaded to UNO. Arduino 1.0.3 linux. Seems to run fine, until i use funtions often. I.e. Dread() or rnd(). Then terminal freezes (refuses input chars, ctrl-c is not recognised anymore).
When i make changes indicated in othe issue, and compile with 1.1.x arduino for linux, the terminal does not freeze, but outputs characters afte completing program with multiple fubtion calls.
Example: make a simple basic program that reads digital inout 256 successive times.

Solution ( i dont know how to use github, commit and such, but found the solution to the problem)

The memory allocation reserves 1160 bytes for system variables. Change this to 1200 bytes, then the problems are gone.

Maybe this is due to compiling under linux.

I post this here so some may benefit.

@Volhout
Copy link
Author

Volhout commented Jun 11, 2016

By the way, i also added a few lines of code in the command parser that recognise abreviated basic commands. For more efficient memory use on cost of readability.

I.e.
10 P."Hello world"
Can be used in stead of
10 PRINT "Hello world"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant