Avatar for sureshkm

sureshkm

Member since Mar 2017 • Last active Apr 2017
  • 3 conversations
  • 20 comments

I'm sureshkm, I've total of 14 years experience in the world wide web. For the past 10 years, i've been working as a front-end engineer. JavaScript is my strength.

More about me at my YouTube Channel

Most recent activity

  • in Pico / Wifi / Original Espruino
    Avatar for sureshkm

    Thanks, @Gordon
    Now that fixes the firmware corruption. But still get the memory issue for 4K code.

    Can you please tell me, how/why did it get "81600 bytes" when there is only a few bytes of code?

  • in Pico / Wifi / Original Espruino
    Avatar for sureshkm

    Ok, i brought down to 4KB file size. Still facing the same issue.

  • in Pico / Wifi / Original Espruino
    Avatar for sureshkm
    function onInit() {
          digitalWrite(LED1, 1);
    }
    
    save();
    

    Even saving the above code throws the below lines,

    Erasing Flash.....
    Writing.....
    Compressed 81600 bytes to 2705
    Checking...
    Done!
    Running onInit()...
    

    How/Why did it get "81600 bytes" when there is only a few bytes of code? Am i missing something that happens internally?

  • in Pico / Wifi / Original Espruino
    Avatar for sureshkm

    Yes, give it a go. Basically normal save() will compress the code that gets written, but because save on send is trying to execute straight from flash it can't compress anything

    I did enable and corrupted my firmware, it took 2 hours to figure out why wasn't the IDE detecting the Espruino Pico :). Finally i flashed the firmware and it started detecting it.

    I brought down the file size to approx. 40KB, but the when i tried to write the code to Pico, it always says,

    Erasing Flash.....
    Writing..........................
    Compressed 81600 bytes to 23744
    Checking...
    Done!
    Running onInit()...
    

    Any idea, why doesn't it read as "40000 bytes to ...." ?

  • in Pico / Wifi / Original Espruino
    Avatar for sureshkm

    @Gordon Thanks for the quick response.

    I don't have any SSL keys/certs in the code. I think, we don't need them for the retrieval of HTTPS doc. Right?

    Yes, i've approx. 80KB code that gets compressed into approx. 20KB while writing into the Pico. How much should the code size be to make it work?

    'Save on send' options says '.... not as memory efficient', Do you really want me to enable this?

  • in News
    Avatar for sureshkm

    I think, http://forum.espruino.com/conversations/­302991/ is similar to the issue discussed here. Did we get any solution?

  • in Pico / Wifi / Original Espruino
    Avatar for sureshkm

    process.memory()

    { "free": 3658, "usage": 1442, "total": 5100, "history": 1,
      "stackEndAddress": 536958120, "flash_start": 134217728, "flash_binary_end": 377416, "flash_code_start": 134234112, "flash_length": 393216 }
    
  • in Pico / Wifi / Original Espruino
    Avatar for sureshkm

    Hi @Gordon and others,
    In my Espruino Pico, i'm requesting over https for a response and i get the following error message. Please help me on this. Thanks

    require("http").get("https://www.google.­com", function(res) {
       console.log("Response: ",res);
       res.on('data', function(d) {
       console.log("--->"+d);
       });
    });
    
    >Connecting with TLS...
    ERROR: Failed! mbedtls_ssl_setup: Not enough memory
    ERROR: Unable to create socket
    
Actions