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

    spi problem with p12 pin and boot modes

    Scheduled Pinned Locked Moved WiPy 2&3
    wipyspisafe mode
    5 Posts 4 Posters 1.4k 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.
    • A Offline
      anthony_soben
      last edited by

      Hi,
      I try to work with an ADC converter in SPI. I have connected the device like this:
      SCK - > p10
      MOSI - > p11
      MISO -> p12
      But i have a problem because the MISO is in wait at high level and after a reset the wipy enters a safe boot mode (the orange led blink).

      Which solutions can I have to avoid this problem?

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @anthony_soben
        last edited by

        @anthony_soben
        choose different pin
        e.g. change pins in init

        spi = SPI(0, mode=SPI.MASTER, baudrate=2000000, polarity=0, phase=0, pins=('P19','P20','P21'))
        

        think about people first, then computers

        1 Reply Last reply Reply Quote 1
        • A Offline
          Andreas Bruring
          last edited by

          then why may i ask is that the default pin for the SPI MISO. i am having the same problem with a prototype.

          according to to spi specs the slaves are supposed to be high impedance. but apparently some pull up somewhat.

          is there a workaround possible with a high resistance pull-down resistor?

          1 Reply Last reply Reply Quote 0
          • Charly86C Offline
            Charly86
            last edited by Charly86

            I faced the same issue with a custom board mapped I2C to P12, and spend long time to find out there was a safe boot mode preventing some of my boards to start.
            I think the pinout mapping should mention a warning on this pin (not only text below as today) because other warning pin have a warning signal but not this one) P2 GPIO0 too but has I'm coming from ESP8266 I was aware about this one ;-)

            Something like that should help other doing the same mistake as us !!!

            0_1527780062451_a2eedc90-1f37-4502-9af5-81d0efdbc5fe-image.png

            A 1 Reply Last reply Reply Quote 2
            • A Offline
              Andreas Bruring @Charly86
              last edited by

              @charly86
              and while there at it they can also mention that p8 must not be pulled up when you want to flash the firmware. because if you don't it wont get into download_boot mode but instead into HSPI_FLASH_BOOT mode and will start a reset loop. we also had that problem.

              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