Closed rei-vilo closed 12 years ago
Here's the alternative solution I've found:
timKnapen try this in your makefile for opening a serial terminal from Xcode:
serial: @echo " ---- open serial ---- " osascript -e 'tell application "Terminal" to do script "screen /dev/tty.usbmodem* 9600"' killserial: @echo " ---- close serial ---- " osascript -e 'tell application "Terminal" to do script "screen -X quit"'
You can then add these rules after and before your upload if you want.
So I close the topic.
I believe you're running this through Xcode, correct? I'm not too familiar with it, but it sounds like when it runs "make" it doesn't use an interactive terminal. A lot of command line apps will complain about that, screen and stty included.
That workaround seem alright, it pops up a new interactive terminal to run these commands. Does that sound right? I'm not seeing either of the tty errors.
Actually, I test both with Xcode and with the terminal because I suspect Xcode may have its idiosyncrasies.
I tested the osascript workaround with a target for Arduino UNO and it works fine.
The only caveat is that \n does only a line-feed but not a carriage-return!
The other issue seems more tricky to identify for me.
fatal error: Board_Defs.h: No such file or directory compilation terminated.
Have you experienced it?
The Board_Defs.h bug should be fixed - see #3 for the fix. Thanks for the help!
Everything works fine for an Arduino Uno board, except a stty related error.
Arduino.mk stipulates
Do you experience the same problem? Could we use screen instead?
Serial console parameters Makefile
Close serial console before upload Makefile:
Result:
Open serial console after upload Makefile:
Result:
How to make the connection with the terminal?