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 Dump and Bluetooth issues

    Scheduled Pinned Locked Moved LoPy
    4 Posts 2 Posters 61 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.
    • T Offline
      ThomasZ2196
      last edited by

      Hello everyone !

      I need for my work to be able to control a LoPy4 board using a phone. So I'm currently looking to pair the LoPy4 with my phone (Samsung Galaxy S9).

      I'm not used with this kind of board so I'm following the bluetooth chapter of the pycom docs. But when I upload this code :

      import ubinascii
      from network import Bluetooth
      
      bluetooth = Bluetooth()
      bluetooth.start_scan(20)
      

      A core dump error loop occured and I can't upload any new code without reset the board with the firmware plugin. Here the end of core dump error :

      Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
      Core 0 register dump:
      PC      : 0x401ef77f  PS      : 0x00060430  A0      : 0x801e0e01  A1      : 0x3ffee9e0  
      A2      : 0xa4d59534  A3      : 0x3fbc1eec  A4      : 0x00060420  A5      : 0x3ffeeaa0  
      A6      : 0x0000000c  A7      : 0x3ffbafd4  A8      : 0xb33fffff  A9      : 0x0000cdcd  
      A10     : 0x3ffeb550  A11     : 0x401c027c  A12     : 0xb33fffff  A13     : 0x0000cdcd  
      A14     : 0x000000aa  A15     : 0x3ffeb510  SAR     : 0x0000000d  EXCCAUSE: 0x0000001c  
      EXCVADDR: 0xa4d59534  LBEG    : 0x400934c4  LEND    : 0x400934f2  LCOUNT  : 0x00000000  
      
      ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000
      
      Backtrace: 0x401ef77f:0x3ffee9e0 0x401e0dfe:0x3ffeea50 0x401e12bd:0x3ffeea70 0x401cd10e:0x3ffeea90
      

      Maybe I forgot one step ?

      Thank you in advance for your help !

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

        Hi,
        I cannot reproduce the error using your example. Can you tell me the firmware version you are running by using

        >>>import os
        >>>os.uname() 
        

        (Try to update to the latest firmware version)
        But you can use safe boot to disable the main.py and boot.py so you can upload new code. This page: https://docs.pycom.io/gettingstarted/programming/safeboot/ explains more on how to do this.
        Best

        1 Reply Last reply Reply Quote 0
        • T Offline
          ThomasZ2196
          last edited by

          Hi, I'm using the 1.20.2.rc10 firmware version.

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

            Which firmware version are you using? Pybytes or Pygate?
            Is pybytes activated on boot or no?
            Can you submit the whole stack trace (from power on reset to coredump and on)?
            Is your power supply maybe at fault here? Are you able to supply enough current?

            This basic example should work on any device without errors, so I am wondering what is different in your case..

            1 Reply Last reply Reply Quote 0

            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