v2.04 Causes Resets

Posted on
  • Hi, I'm just posting this in case anyone else experienced this, but when using v2.04 on some largish code (40K minified down to 20k), I get resets with exccause 3.

    ets Jan  8 2013,rst cause:2, boot mode:(3,7)
    load 0x40100000, len 2408, room 16
    tail 8
    chksum 0xe5
    load 0x3ffe8000, len 776, room 0
    tail 8
    chksum 0x84
    load 0x3ffe8310, len 632, room 0
    tail 8
    chksum 0xd8
    csum 0xd8
    2nd boot version : 1.6
      SPI Speed      : 80MHz
      SPI Mode       : QIO
      SPI Flash Size & Map: 32Mbit(1024KB+1024KB)
    jump to run user1 @ 1000
    {
      "reason": "exception",
      "exccause": 3, "epc1": 1073799076, "epc2": 0, "epc3": 0, "excvaddr": 1076285788,
      "depc": 0 }
    Running onInit()...
    

    This seems to be caused by a LoadStore error -- I found this description to go along with it "Processor internal physical address or data error during load or store".

    If I flash back to 2v03, everything is fine. I'm using a totally normal 4MB ESP-12f.

    -hfc

  • Have you called make erase before flashing the new firmware?

    Latest build of Espruino works stable for me.

    >process.env
    ={
      VERSION: "2v04.274",
      GIT_COMMIT: "1921e46c1",
      BOARD: "ESP8266_4MB",
      FLASH: 0, RAM: 81920,
      SERIAL: "84f3eb0d-17d4",
      CONSOLE: "Serial1",
      MODULES: "Flash,Storage,hea" ... "r,crypto,neopixel",
      EXPTR: 1073643636 }
    > 
    

    Edit: Including save().

  • OK good! Thanks for checking that! It might be I just have a board with flakey flash. "storage.compact()" is also not working on it -- triggers a wdt reset -- so that points to flash as well. I'll try a couple of other boards and see what happens.

    Cheers,
    -=hfc

  • Maybe switch from qio to dio when flashing.

  • Yeah I got this working finally, so that's good. I've always used qio and dio interchangeably, but on this board dio worked finally. Anyways thanks again! :)

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

v2.04 Causes Resets

Posted by Avatar for hungryforcodes @hungryforcodes

Actions