Microbit build issues #7235
Replies: 1 comment
-
Posted at 2018-06-28 by @gfwilliams I've just checked and I can connect fine over serial and Web Bluetooth and can upload code, for example:
However I do get the I've now added Posted at 2018-06-28 by Ollie Thanks. Wanted to play with the accelerometer. Appreciate there’s not much room. I best look at my serial again. Thanks again Posted at 2018-06-28 by Ollie I had to bring the baud right down to 9600 to get connected over serial. Anything higher and I have no console and get the prompt not detected error on upload. Is this the standard baud rate for Microbit - I didn't see it in the docs and I will add it if thats an omission? Code upload great over Web BT and serial now. Posted at 2018-06-28 by @gfwilliams
Yes, this is the standard baud rate for literally every single board running Espruino apart from ESP8266/ESP32 - it might be an idea to add it to the docs, but nobody will have trouble unless they've been trying to use ESP32/etc :) Posted at 2018-06-28 by Ollie Guilty as charged. Sorry to waste your time on that one :/ Posted at 2018-07-20 by DrAzzy @gfwilliams - it might make sense to put a note of that in the IDE settings screen "9600 is used by all boards except ESP8266 and ESP32, which use 115200" I find the switch annoying enough that I never connect to ESP8266 and ESP32 by the IDE - I just go in with hterm, set up the wifi, then connect by telnet. Posted at 2018-07-23 by @gfwilliams :) I'm actually considering just moving ESP8266/ESP32 back to 9600 baud by default. It's caused so much pain, and the boards can't actually handle 115200 baud without flow control so the IDE has to artificially throttle transmission anyway. If the IDE could avoid throttling there's a good chance that communications at 9600 baud may actually be faster than the current 115200 baud one Posted at 2018-07-23 by @MaBecker Yes, lets switch to 9600. Posted at 2018-07-23 by Ollie If this is better yes why not, it would save my embarrassment like above - but why can we flash the ESP8266 at speeds of 115k upwards though? Is it unfair to say the boards can't handle it? Or is it firmware limited? Posted at 2018-07-24 by Wilberforce The problem is that it will break everyone's existing configs. And anyone coming from the esp32/esp8266 world expects the board rate to be 115200, as this the the default for the device. The issue initially was with microbit. Is it possible to attempt a connection via the set rate - and no command prompt is detected, drop to 9600 and test the connection then? Posted at 2018-07-24 by @gfwilliams
You can, just not for anything more than very simple code. Basically there's no flow control so we don't know if commands that are being sent are being executed in time or if the data is just getting thrown away. If you send something that takes a while (even if that's loading a module) then it can cause data loss. I am looking at adding some kind of flow control into the upload process, but I'm not sure when that will land. @wilberforce To be fair, it seems 9600 baud is used for ESP8266 as well. Pretty much everyone new uses the IDE not a serial terminal, and for them the change in baud rate seems to be the biggest stumbling block. It's so bad that if you google 'ESP8266 baud rate', the 7th hit is a post on the Espruino forums complaining about the baud rate being different to normal boards! The other slightly irritating thing is it makes it super painful if anyone wants to try using different Espruino boards, since you're always in the settings trying to flip between baud rates. It'd be a very minor upset for existing users who will be aware of the baud rate issues anyway - but at the end of the day they'd probably appreciate having faster more reliable comms with the board. Posted at 2018-07-24 by @MaBecker @gfwilliams is 9600 the transfer rate the IDE switch to when setting to slow communication? Posted at 2018-07-24 by @gfwilliams No, slow communication is the 'throttling' I'm taking about - it splits everything into 19 char chunks and waits for a while after sending each one. However it does that over whatever the current serial baud rate is. Posted at 2018-07-24 by @MaBecker Throtteling is not used for Pico and EspruinoWifi (afaik), is there still a need to use it for ESPs when baud is set to 9600? Posted at 2018-07-25 by @gfwilliams No, I don't think there would be a need. The throttling is basically there only because it's not running at 9600 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-06-27 by Ollie
I've put 1.99 on a Microbit. I'm having issues connecting over serial - I can't - from a Macbook with OSX 10.11.6
I can connect over Web Bluetooth, but can't upload anything. Though the same code pasted into the console works fine over Web BT.
On upload an example error response is :
Beta Was this translation helpful? Give feedback.
All reactions