Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Core 1 panic'ed (IllegalInstruction) before importing anything!

    Scheduled Pinned Locked Moved Issues & Bugs
    core dumpwipy1.20.0.rc11guru errorillegal
    11 Posts 2 Posters 130 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      ElinhohHD
      last edited by

      Hello, everyone,
      I have a Wipy device (W01) running into the firmware Wipy 1.20.0.rc11,
      I was testing the stability of the system by restarting it every 5 secondes.
      And sometimes before importing anything, I receive this message , explaining me that I have made a IllegalInstruction.
      The error:

      rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
      configsip: 0, SPIWP:0xee
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
      mode:DIO, clock div:1
      load:0x3fff8028,len:8
      load:0x3fff8030,len:2156
      ho 0 tail 12 room 4
      load:0x4009fa00,len:19208
      entry 0x400a05f4
      Initializing filesystem as LittleFS!
      Guru Meditation Error: Core  1 panic'ed (IllegalInstruction). Exception was unhandled.
      Memory dump at 0x400eacfc: 0633a8c0 00000000 00000000
      Core 1 register dump:
      PC      : 0x400ead02  PS      : 0x00060d30  A0      : 0x800ecb80  A1      : 0x3ffd9cf0
      A2      : 0x3ffc5afc  A3      : 0x00000000  A4      : 0x3f94ee54  A5      : 0x00000018
      A6      : 0x000002b4  A7      : 0x00000870  A8      : 0x800945de  A9      : 0x3ffd9cf0
      A10     : 0xffffffac  A11     : 0x00000888  A12     : 0x00001000  A13     : 0x00000001
      A14     : 0x000000fe  A15     : 0x3f40b302  SAR     : 0x0000001a  EXCCAUSE: 0x00000000
      EXCVADDR: 0x00000000  LBEG    : 0x4009c069  LEND    : 0x4009c079  LCOUNT  : 0xfffffffe
      
      Backtrace: 0x400ead02:0x3ffd9cf0 0x400ecb7d:0x3ffd9d20 0x400ee6b4:0x3ffd9d60 0x401ccad9:0x3ffd9d80 0x40108e56:0x3ffd9db0 0x401cc5df:0x3ffd9de0 0x400f2ee8:0x3ffd9e00 0x400f3a5d:0x3ffd9e30 0x400dee72:0x3ffd9eb0 0x400df10d:0x3ffd9f50 0x400ddf43:0x3ffd9f70
      

      The code :

      print('------ BEGINNING ------')
      from machine    import Pin, UART, SPI, RTC, ADC, Timer, reset
      print("Main.py Machine OK")
      from time       import sleep, time, gmtime
      print("Main.py Time OK")
      from pycom      import nvs_set, nvs_erase_all, rgbled
      print("Main.py Pycom OK\n------ END ------")
      reset()
      

      Thank you for everything.

      1 Reply Last reply Reply Quote 0
      • E Offline
        ElinhohHD
        last edited by

        I add that this event only acts on a single chip which has probably been too heated

        1 Reply Last reply Reply Quote 0
        • G Offline
          Gijs
          last edited by

          @ElinhohHD said in Core 1 panic'ed (IllegalInstruction) before importing anything!:

          dd that this event only acts on a si

          Hi,
          When I try to reproduce your error, it does not print the whole message,

          st:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
          configsip: 0, SPIWP:0xee
          clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
          mode:DIO, clock div:1
          load:0x3fff8020,len:8
          load:0x3fff8028,len:2140
          ho 0 tail 12 room 4
          load:0x4009fa00,len:19760
          entry 0x400a05bc
          ------ BEGINNING ------
          Main.py Machine OK
          Main.py Time OK
          Main.�ets Jun  8 2016 00:22:57
          
          rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
          configsip: 0, SPIWP:0xee
          clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
          mode:DIO, clock div:1
          load:0x3fff8020,len:8
          load:0x3fff8028,len:2140
          ho 0 tail 12 room 4
          load:0x4009fa00,len:19760
          entry 0x400a05bc
          ------ BEGINNING ------
          Main.py Machine OK
          Main.py Time OK
          Main.�ets Jun  8 2016 00:22:57
          
          

          I believe it has something to do with the order of instructions, when I include only a little delay using sleep_ms() it does print everything.
          Now I still cannot reproduce your error however. Have you tried updating the firmware to the latest? (1.20.2.rc10)
          Let me know!

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            ElinhohHD @Gijs
            last edited by ElinhohHD

            @Gijs I have this problem that only on 1 component.

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gijs
              last edited by

              Can you elaborate?

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                ElinhohHD @Gijs
                last edited by

                @Gijs said in Core 1 panic'ed (IllegalInstruction) before importing anything!:

                Can you elaborate?

                I did the test on 3 different devices.
                Only 1 device shows me these errors after an average of 10 restarts
                We assume here that the device must have overheated, or that a component of the device is non-functional.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  Gijs
                  last edited by

                  @ElinhohHD said in Core 1 panic'ed (IllegalInstruction) before importing anything!:

                  Only 1 device shows me these errors after an average of 10 restarts
                  We assume here that the device must have overheated, or that a component of the device is non-functional.

                  Did you try updating the firmware to the latest version? I do not think overheating or malfunctioning components will cause this problem.

                  E 1 Reply Last reply Reply Quote 0
                  • E Offline
                    ElinhohHD @Gijs
                    last edited by

                    @Gijs said in Core 1 panic'ed (IllegalInstruction) before importing anything!:

                    @ElinhohHD said in Core 1 panic'ed (IllegalInstruction) before importing anything!:

                    Only 1 device shows me these errors after an average of 10 restarts
                    We assume here that the device must have overheated, or that a component of the device is non-functional.

                    Did you try updating the firmware to the latest version? I do not think overheating or malfunctioning components will cause this problem.

                    I did this in the past but these firmwares are not stable
                    But nevertheless, I will try to update and see the difference between these 2 firmwares.

                    E 1 Reply Last reply Reply Quote 1
                    • E Offline
                      ElinhohHD @ElinhohHD
                      last edited by ElinhohHD

                      @Gijs
                      I upgraded the Wipy to the latest , and I see the most of time a LoadProhibited error

                      ------ STARTING UP ------
                      import sleep
                      import reset
                      Main.py Importation WLAN
                      Main.py WLAN OK
                      Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
                      Core 1 register dump:
                      PC      : 0x400edc8f  PS      : 0x00060930  A0      : 0x800edcdf  A1      : 0x3ffd8c90
                      A2      : 0x3f958390  A3      : 0x00000003  A4      : 0x3f4276a8  A5      : 0x3f427720
                      A6      : 0x3f428288  A7      : 0x3f4276b8  A8      : 0x00005959  A9      : 0x00009151
                      A10     : 0x17404004  A11     : 0x00000059  A12     : 0x00000010  A13     : 0x3f9583a0
                      A14     : 0x00000030  A15     : 0x00000001  SAR     : 0x0000001c  EXCCAUSE: 0x0000001c
                      EXCVADDR: 0x17404005  LBEG    : 0x4008e936  LEND    : 0x4008e941  LCOUNT  : 0x00000000
                      
                      ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000
                      
                      Backtrace: 0x400edc8c:0x3ffd8c90 0x400edcdc:0x3ffd8cc0 0x4010ba2e:0x3ffd8ce0 0x4010bc26:0x3ffd8d00 0x4010bcfb:0x3ffd8d60 0x4010bd89:0x3ffd8dc0 0x4010bdaa:0x3ffd8e30 0x400fd34f:0x3ffd8e60 0x400fd6ae:0x3ffd8e90 0x400f4a0d:0x3ffd8f70 0x400ffe75:0x3ffd8fb0 0x400f7a76:0x3ffd9050 0x400f4099:0x3ffd90b0 0x400f40c6:0x3ffd90d0 0x400fd2dc:0x3ffd90f0 0x400fd356:0x3ffd9180 0x400fd6ae:0x3ffd91b0 0x400f4a0d:0x3ffd9290 0x400ffe75:0x3ffd92d0 0x400f7a76:0x3ffd9370 0x400f4099:0x3ffd93a0 0x400f40c6:0x3ffd93c0 0x400d8031:0x3ffd93e0 0x400d82c9:0x3ffd9480 0x400d6dbc:0x3ffd94a0
                      

                      Code here :

                      print('------ STARTING UP ------')
                      from time import sleep
                      print('import sleep')
                      from machine import reset
                      print('import reset')
                      sleep(1)
                      from network import WLAN
                      print("Main.py WLAN OK")
                      wlan = WLAN()
                      print("Main.py wlan Instantiation OK")
                      wlan.deinit()
                      print('Main.py Disable Wifi')
                      from machine    import Pin, UART, SPI, RTC, ADC, Timer
                      print("Main.py Machine OK")
                      from time       import time, gmtime
                      print("Main.py Time OK")
                      from pycom      import nvs_set, nvs_erase_all, rgbled
                      print("Main.py import pycom OK")
                      print("------ END ------")
                      sleep(0.5)
                      reset()
                      
                      1 Reply Last reply Reply Quote 0
                      • E Offline
                        ElinhohHD
                        last edited by ElinhohHD

                        @Gijs
                        I have this problem after importing the WLAN class from network
                        Moreover on other cards I have no problems.
                        Would it be a manufacturing defect ?

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          Gijs
                          last edited by

                          Hi,
                          I believe you are experiencing the same issues as discussed here:
                          https://forum.pycom.io/topic/5765/loadprohibited-core-panic-when-initialize-wlan
                          Can you review the discussion?
                          There are of course slight differences between the antennas etc. on the boards (manufacturing tolerances etc) and doing a full erase using the update firmware tool might help in that regard.

                          Let me know!

                          1 Reply Last reply Reply Quote 1

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1 / 1
                          • First post
                            Last post

                          Pycom on Twitter

                          Pycom