Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adc-mcu not responding #2

Open
DavidOliveros opened this issue Oct 6, 2015 · 1 comment
Open

Adc-mcu not responding #2

DavidOliveros opened this issue Oct 6, 2015 · 1 comment

Comments

@DavidOliveros
Copy link

I´m currently trying to run the ADC as you did, I had no problems with the CPU, but when I try with the mcu, it doesn’t work, I built and downloaded it as you explain, but when I run the setup_I2C_MCU.sh it displays the following:

./setup_I2C_MCU.sh: line 2: echo: write error: Device or resource busy
./setup_I2C_MCU.sh: line 3: echo: write error: Device or resource busy
./setup_I2C_MCU.sh: line 4: echo: write error: No such device
./setup_I2C_MCU.sh: line 5: echo: write error: No such device
./setup_I2C_MCU.sh: line 6: echo: write error: No such device
./setup_I2C_MCU.sh: line 7: echo: write error: No such device
./setup_I2C_MCU.sh: line 8: echo: write error: Device or resource busy
./setup_I2C_MCU.sh: line 9: echo: write error: Device or resource busy
./setup_I2C_MCU.sh: line 10: echo: write error: No such device
./setup_I2C_MCU.sh: line 11: echo: write error: No such device
./setup_I2C_MCU.sh: line 13: echo: write error: No such device
./setup_I2C_MCU.sh: line 15: /sys/class/gpio/gpio214/direction: No such file or directory
./setup_I2C_MCU.sh: line 16: /sys/class/gpio/gpio204/direction: No such file or directory
./setup_I2C_MCU.sh: line 17: /sys/class/gpio/gpio205/direction: No such file or directory
./setup_I2C_MCU.sh: line 20: /sys/class/gpio/gpio236/direction: No such file or directory
./setup_I2C_MCU.sh: line 21: /sys/class/gpio/gpio237/direction: No such file or directory
./setup_I2C_MCU.sh: line 22: /sys/class/gpio/gpio212/direction: No such file or directory
./setup_I2C_MCU.sh: line 23: /sys/class/gpio/gpio213/direction: No such file or directory

It gets stuck at this part and does nothing, any ideas?
Is the connection diagram correct, we aren’t using the interruption, are we? and the code is supposed to be reading the AIN0 – GND so we only should connect those wires, right?

Greetings,

David Oliveros

@humberto-garza
Copy link
Owner

Sorry for the late reply.
I hope you figured it out. But in other case.
I would suggest you flash your Edison to a whole new Image. right after that, load the MCU program and see if it works. Sometimes when you use the I2C from the Atom, it "holds" the bus for ...ever and you may never get it available for the MCU, when you use it, make sure to end the programs safely.

Let me know if it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants