🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    CoreS3 Camera Example not working

    Arduino
    2
    3
    1.3k
    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.
    • M
      M5Judea
      last edited by

      i just bought an M5StackCoreS3 but when i download the camera example it is not working. and displays this in the serial monitor over and over again and again.

      load:0x3fce3808,len:0x4bc
      load:0x403c9700,len:0xbd8
      load:0x403cc700,len:0x2a0c
      entry 0x403c98d0
      E (109) opi psram: PSRAM ID read error: 0x00000000, PSRAM chip not found or not supported, or wrong PSRAM line mode
      E (109) spiram: SPI RAM enabled but initialization failed. Bailing out.
      E (703) cam_hal: cam_dma_config(301): frame buffer malloc failed
      E (704) cam_hal: cam_config(385): cam_dma_config failed
      E (704) gdma: gdma_disconnect(299): no peripheral is connected to the channel
      E (710) camera: Camera config failed with error 0xffffffff
      Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

      E (704) gdma: gdma_disconnect(299): no peripheral is connected to the channel
      E (710) camera: Camera config failed with error 0xffffffff
      Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

      Core 1 register dump:
      PC : 0x42002808 PS : 0x00060630 A0 : 0x8200f0d5 A1 : 0x3fcebf40
      A2 : 0x3fc98288 A3 : 0x00000000 A4 : 0x00000014 A5 : 0x00000004
      A6 : 0x3fcec118 A7 : 0x80000001 A8 : 0x82002804 A9 : 0x3fcebed0
      A10 : 0x00000000 A11 : 0x00000001 A12 : 0x0000001f A13 : 0x3c050143
      A14 : 0x3fcebf0c A15 : 0x3fc98368 SAR : 0x0000001d EXCCAUSE: 0x0000001c
      EXCVADDR: 0x00000040 LBEG : 0x40056f5c LEND : 0x40056f72 LCOUNT : 0x00000000

      Backtrace: 0x42002805:0x3fcebf40 0x4200f0d2:0x3fcebfa0

      1 Reply Last reply Reply Quote 0
      • felmueF
        felmue
        last edited by

        Hello @M5Judea

        hmm, the camera example works for me. Is that the example you are using as well?

        It seems that in your case for some reason the PSRAM is not found and without PSRAM there is not enough memory and the code crashes. But why it would fail to detect PSRAM I have no idea, sorry.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        1 Reply Last reply Reply Quote 0
        • felmueF
          felmue
          last edited by felmue

          Hello @M5Judea

          further investigation and tests indicate that in your case the incorrect line mode to access PSRAM is used, e.g. opi instead of qspi. I can force the same error in my setup by forcing line mode opi.

          That said, the line mode is normally defined via board selection. So my best guess would be that you might have selected the incorrect board? Please double check that you have selected the proper board in your IDE.

          Thanks
          Felix

          GPIO translation table M5Stack / M5Core2
          Information about various M5Stack products.
          Code examples

          1 Reply Last reply Reply Quote 0
          • First post
            Last post