Skip to content

Explain fix for Raspberry Pi 2 #9

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Explain fix for Raspberry Pi 2 #9

wants to merge 2 commits into from

Conversation

ComSubVie
Copy link

The code wasn't working on a Raspberry Pi 2 since the used Gertboard code (gb_common) uses hard-coded memory addresses to access the GPIOs. And the memory mapping has changed between Pi 1 and Pi 2.

This adds an explanation and adds a correct address (commented out) for the Raspberry Pi 2 to gb_common.c. It also fixes the Makefile to recompile gb_common.c.

The Makefile previously didn't create a new gb_common.o if the corresponding .c
file was changed. Now it just compiles both files to the hx711 executable.
The code was not working on Raspberry Pi 2 because of changed memory addresses. The README now explains how to fix this.
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

Successfully merging this pull request may close these issues.

1 participant