Picocom also will let you connect to a serial port without reconfiguring it (--noinit) and will let you exit without restoring the serial port configuration (--noreset or use Ctrl-A/Ctrl-Q to quit picocom). I've found picocom to be much easier to use than minicom. For reasons I haven't figured out, minicom will sometime simply not send. Currently I'm trying to do 'start putty.exe -load temp1 -m script.txt' All of that is in the same directory. Putty opens with the saved config (temp1) but my script doesnt run. I want to say that -m only applies for SSH but I just wanted to be sure or see if anyone has any ideas of how to run scripts over serial.
My config is as follows:
- ESP8266 -03 modules
- Regulated 3.3v supply - arduino style battery input/USB regulator thing
- 3.3v FTDI USB:serial converter
On my first module I successfully compiled and uploaded maybe 500 times - occasionally I would need to upload twice if the first upload failed to execute correctly. This got worse over time, it seemed like restarting the Arduino IDE and rebooting my PC was some help (hard to prove, it was intemittent). I did try to reflash with a minimal sketch as well, that didn't really seem to help.
The program is a datalogging app for a Beer Keg - maybe 1000 lines of code or so. Not very big.
Recently it got harder & harder to get a 'good' upload (I used the serial monitor & wireless behavior to confirm if it was 'working'). This morning I was completely unable to get an upload to work - the upload using the Arduino IDE would complete with no errors, but the uploaded executable image would not execute.
Using the Python ESPTool uploader, I was able to 'erase' the flash, but not upload the 512K 'blank' file - it would consistenly fail at 32% (hex800000).
I replaced the ESP module with another, the FIRST upload worked fine and executed perfectly, when I made a minor change to the code however it would upload with no errors but not execute. Frustrating.
The IDE reports:
Sketch uses 205,912 bytes (39%) of program storage space. Maximum is 524,288 bytes.
warning: unsupported baud rate: 115200, using 115200
Uploading 38112 bytes from C:UserstimmAppDataLocalTempbuild7944810091012342573.tmp/Kegerator-v4.3.cpp_00000.bin to flash at 0x00000000
......................................
Uploading 167848 bytes from C:UserstimmAppDataLocalTempbuild7944810091012342573.tmp/Kegerator-v4.3.cpp_40000.bin to flash at 0x00040000
....................................................................................................................................................................
I will try to upgrade the power supply to something I trust more than an off-brand Arduino-style regulator, but is this something that others have seen? Are there any tricks to reliable upload&execute?
I am using the 1.6.3 IDE with a GIT pull from maybe 2 weeks ago - have there been any changes to the upload functionality or to the linker directives?
Any thoughts? Not sure if I have a bug or a PEBCAK issue- are there any known 'gotchas' to be aware of that complicate uploading?
thanks!
tim
Linux Putty Serial Port
Putty
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.