-
-
Hello,
I'm trying to flash firmware on popular "blackpill" board.
I tried espruino_2v08_nucleof411re.bin firmware and flash via Espurino IDE.
I event can't flash firmware ...
Tried via UART cable, STLinkV2 and USB bootloader ... :(@IvanJ - how did you managed to flash firmaware?
-
Thank you for the answers - I will get one and possibly ask more details;)
@DrAzzy - I need connectivity in room which is shielded from WIFI - lot's of ethernet plugs thought;)
-
-
-
Thanks @Gordon for being very open and transparent about this - I respect that.
Well to some extent you read me correct "between the lines".
But my line of thinking is different. I base it on 2 assumptions:
- you can buy cheaper STM32 boards too - so "risk" of not buying official board is similar
- ESP is much more popular than STM
So just by simple extrapolation you should have more boards sales, more project popularity (and all what goes behind it) - by how much - in theory by as much as ESP is more popular than STM.
Don't know how to evaluate this, but this is what google says:
https://trends.google.com/trends/explore?q=%2Fm%2F0hn9tdq,%2Fg%2F11c5368jrl,%2Fg%2F11c3kq9gl3But in the end it's just theory, and I'm by far not an expert - just a thought:)
- you can buy cheaper STM32 boards too - so "risk" of not buying official board is similar
-
@allObjects - just tested code from #1 and #16 again:
- micropython (#1) -> 51 C
- micropython (#16) -> 52 C
- espruino (#1) -> 61 C (both BLE + WIFI disabled)
I did not ground all the pins - so there might be noise, but conditions were the same for all tests. I also ordered USB power meter - so when it arrives I will check real power usage.
- micropython (#1) -> 51 C
-
Well @maze1980 and @allObjects I do understand
sleep
vssetInterval
+ event loop in JS differnces.Still I don't understand why following code in micropython:
led = Pin(13, Pin.OUT) def blink(): led.value(not led.value()) t = time.ticks_ms(); while True: if (time.ticks_ms() - t >= 1000): blink(); print((esp32.raw_temperature() - 32) * 0.5556) t = time.ticks_ms()
produces same 51 C
I clearly I'm not putting ESP to sleep, and in a sense it's more or less what main event loop +
setInterval
would be doing. -
@Wilberforce I did all my original tests with BLE disabled, then for later test (based on @AkosLukacs sugestion) I also disabled Wifi - but no significant change in temp.
-
@AkosLukacs Made test with WiFi disabled, temp is 59 C - but ambient is also lower (few hours later than first test) so not sure if it's due to WiFi or ambient.
-
@AkosLukacs thanks, ambient is around 25 C.
@Robin all 3 measurements were done during same time / same board - so absolute value is not important, more difference between measurements.
-
Hello,
My ESP32 (TTGO) is running hot, and I think it causes eventual reset.
I first noticed it running complex code (sensors, WIFI, web server etc.) - it reached ~65 Celsius.
So just to test I run simple blink sketch:function onInit() { let ledOn = false; setInterval(() => { console.log(`temp = ${(E.getTemperature() - 32) * 0.5556}`); digitalWrite(13, ledOn); ledOn = !ledOn; }, 1000); }
Surprisingly even on above it reached 62 C.
I made same test with Mircopython:
import esp32 from machine import Pin import time led = Pin(13, Pin.OUT) while True: led.value(not led.value()) print((esp32.raw_temperature() - 32) * 0.5556) time.sleep_ms(1000)
gave me: 51 C
Arduino:
void setup() { Serial.begin(115200); pinMode(13, OUTPUT); } bool state = false; void loop() { state = !state; digitalWrite(13, state); delay(1000); Serial.println((temprature_sens_read() - 32) * 0.5556); }
gave: 53 C
Any ideas?
-
@maze1980
With ESP32 the main issue I have is restarting randomly. I believe it might have something to do with chip overheating - just blinking code get ESP32 to 65 C. In comparison blinking sketch on Arduino (or even Mircopython) keeps ESP cool (~45-50 C). -
Thanks @Ollie I will look at it, in meantime - I got finally
espruino cli
"sort of" working and I quickly did this.https://github.com/pankleks/espruino-vsc-templ
Very, very much WIP but maybe could be already useful for someone.
I can compile my projects with TSC, send it to the board and REPL, all directly from VSC.
@Gordon I submited some PR's to
espruino cli
- to be honest seeing already some more issues. -
@MaBe my productivity is hit by WebIDE, i like to have intelisense, better multi-file support etc. What hit's my "production ready feeling" is unstable port for ESP.
Solving first "issue" will help everyone, second is for ESP users only - but due to popularity of ESP I guess there are lot of us (also competitor FW seems to focus on ESP mostly - so there must be something to it).
-
@AkosLukacs just to be on same page - I'm not saying to exchange WebIDE with VSC, just add alternative. I'm actually doing same thing - building my project in VSC + TypeScript then copy & paste generated code to WebIDE to upload and REPL. Using
espruino cli
would solve this, but either I'm missing something or it simply does not work.As for ESP32 -> I don't have experience with Bluetooth, but I have multiple boards running for months on WiFI (Arduino code) without any issues.
As for cores - well actually frameworks like Espruino could nicely use multi-cores in background to split some processing of event loop.
Well - in the end I guess entire discussion leads to simple question about target of the project - if it's to get people into micro-controller world as easy as possible - it's spot on. Question remains what person who wish to go deeper should do. Today I think most of the people may switch to other "more production ready" FW.
-
@Gordon I appreciate you being very open about this.
As for VSCode, I might be actually able to help here - been doing some VSC plugins some time ago. I'm aware about espruino npm but so far I was not able to install it without errors on any environment - which was discouraging, but I will give it a shot again (I raised issues on github already).
I understand your approach to ESP given amount of effort needed. On the other hand, I can't shake feeling that lack of good suport for most commonly used boards is significantly decreasing potential users and more users is better community, better support - basically more noise around the project. Maybe a good idea would be to design next Espruino board around ESP32 (you can still sell own board and at the same time improve ESP support) - new ESP32 WROVER looks like solid chip for "heavier" frameworks.
Became a patreon today - and very happy to help with VSC plugin (unfortunately within very limited time).
Thanks!
-
@AkosLukacs thanks - I will make some tests in coming days and share results. I was just wondering if there is a better way of doing this.
-
@AkosLukacs no, but if I check source code of this module I'm doing pretty much same thing.
-
In the topic of setWatch limitation - I have a strange behaviour of setWatch.
I'm using rotary encoder (not the poteniometer, but the one you install on motor to read impulses).let count = 0; pinMode(cfg.pin.encoder1, "input_pulldown"); setWatch(() => { const state = digitalRead(cfg.pin.encoder1); if (state === 1) count++; }, cfg.pin.encoder1, { repeat: true, edge: "rising" }); setInterval(() => { console.log(count); count = 0; }, 1000);
Code should count impulses per second, and it does. However strange thing is that at low speed it counts 45-50 impulses, at high speed (~x2) it counts 43-48 impulses. Clearly expectation was quite the opposite:)
Assuming code and wiring is ok - I was wondering if maybe I'm hitting speed limitation of Espruino - which is simply not able to process frequently enough impulses.
I'm using ESP32 and Espruino 2.04
-
Hello All,
First of all thank you for your work - I love this project and please consider below as attempt to make it better (in my personal opinion).
I'm working on microcontroller projects for 2-3 years and since then every few months I'm trying Espruino. I'm super happy to see incremental improvements and things fixed. However since the beginning I faced 2 main issues - which I think are still not addressed. And I would love to learn your approach to these.
VSCode integration. Web IDE is great to kickoff, but honestly anything longer than 50 lines is painful.
I think one of the major reasons for Platform.IO popularity was VSCode integration. Having official VSCode plugin + TypeScript integration would be a killer.ESP is still considered as 2'nd grade citizen (IMO). I think I tried most of the Espruino releases on both ESP8266 and ESP32 and always suffered with some stability issues. Not mentioning that some of framework and board features are still not supported.
I do understand that business model is around own boards, but reality is that ESP is unbeatable mix of power and cost, and main competitors have better support for these boards. Personally this was the main reasons why for many projects I had to switch to other FW.
Again please do not read this as negative feedback, it's more personal explanation why - even if I love to use Espruino, I still have to work with other frameworks with less friendly language.
I would love to learn your approach to above and how we can help.
-
@sberkov can you please regenerate types for latest release? or can you provide your script to do it?
thanks!
Thank you @IvanJ - I followed your steps, upload firmware via STM Cube went without any issues, installed Virtual COM, see COM7 (STMicroelectronics), but when I try to connect with putty or other terminal - there is nothing (no messages, no prompt).
I'm currently doing all of this using UART (on PA9/PA10).
Will try over ST-LINK ...