devicescript icon indicating copy to clipboard operation
devicescript copied to clipboard

pico_w crc error

Open louisvangeldrop opened this issue 2 years ago • 4 comments

  • Connect to a pico_w using the site: http://localhost:8081
  • Open the edge devtools
  • In the console the message "cannot connect webclient ...." appears. This is correct, the development server is not running
  • This is the only message that is shown in the console
  • Then I start VSCode with devicescript folder: ..../wifi project
  • After a while, the connection to the development server is made.
  • The the following error is showing up in a loop:
(index):1  WebSocket connection to 'ws://localhost:8081/' failed: 
e @ (index):1
6812-bb808a282b52741081e3.js:9 ƒ (config) {
  var Module = config || {};



// The Module object: Our interface to the outside world. We import
// and export values on it. There are various ways Module can be used:
// 1. Not defined…
jdusb.ts:71  JDUSB Error: crc err
logError @ jdusb.ts:71
handleFrame @ jdusb.ts:89
decodeFrame @ jdusb.ts:146
JdUsbProto.io.onData @ jdusb.ts:66
(anonymous) @ webserialio.ts:133
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
readLoop @ webserialio.ts:9
(anonymous) @ webserialio.ts:231
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
openDeviceAsync @ webserialio.ts:9
(anonymous) @ webserialio.ts:205
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
connectAsync @ webserialio.ts:9
(anonymous) @ webserial.ts:49
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
transportConnectAsync @ webserial.ts:33
(anonymous) @ transport.ts:244
Promise.then (async)
connect @ transport.ts:243
(anonymous) @ transport.ts:328
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
Promise.then (async)
asyncGeneratorStep @ asyncToGenerator.js:13
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
reconnect @ transport.ts:48
(anonymous) @ transport.ts:203
asyncGeneratorStep @ asyncToGenerator.js:3
_next @ asyncToGenerator.js:25
(anonymous) @ asyncToGenerator.js:32
(anonymous) @ asyncToGenerator.js:21
checkPulse @ transport.ts:48
emit @ eventsource.ts:258
(anonymous) @ bus.ts:646

louisvangeldrop avatar Apr 13 '23 10:04 louisvangeldrop

outdated firmware build?

pelikhan avatar Apr 14 '23 16:04 pelikhan

I use this version: https://github.com/microsoft/devicescript-pico/releases/latest/download/devicescript-rp2040w-pico_w.uf2

louisvangeldrop avatar Apr 15 '23 09:04 louisvangeldrop

@louisvangeldrop is this still an issue for you?

pelikhan avatar Apr 25 '23 16:04 pelikhan

I am on holidays and I don't have the pico-w with me.

louisvangeldrop avatar Apr 25 '23 20:04 louisvangeldrop

I'm going to close this one as I have been testing with a pico-w without issues for a while. Feel free to reopen.

pelikhan avatar Jul 22 '23 03:07 pelikhan