Avatar for user87761

user87761

Member since Mar 2018 • Last active Sep 2018
  • 4 conversations
  • 14 comments

Most recent activity

    • 5 comments
    • 380 views
  • in ESP32
    Avatar for user87761

    Yes, it looks like it does not want to have a running wifi on startup. Has been running fine since I removed it.

    Thanks.

  • in ESP32
    Avatar for user87761

    The code can be seen in the attached file also.. and I sent you a PM.

  • in ESP32
    Avatar for user87761

    Hi,

    I might be doing something wrong with my olimex esp32-evb, and I am posting what I see on the left window.

    Some core dumps after onInit() and unexpected chars are seen.

    Got it working once by the log file end... with telnet connection.

  • in ESP32
    Avatar for user87761

    I did not try joining the calls inside the for loop that where the problem was.

    Filling times[] on the fly could give me the best timing, I thought.

    • 5 comments
    • 329 views
  • in ESP32
    Avatar for user87761

    Mine was not working also... and a full reflash makes it save again.

    I believe that the flash gets corrupted when the core crashes... and it does a lot.

  • in ESP32
    Avatar for user87761

    I'd like to let you know that filling times[] on the fly worked perfectly.

    Thank you.

  • in ESP32
    Avatar for user87761

    It is the espruino_1v96.21_esp32.bin.

    A bit more info on that... Just inject noise on D34.

    /mnt/c/Users/rhys/esp32/edge/EspruinoBui­ldTools/esp32/build/esp-idf/components/f­reertos/./queue.c:1613 (xQueueReceiveFromISR)- assert failed!
    Guru Meditation Error of type StoreProhibited occurred on core 0. Exception was unhandled.
    Register dump:
    PC : 0x4000c2e4 PS : 0x00060733 A0 : 0x80084e22 A1 : 0x3ffaeab0
    A2 : 0x00000000 A3 : 0x3ffaec70 A4 : 0x40086b8c A5 : 0x00000000
    A6 : 0x00000000 A7 : 0x3ffaecd4 A8 : 0x00000000 A9 : 0x3ffaea10
    A10 : 0x0000000a A11 : 0x00000000 A12 : 0x00000000 A13 : 0x00001000
    A14 : 0x3ffaea03 A15 : 0x3ffaec70 SAR : 0x00000004 EXCCAUSE: 0x0000001d
    EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x040086b7
    Backtrace: 0x4000c2e4:0x3ffaeab0 0x40084e1f:0x3ffaeac0 0x40085449:0x3ffaeae0 0x4008283d:0x3ffaeb00 0x4008293d:0x3ffaeb30 0x400d3352:0x3ffaeb50 0x40082a18:0x3ffaeb70 0x40114b15:0x3ffaeb90 0x40082d08:0x3ffaebb0 0x40082be4:0x3ffaebe0 0x40082ce2:0x3ffaec00

    var ssid = 'xxxx';
    var password = 'xxxxxx';
    var wifi = require('Wifi');
    wifi.connect(ssid, {password: password}, function() {
      console.log('Connected to Wifi.  IP address is:', wifi.getIP().ip);
      wifi.save();
    });
    
    pinMode(D34,"input_pullup");
    pinMode(D39,"input_pullup");
    pinMode(D32,"output");
    pinMode(D33,"output");
    pinMode(D12,"input_pulldown");
    
    var times = {
    volp:[ 4.4,4.2,.64,1.6,.64,1.6,.69,1.6,.67,.45,­.68,.44,.64,.43,.64,.44,.67,.45,.67,1.6,­.64,1.6,.64,1.6,.67,.45,.64,.45,.67,.45,­.67,.44,.67,.45,.69,1.54,.68,1.56,.64,.4­4,.64,1.56,.67,.46,.67,.45,.68,.44,.64,.­44,.67,.45,.66,.46,.66,1.57,.64,.44,.68,­1.56,.64,1.56,.67,1.57,.64,1.56,.64,46.7­4,4.6,4.42,.64,1.56,.69,1.56,.67,1.56,.6­9,.43,.69,.43,.64,.45,.68,.44,.68,.43,.6­9,1.55,.64,1.56,.64,1.57,.68,.45,.67,.42­,.71,.42,.69,.43,.68,.45,.67,1.56,.64,1.­56,.68,.44,.64,1.56,.69,.43,.64,.44,.64,­.43,.69,.43,.64,.44,.67,.45,.67,1.6,.64,­.44,.67,1.57,.67,1.6,.68,1.6,.64,1.6,.64­],
    volm:[ 4.4,4.2,.64,1.6,.64,1.6,.69,1.6,.67,.45,­.68,.44,.64,.43,.64,.44,.67,.45,.67,1.6,­.64,1.6,.64,1.6,.67,.45,.64,.45,.67,.45,­.67,.44,.67,.45,.69,1.54,.68,1.56,.64,.4­4,.64,1.56,.67,.46,.67,.45,.68,.44,.64,.­44,.67,.45,.66,.46,.66,1.57,.64,.44,.68,­1.56,.64,1.56,.67,1.57,.64,1.56,.64,46.7­4,4.6,4.42,.64,1.56,.69,1.56,.67,1.56,.6­9,.43,.69,.43,.64,.45,.68,.44,.68,.43,.6­9,1.55,.64,1.56,.64,1.57,.68,.45,.67,.42­,.71,.42,.69,.43,.68,.45,.67,1.56,.64,1.­56,.68,.44,.64,1.56,.69,.43,.64,.44,.64,­.43,.69,.43,.64,.44,.67,.45,.67,1.6,.64,­.44,.67,1.57,.67,1.6,.68,1.6,.64,1.6,.64­],
    vola:[ 4.4,4.2,.64,1.6,.64,1.6,.69,1.6,.67,.45,­.68,.44,.64,.43,.64,.44,.67,.45,.67,1.6,­.64,1.6,.64,1.6,.67,.45,.64,.45,.67,.45,­.67,.44,.67,.45,.69,1.54,.68,1.56,.64,.4­4,.64,1.56,.67,.46,.67,.45,.68,.44,.64,.­44,.67,.45,.66,.46,.66,1.57,.64,.44,.68,­1.56,.64,1.56,.67,1.57,.64,1.56,.64,46.7­4,4.6,4.42,.64,1.56,.69,1.56,.67,1.56,.6­9,.43,.69,.43,.64,.45,.68,.44,.68,.43,.6­9,1.55,.64,1.56,.64,1.57,.68,.45,.67,.42­,.71,.42,.69,.43,.68,.45,.67,1.56,.64,1.­56,.68,.44,.64,1.56,.69,.43,.64,.44,.64,­.43,.69,.43,.64,.44,.67,.45,.67,1.6,.64,­.44,.67,1.57,.67,1.6,.68,1.6,.64,1.6,.64­],
    volb:[ 4.4,4.2,.64,1.6,.64,1.6,.69,1.6,.67,.45,­.68,.44,.64,.43,.64,.44,.67,.45,.67,1.6,­.64,1.6,.64,1.6,.67,.45,.64,.45,.67,.45,­.67,.44,.67,.45,.69,1.54,.68,1.56,.64,.4­4,.64,1.56,.67,.46,.67,.45,.68,.44,.64,.­44,.67,.45,.66,.46,.66,1.57,.64,.44,.68,­1.56,.64,1.56,.67,1.57,.64,1.56,.64,46.7­4,4.6,4.42,.64,1.56,.69,1.56,.67,1.56,.6­9,.43,.69,.43,.64,.45,.68,.44,.68,.43,.6­9,1.55,.64,1.56,.64,1.57,.68,.45,.67,.42­,.71,.42,.69,.43,.68,.45,.67,1.56,.64,1.­56,.68,.44,.64,1.56,.69,.43,.64,.44,.64,­.43,.69,.43,.64,.44,.67,.45,.67,1.6,.64,­.44,.67,1.57,.67,1.6,.68,1.6,.64,1.6,.64­],
    volc:[ 4.4,4.2,.64,1.6,.64,1.6,.69,1.6,.67,.45,­.68,.44,.64,.43,.64,.44,.67,.45,.67,1.6,­.64,1.6,.64,1.6,.67,.45,.64,.45,.67,.45,­.67,.44,.67,.45,.69,1.54,.68,1.56,.64,.4­4,.64,1.56,.67,.46,.67,.45,.68,.44,.64,.­44,.67,.45,.66,.46,.66,1.57,.64,.44,.68,­1.56,.64,1.56,.67,1.57,.64,1.56,.64,46.7­4,4.6,4.42,.64,1.56,.69,1.56,.67,1.56,.6­9,.43,.69,.43,.64,.45,.68,.44,.68,.43,.6­9,1.55,.64,1.56,.64,1.57,.68,.45,.67,.42­,.71,.42,.69,.43,.68,.45,.67,1.56,.64,1.­56,.68,.44,.64,1.56,.69,.43,.64,.44,.64,­.43,.69,.43,.64,.44,.67,.45,.67,1.6,.64,­.44,.67,1.57,.67,1.6,.68,1.6,.64,1.6,.64­],
    };
    
    function analogPulse(pin, value, time, options) {
      analogWrite(pin, value, options );
      setTimeout(function() { digitalWrite(pin, 0); try { options["func"](); } catch(e){ } }, time);
    }
    
    setWatch(function(e) {
      print('Enviando código');
      analogPulse(D13,0.9,100,{freq:38000});
      digitalPulse(D16, 0, times.volp);
    }, D34, {repeat:true, edge:"falling", debounce:100});
    
Actions