I decoded guru meditation errors

Posted on
Page
of 2
/ 2
Next
  • Hi.

    i decoded guru meditaion error and i see this errors :

    PC: 0x40112665: jsvInitJsVars at src/jsvar.c line 316
    EXCVADDR: 0x0000000c
    
    Decoding stack results
    0x40112662: jsvInitJsVars at src/jsvar.c line 228
    0x40112d64: jsvInit at src/jsvar.c line 349
    0x401261d6: jsiIdle at src/jsinteractive.c line 2241
    0x40126335: jsiLoop at src/jsinteractive.c line 2324
    0x40134298: espruinoTask at targets/esp32/main.c line 84
    

    you can help me for fix error?

  • Original errors in console logs :

    WARNING: Scan stop failed
    WARNING: set rssi scan not implemeted yet
    Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
    Core 0 register dump:
    PC      : 0x40112ad4  PS      : 0x00060c30  A0      : 0x801136ab  A1      : 0x3ffea370
    A2      : 0x00000001  A3      : 0x00003fff  A4      : 0x00000001  A5      : 0x00000000
    A6      : 0x3ffcc668  A7      : 0x000754fe  A8      : 0x00003fff  A9      : 0x3ffea350
    A10     : 0x00000000  A11     : 0x00037ff2  A12     : 0x00060021  A13     : 0x00000001
    A14     : 0xb33fffff  A15     : 0x00000001  SAR     : 0x00000002  EXCCAUSE: 0x0000001c
    EXCVADDR: 0x0000000c  LBEG    : 0x400924d8  LEND    : 0x400924f4  LCOUNT  : 0xffffffff
    ELF file SHA256: 0000000000000000
    Backtrace: 0x40112ad1:0x3ffea370 0x401136a8:0x3ffea390 0x401289b6:0x3ffea3b0 0x40128b15:0x3ffea460 0x40136c94:0x3ffea480
    Rebooting...
    ets Jul 29 2019 12:21:46
    rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_d­rv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:2
    load:0x3fff0018,len:4
    load:0x3fff001c,len:2984
    load:0x40078000,len:10700
    load:0x40080400,len:5236
    entry 0x40080658
    E (567) psram: PSRAM ID read error: 0xffffffff
    E (567) spiram: SPI RAM enabled but initialization failed. Bailing out.
    E (567) spiram: SPI RAM not initialized
    

    I when have insert javascript codes on esp-wroom-32 show this errors.

  • just wondering, is this something else than the topic you already created here https://forum.espruino.com/conversations­/383867/ ? why to have two?

    as for the decoded stack trace - that's great you have it - so you can check what is failing at line
    `jsvInitJsVars at src/jsvar.c line 316 - possibly some null pointer or read from invalid address?

    maybe, just guessing from E (567) psram: PSRAM ID read error: 0xffffffff, you are accessing address that should be in external SPI RAM which is not working/is not present on your board?

  • This conversation is related to the previous conversation.

    When I make my own new firmware for esp32, after I flash it and enter the espruino editor, unfortunately, when I try to save the javascript code on it, this error is displayed. After a thorough search, I was able to decipher this error. The loop is src/jsvar.c and this error is not complete and accurate.

    this file (jsvar.c) :
    https://github.com/espruino/Espruino/blo­b/f173832d935f87033f560b88de4af4f3a0fa1c­de/src/jsvar.c#L316

  • I use the esp32-wroom module, the firmware that Mr. Gordon put in espruino runs without errors, but when I built it myself, I encountered these errors.

  • This conversation is related to the previous conversation.

    it is better to not create new conversation for same issue as someone may later answer to the other one => mess and duplicated/wasted effort

    I use the esp32-wroom module

    see previous post #3 - just a guess - wroom module does not have extra PSRAM at all (?) , maybe you are building for wrong ESP32 board variant? PSRAM is optional

  • !!! I wanted to clearly state the decoded error in the new conversation.

    I did exactly what was said for the ESP32

    https://github.com/espruino/EspruinoTool­s

    I went through all the steps

    make clean && BOARD=ESP32 make

    I entered it and it was created, then I flashed the boot files.

    But unfortunately, these errors occurred.

  • Can you output the new build for esp32?

    If you've done this, please help others fix this problem by making a tutorial video and uploading it to YouTube.

    You will be doing a great favor.

    Even if you tell me how to do the PSRAM settings, it would be great

  • Check discussion here https://github.com/espressif/esp-idf/iss­ues/8306 about wroom vs PSRAM.

    when searching now in espruino code, PSRAM is enabled here https://github.com/espruino/Espruino/blo­b/6df01b93404975befd5ff12a02e2625fe2f888­08/targets/esp32/Changes_V3.1/sdkconfig#­L180 since year 2018

    however that flag about ignoring missing PSAM is set to yes https://github.com/espruino/Espruino/blo­b/6df01b93404975befd5ff12a02e2625fe2f888­08/targets/esp32/Changes_V3.1/sdkconfig#­L184 so it should boot

    sorry I don't use espruino with esp32 very much and I am not sure I have wroom32 module to check this error, will check

    also I am not familiar with state of PSRAM support in espruino, here is some comment that is a bit cryptic https://github.com/espruino/Espruino/blo­b/6df01b93404975befd5ff12a02e2625fe2f888­08/boards/ESP32.py#L28
    maybe your variables are too large so it tries to use missing PSRAM, so reducing the size of variables may help? but I am just guessing really, someone more familiar with ESP32 should better comment

  • you can also try to modify sdkconfig and disable PSRAM there, then it may work or fail with out of memory => too many variables

  • Tnx for this links i later test.

  • These items were also useless, however, thank you

  • Can you send me the address of the sdkconfig file, I'm not sure which one it is

  • maybe @MaBe could help, I don't understand ESP32 target very much. I'd try to modify file app/build/include/sdkconfig.h by maybe it won't work as it looks already pregenerated in some state.

    As for variable size I was wrong, look like for ESP32 target the number of variables in board file is mostly ignored and just works as a baseline to determine size in bytes of each variable. So it only defines maximum number of variables, real value is determined at startup based on available free memory.

  • Hmm, please send the board file you used to build your own firmware.

  • Hi.

    ESP-wroom-32

    Firmware zip : http://microcosm.app/out/ANkHi

    I build this firmware with EspruinoBuildTools>ESP32 uploaded on github.

  • Which xtensa gcc version are you using?

  • I did not check this

    But I went through all the steps mentioned in github with wsl Ubuntu and then I got the output

    Is it possible to record the training video and upload it to YouTube?

  • When does this guru error occurs?

  • when i turn on esp32

  • make erase_flash
    make flash
    and try again

  • Could you make a video tutorial of all the things you described and upload it to YouTube? I think I didn't do part of the work or maybe I should add something but I don't know how to make a video tutorial and upload it. If you do this, I am sure that those who have this problem like me will be solved and then this issue will be closed once and for all.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

I decoded guru meditation errors

Posted by Avatar for GoodbyeEspruino @GoodbyeEspruino

Actions