-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot seem to connect to xsbug on example helloworld #177
Comments
The Blink example works just fine, so I'm sure code gets onto device and run, by the way. Just no connection to xsbug :( |
Odd. You shouldn't have to launch If you launch |
It is indeed odd! Yes, once I had the -v option I could see serial2xsbug being launched and tried running it myself with different baud rates to see if it might make it work. |
It's connecting to Looking closer at your terminal output, it looks like you might be running Linux on a Mac using Parallels. If that's true, can you try setting up your host environment for Mac instead and see if that fixes the problem? |
Reinforcing @lprader's point, if you are running under Parallels, there are a few more layers to get the USB serial connection, which could possibly be causing problem.
If you launch |
Yes, I did suspect parallels being the problem - My osx is one version too old to compile the source though. I'll ask a colleague if they can cook it up for me perhaps. Yes, I understand about the button/login message, thanks, I'd assumed that was the case since I can see the code resetting it. |
Ah. I just got myself an esp32 board, and it works for that. However, in setting up for the esp32 it seemed some of the python tools required needed python 3, so I aliased my python to use v3. In addition, I performed this step in the esp32 getting started guide - it may be pertinent.. UPLOAD_PORT=/dev/ttyUSB0 I'll check when I'm reunited with my box of 8266's and confirm one way or another... |
So - still not working under parallels for the Wemos D1 mini 8266. working on esp32 - (from lsusb) "Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light" Not working on 8266 - "QinHeng Electronics HL-340 USB-Serial adapter" Connecting another 8266 via a usb-ttl adapter - " Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light". - not working ! So it appears not. Oh well! The only other thing I note is that running the esp32build with the -v verbose option does not show the line "/home/parallels/Projects/moddable/build/bin/lin/debug/serial2xsbug /dev/ttyUSB0 921600 8N1" - maybe it works a little differently? Anyway, just leaving this here in case the info proves useful to anyone in the future, I should have it all set up under Mint on my chromebook booting from USB now, so I have options... I'll go give that a try now. |
@jim80
|
Many thanks for the thought @wilberforce , but no, not that. |
I had trouble with the linux for windows 10. The default xsbug baud rate
did not work and I had to change the build files to a different rate.
…On Sun, May 26, 2019, 21:45 jim80 ***@***.***> wrote:
Many thanks for the thought @wilberforce <https://github.com/wilberforce>
, but no, not that.
I've just run it through with a linux machine, rather than parallels
virtual machine under osx, and I'm getting exactly the same results, my
esp32 works, my esp8266's do not - they don't connect to xsbug.
I don't know, maybe a hardware issue? maybe I'm running on untested
hardware, but the wemos mini is common enough so far as I know. Maybe I
should buy something known to work and test that?
What devices are you using for esp8266
Thanks for your input in any case, I'll be having a test of your onewire
temp sensors code soon enough...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#177?email_source=notifications&email_token=ABYLTJHWTAPLSSDPDGBXKGTPXMVLZA5CNFSM4HKXT3Y2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWIQ2MI#issuecomment-496045361>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABYLTJF54KA3BXXFV6E4EVLPXMVLZANCNFSM4HKXT3YQ>
.
|
Ah, that's what I suspected after getting some trouble with baud rate on the upload. Which build file should I be looking at @barbiani ? |
The baudrates I seen used by xsbug are 460800 and 921600 Searching here: It seems that an env var is used |
https://www.youtube.com/watch?v=daWObuUptrQ Apologies! I think there may be something in this, but it's late here and I'm off bed, many thanks for your help guys! |
The serial connection baud rate is consistently 921600 for ESP866 and 460800 for ESP32. |
921600 didn't work for the 2 8266's I tried, I fixed that (for the upload, at least) with "export UPLOAD_SPEED=115200", which I seem to recall I found somewhere in a now closed issue. |
Ok, after all that, it's looking like it's the baud rate, for the 8266 hardware that I have. e.g - Of course I'll lose this change next time I update, could it be made configurable for the esp build? Thanks for the help everyone, much appreciated! Apologies for the noise also. |
Glad you solved that. I haven't seen an Espressif board in long time that needs to operate at 115200. Is it an unusual board or perhaps a low quality USB cable? |
In the next open-source drop, the esp8266 will now respect DEBUGGER_SPEED in addition to UPLOAD _SPEED. Set |
I've got about 5 cables, and no reason to doubt any of them. I did try a few different ones early on just to see if it made any difference, but it didn't. I also eliminated power supply as a factor. |
@mkellner thanks! We crossed over a little there... |
(esp8266) respect DEBUGGER_SPEED on esp
Hi, I've got a bit stuck here, I've followed the getting started docs with no problem, had a small problem with upload speed, overcome that and everything builds and is uploaded to wemos D1 mini. However, It does not seem to connect to xsbug. Terminal output is below - I suspect a problem with the serial speed, since initially upload did not work at the default, I tried the same speed (115200) that worked for upload for the debug connection (see end of terminal output, restarted the 8266 on the manual switch, but no joy with that.
Any pointers would be much appreciated, I'd really like to get this working!
`parallels@parallels-Parallels-Virtual-Platform:
$ cd $MODDABLE/examples/helloworld/Projects/moddable/examples/helloworld$ mcconfig -v -d -m -p espparallels@parallels-Parallels-Virtual-Platform:
/home/parallels/esp/ESP8266_RTOS_SDK/components/esptool_py/esptool/esptool.py -b 921600 -p /dev/ttyUSB0 write_flash --flash_freq 40m --flash_mode dout --flash_size 4MB 0x0000 /home/parallels/esp/ESP8266_RTOS_SDK/components/esp8266/firmware/boot_v1.7.bin 0x1000 /home/parallels/Projects/moddable/build/bin/esp/debug/helloworld/main.bin 0x3FC000 /home/parallels/esp/ESP8266_RTOS_SDK/components/esp8266/firmware/esp_init_data_default.bin
esptool.py v2.4.0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 18:fe:34:e0:c5:ae
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
A fatal error occurred: Invalid head of packet (0xE0)
/home/parallels/Projects/moddable/build/tmp/esp/debug/helloworld/makefile:415: recipe for target 'debuglin' failed
make: *** [debuglin] Error 2
parallels@parallels-Parallels-Virtual-Platform:
/Projects/moddable/examples/helloworld$ export UPLOAD_SPEED=115200/Projects/moddable/examples/helloworld$ mcconfig -v -d -m -p espparallels@parallels-Parallels-Virtual-Platform:
/home/parallels/esp/ESP8266_RTOS_SDK/components/esptool_py/esptool/esptool.py -b 115200 -p /dev/ttyUSB0 write_flash --flash_freq 40m --flash_mode dout --flash_size 4MB 0x0000 /home/parallels/esp/ESP8266_RTOS_SDK/components/esp8266/firmware/boot_v1.7.bin 0x1000 /home/parallels/Projects/moddable/build/bin/esp/debug/helloworld/main.bin 0x3FC000 /home/parallels/esp/ESP8266_RTOS_SDK/components/esp8266/firmware/esp_init_data_default.bin
esptool.py v2.4.0
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 18:fe:34:e0:c5:ae
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash params set to 0x0340
Compressed 4080 bytes to 2936...
Wrote 4080 bytes (2936 compressed) at 0x00000000 in 0.3 seconds (effective 124.7 kbit/s)...
Hash of data verified.
Compressed 419780 bytes to 269351...
Wrote 419780 bytes (269351 compressed) at 0x00001000 in 23.6 seconds (effective 142.3 kbit/s)...
Hash of data verified.
Compressed 128 bytes to 75...
Wrote 128 bytes (75 compressed) at 0x003fc000 in 0.0 seconds (effective 77.4 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
/home/parallels/Projects/moddable/build/bin/lin/debug/serial2xsbug /dev/ttyUSB0 921600 8N1
^C
parallels@parallels-Parallels-Virtual-Platform:
/Projects/moddable/examples/helloworld$ /home/parallels/Projects/moddable/build/bin/lin/debug/serial2xsbug /dev/ttyUSB0 115200 8N1/Projects/moddable/examples/helloworld$^Cparallels@parallels-Parallels-Virtual-Platform:
`
The text was updated successfully, but these errors were encountered: