GPIO Warnings - Pinout Reset

Discussion in 'UDOO 101' started by cruxlab, Aug 8, 2014.

  1. cruxlab

    cruxlab New Member

    Joined:
    Aug 8, 2014
    Messages:
    1
    Likes Received:
    0
    Hi
    I recently read the section GPIOs Warnings in the Wiki. But I am a bit confused how to avoid.

    1. Am I right I should check in my Arduino sketch the pinout direction?
    2. If I am aware of that, how can I reset the pinout direction for SAM3x8E?

    Thanks for your help!
     
  2. peter247

    peter247 New Member

    Joined:
    Mar 10, 2014
    Messages:
    263
    Likes Received:
    2
    If you only use one of the side , sam or imx6 you don`t need to be concerned .
    What they are saying is don`t set both sides to output !!!!.
    I`ve not 100% sure (99.9%) , but I think removing to power should reset all the port , then it will start running the program , so setting the ports up again , as per program
     
  3. alaskan_udoo

    alaskan_udoo New Member

    Joined:
    Mar 13, 2014
    Messages:
    2
    Likes Received:
    0
    I am interested in this too. I do not want to damage my UDOO!
    I display all i.MX6 GPIO on screen using command:
    grep ^ /sys/class/gpio/*/direction (or similar, I don't have my notes in front of me).
    This gives me a nice view of everything.
    I want to do the same thing for the SAM3x portion of the UDOO, so that I can
    compare what they are, and to make sure they match properly.
    Can I do this from command line?
    Thanks!
     
  4. alaskan_udoo

    alaskan_udoo New Member

    Joined:
    Mar 13, 2014
    Messages:
    2
    Likes Received:
    0
    In all my recent research, it looks as if the SAM3x pins must be assigned using Arduino programming only. The best advice is to initialise all pins to INPUT state, and proceed from there. That is what I will do. Once there is a new project idea, the Arduino pin state can be initialised properly, and nothing will be damaged.
     

Share This Page