Hi Stefan & thanks for your response
wendlers wrote:
Note that the print "Hello World" seems to do nothing: no error, no message
Have you tried to make "pyboard" follow the output - e.g. like so:
Code: Select all
python pyboard.py --device COM10 --follow -c "print('hello world')"
the "--follow" is interesting; it prints hello world then drops me into an (inescapable) python prompt in Linux. From Windows, it prints garbage then drops me into a python prompt:
Code: Select all
D:\Python>python pyboard.py --device COM10 --follow -c 'print("hello world")'
╓K╡à╤Ñ╜╣╣
>>>
here, the result makes me think that the baudrate is wrong. but it appears 115200 is the default, and even when explicitly specifying it, I see the same results (no message, cannot exit nor type at REPL)
Code: Select all
D:\Python>python pyboard.py --device COM10 --follow --baudrate 115200 -c 'print("hello world")'
>>>
note I'm able to successfully connect with putty in Windows: COM10; 8N1, 115200, no flow control. (although I do have the occasional bulk-paste problem per this thread topic):
Code: Select all
>>>
PYB: soft reboot
could not open file 'boot.py' for reading
MicroPython v1.6-336-g6f5af76-dirty on 2016-03-16; ESP module with ESP8266
Type "help()" for more information.
>>> print("hello world")
hello world
>>>
wendlers wrote:
The error you get here is the Exception that happend on the ESP. This means, that your file has been uploaded, but that micropython was not happy with it because of an syntax error.
hmm... it is the same text that I am able to upload on the RPi with success. I'm thinking the file is uploaded, but for some reason garbled in transit.
wendlers wrote:
Code: Select all
esp8266/esp_mphal.c: uart_init(UART_BIT_RATE_115200, UART_BIT_RATE_115200);
oooh. being hard-coded, my only option is to recompile, eh? probably not a task I'll be able to do today, but something I should learn. I came across this interesting article on that topic:
http://www.esp8266.com/wiki/doku.php?id=toolchain after reading the esp-open-sdk is required for MicroPython rebuild:
http://forum.micropython.org/viewtopic.php?f=16&t=1689
I'm probably in the minority in wanting to use Windows... but that's where all my cool development tools are.
<sigh> I wonder if all my hassle is self-inflicted by using a (non-officially supported) china import board. It does however work really well otherwise, and the NodeMCU Lua seemed to be completely happy.
thanks again for your suggestions.