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

    Debugging code in FiPy | Except print statements

    Scheduled Pinned Locked Moved FiPy
    4 Posts 4 Posters 57 Views 4 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.
    • B Offline
      bitvijays
      last edited by

      Hello Pycom team,

      What are the different possible ways of debugging micropython code in Fipy except print statements? Is there a document which can be referred?

      Yours Sincerely,
      Vijay

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

        Hi,

        Other than print statements, you could use the GPIO pins to indicate events in your code, and measure them using a logic analyser. Especially when speed is of essence, this method will work better.
        Now, you could use a JTAG board and connect to the appropriate pins, but I have no experience there.
        Gijs

        1 Reply Last reply Reply Quote 0
        • rcolisteteR Offline
          rcolistete
          last edited by rcolistete

          For simple states, use the RGB LED, with colours and even blink frequency meaning some states.

          For more information, save debug messagens to internal flash or microSD card (when using Expansion Board, etc).

          My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

          1 Reply Last reply Reply Quote 0
          • S Offline
            SciWax
            last edited by

            The easiest way I've found was using Putty and a TTL-Adapter like that:

            alt text

            Just connect the TTL-Adapter with Jumper Wires to the Pins P0 and P1 of your board and select the right Com Port with Putty and set the right baudrate in Putty. Don't forget to connect the Adapter to the ground of the Pycom Board and select 3.3V on the adapter with the bridge!

            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