energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
798 stars 670 forks source link

Serial monitor window doesn't reset processor #76

Closed RickKimball closed 12 years ago

RickKimball commented 12 years ago

In the Arduino environment when you open or close the console window, it resets the processor. Do we want to emulate this behavior? I was trying out a solution using mspdebug to reset the chip. However, I'm not sure if this is something we want to do. Maybe we should just document that it doesn't happen. Having the user press the reset button is actually more flexible but unexpected if you have used the Arduino.

pbrier commented 12 years ago

I would suggest this is something for "advanced" features

robertinant commented 12 years ago

I never understood why the board is reset on console close. Do you know of functionality/sketches that depends on this? I think we should document it for now and monitor for code/users depending on it.

RickKimball commented 12 years ago

When you run the ASCII Table example it outputs serial output once at startup. If you don't open the window quickly enough you miss it. Worse though is that opening the window will show partial data which doesn't look right if you only see some of it. If the processor is reset on window open, then the example output is shown fully.

This is true of any sketch that outputs data once at startup.

@pbrier I like all those suggestions.

-rick

pbrier commented 12 years ago

If you start implementing the last one (the full blown debugger), I'll take on the task of the other two :-)