-
-
@jumjum
I thînk the line came from an existing module.I think it is meant to set to low for 10 ms then finish in the high state. That's how I read that reference documentation.
-
-
comfirmed that
D21.reset()
does not turn off.
Raised:
https://github.com/espruino/Espruino/issues/1103 -
@user73896
We are still in the process of debugging the ESP32 code.Please can you confirm the following
a. I'm surprised this did not work:
cs.reset()
andcs.set()
Please can you re-test?
b.
digitalPulse(rst,0,10)
I'm not sure if this has been implemented - @JumJum - can you recall?
-
Please can you post your wiring and script you used, as @jumjum was trying to get that to work and did not have success.
-
-
I believe the pins 2-6 are used for the flash chip, so best not to use pins 4 & 5.
Change those to say pins 16,17, rewire and see how you get on.
var g = require("SSD1306").connectSPI(SPI2, 16 /DC/, 12 /RST/, go, { cs:17 });
@JumJum - Should we add a warning if these pins are used?
-
Yes. I get a similar thing with the esp32 and windows 10.
I can connect with putty, but not the ide after a flash.
So what I do is
- flash
- hit reset button on the board
- connect with putty, then quit
- connect via the ide
Because this is a pain, I have the board set up to connect to wifi and use the ip address in the ide and connect via tcpip.
- flash
-
-
There has been a recent build that includes the firmware - search the forums.
@MaBe you could conditionally turn this on for your 4mb 1024/1024 build so that that build that has enough room would have the fs stuff?
-
-
Perhaps - @JumJum and I will be looking at the Bluetooth on the esp32, the supplied libraries use bluedroid - I think this might be a higher level than the hardware driver?
I think on the pi they use bluez- and from what I have read there is no Bluetooth LE support yet.
-
It'd be worth checking that the firmware update over WiFi can still function in the 1MB/1MB config
Here is the code for the over the air updates... there is a flash map address look up:
https://github.com/espruino/Espruino/blob/6da2ddd05917d98e0693a084a2d64fcfb8b800d1/libs/network/esp8266/ota.c#L171 -
-
-
@mabe > tested wiflash with "4MB:1024/1024" - works - Thanks
Please post your complete wiflash line...
-
-
-
Hi @Pedro
The way of patching this stuff is to clone https://github.com/espruino/Espruino into your own name.
Then you can make a branch, say called 4MB, and then do your updates into the branch.Then when you are ready, you do a pull request to the /espruino/Espruino master.
I think you might need to reserve some heap space for the wifi, as it looks like you don't have much heap space left after the vars increase. The buffer for IP are made dynamically and a free heap of 3344 might not be enough.
-
thanks @Gordon, nice work!
I've tried with an ipad running /ide/relay and windows 10/Chrome for the web ide
It took about 3 cycles to get it to work - however I did end up with a flashing red led!
Then on ipad I get
DISCONNECTED
at the bottom.so you reconnect, and then need to enter the key again on the PC...
Some feedback
- Please ask to update the bookmarks on WEBBLE to include https://www.espruino.com/ide/relay
- It doesn't look you can increase the font size on the relay key - I found it a bit hard to read
- There is no indication on the PC ide that the other end has disconnected? update - this did disconnect after sometime - quite a bit after the disconnect on the ipad
Would it be possible to re-connect silently and retain the key so that it not needed to be re-entered?
Perhaps the key could be picked up both ends from the url?
https://www.espruino.com/ide/relay#rcm04j5p
https://www.espruino.com/ide#rcm04j5p
Then it would not need to be typed into the settings?
I realise there could be security implications here - justbrain dumping
5.
if you don't update the key, and connect again on the PC - it says connected, but it isn'tDevice found (connectionId=undefined) [success] Connected to port Web IDE Relay >>> Connected to port Web IDE Relay
So there seems to be no indication that the expired key or wrong key is used?
- Please ask to update the bookmarks on WEBBLE to include https://www.espruino.com/ide/relay
-
try this on the left side:
reset();
then upload via ide, see if starting from a clean interpreter state makes a difference (This is usually the default in the IDE settings to reset first.
Q: How much in bytes is the actual space indicated by 'free'
it's not bytes but jsvars....
Q: How large are these blocks re: total 1700
So you have 1700 jsvars free
Q: What is the relationship between the total blocks 1700 and used bytes 12284
12284 Bytes is the number of chars in you javascript source.
Q: Are comments stripped from the source before 'Send to Espruino'? e.g. are they counted in used byte count?
It depends ;-) The position of the comments is a factor if they 'take up space' - I can't recall the details
This is why modules get minified before upload to strip comments and shorten any externally referenced variables.Q: Why couldn't I save this code block despite having ample free space?
The ESP8266 is pretty strapped for space. It really is quite limiting.
a. One wire
Which build are you using? Please try the latest binary:
http://www.espruino.com/binaries/travis/5e9489ee5936f24d2684588ff42393b76105cb23/espruino_esp32.bin
Please post you script and describe your wiring - Are you using a pull up resistor? Which pin?
I have had success with using D22 and so has @JumJum
b. I have had issues with the IDE on serial too.
i. Is this just after flashing or all the time?
ii. which OS?
I have success connecting with putty (serial on windows) and then disconnect that and the connect ok with IDE
I have a theory that after flashing, the USB port is left in a strange state.