Hi,
I put an rfm69 on an Arduino shield and have been using it along with my r3 to do program development. The nice thing about the Arduino that I miss with the Moetino is that the Arduino IDE resets the micro when you open the serial monitor. I'm using a lot of print statements for debug. Unfortunately, I have to very quickly click on the serial monitor button after my sketch has uploaded or I'll miss the first messages. Well it's not all that bad, I've added some code that makes it wait for me to hit enter before it takes off.
OK, so what's my point.
Today I was using windows Hyperterm and when I click 'disconnect' and then 'call' it resets Moteino!!! Am I doing something wrong or does Moteino need some adjustment to restart with the IDE serial monitor restart?
TIA,
John
You know ... I've observed this behavior lately as well whereas before it was always resetting the port as far as I can recall. I really don't know what the deal is exactly.
The IDE certainly has the ability to reset the board. It might just be something different in the latest IDE version.
Not sure what to suggest.
Maybe you can add some delay(1-2sec) for debugging in the meantime... I know it's not ideal but it will help you debug.
I just tried three older versions of the IDE and none of them reset it.
It looks like the RTS jumper is in place on the back of the FTDI board and the DTR is open. Do you think opening RTS and closing DTR will fix it. I see in the Arduino boards DTR does the resetting.
DOH!
Of course, it's because DTR will always reset the board. RTS will not, except the first time it looks like.
So lately I was using my own FTDI adapters a lot and that's why I got confused.
I completely missed the fact that my FTDI adapters are wired with RTS by default. But you can switch to DTR by cutting a jumper and soldering the other, on the underside of the board.
As illustrated here:
(http://farm4.staticflickr.com/3806/9801340924_ef0cbf577c_o.jpg) (http://www.flickr.com/photos/15304611@N03/9801340924/)
FTDI switching DTR/RST (http://www.flickr.com/photos/15304611@N03/9801340924/) by FelixRusu (http://www.flickr.com/people/15304611@N03/), on Flickr
Much better! :)
Works for Me!
Thanks
Hey, now that I think about it, I sometimes prefer the non-resetting behavior. Especially when I'm testing batches of Moteinos that I manufacture. The resetting always delays by the few seconds that are spent in the bootloader, so that adds up when testing many boards, a bit annoying.
So ... I think I still prefer that over the auto-reset. And the jumper allows to keep an FTDI adapter for resetting purposes.