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

Giorgio #1

Open
giorgio-palma opened this issue Feb 8, 2015 · 7 comments
Open

Giorgio #1

giorgio-palma opened this issue Feb 8, 2015 · 7 comments

Comments

@giorgio-palma
Copy link

I downloaded this file.zip, I unpacked in the folder Arduino libraries and gives me the following errors:
I use Arduino:1.5.6-r2, Windows 8, Scheda:"Arduino Uno"

C:\Users\GIORGIOP\Documents\Arduino\libraries\Adb\max3421e.cpp: In function 'void max3421e_init()':
C:\Users\GIORGIOP\Documents\Arduino\libraries\Adb\max3421e.cpp:57: error: 'DDRE' was not declared in this scope
C:\Users\GIORGIOP\Documents\Arduino\libraries\Adb\max3421e.cpp:58: error: 'DDRJ' was not declared in this scope
C:\Users\GIORGIOP\Documents\Arduino\libraries\Adb\max3421e.cpp:93: error: 'PORTJ' was not declared in this scope
C:\Users\GIORGIOP\Documents\Arduino\libraries\Adb\max3421e.cpp:93: error: 'PORTJ' was not declared in this scope
C:\Users\GIORGIOP\Documents\Arduino\libraries\Adb\max3421e.cpp: In function 'uint8_t max3421e_poll()':
C:\Users\GIORGIOP\Documents\Arduino\libraries\Adb\max3421e.cpp:330: error: 'PORTE' was not declared in this scope
C:\Users\GIORGIOP\Documents\Arduino\libraries\Adb\max3421e.cpp:333: error: 'PORTJ' was not declared in this scope

someone has a solution?

@giorgio-palma
Copy link
Author

Ohps! I have not selected the type of Arduino ... you must select "Arduino Adk" or "Arduino Mega 2560"!!! with "Arduino Uno" does not work. Buti, Simeone can tell me which library I have to add to make it run with arduino Uno and obviously the Hosts shield??:-(

@agoransson
Copy link
Owner

What does your /libraries/ folder look like? Tell me the directory structure please.

@giorgio-palma
Copy link
Author

Hello Mr. Agoransson,
I can use this library only if I select in the Arduino IDE menu/Tools/board/Arduino adk or Arduino mega or mega2560.
But, this library does not work if I select the Arduino Uno or other.
The directory of my arduino library folder is:
•\Arduino
•\libraries
•\Adb
•\examples
Adb.cpp
Adb.h
ch9.h
max3421e.cpp
max3421e.h
max3421e_constants.h
usb.cpp
usb.h

Date: Mon, 9 Feb 2015 13:58:45 -0800
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [microbridge-arduino] Giorgio (#1)

What does your /libraries/ folder look like? Tell me the directory structure please.


Reply to this email directly or view it on GitHub.

@giorgio-palma
Copy link
Author

Hello Mr. Agoransson,
I can use this library only if I select in the Arduino IDE menu/Tools/board/Arduino adk or Arduino mega or mega2560.
But, this library does not work if I select the Arduino Uno or other.
The directory of my arduino library folder is:
•\Arduino
•\libraries
•\Adb
•\examples
Adb.cpp
Adb.h
ch9.h
max3421e.cpp
max3421e.h
max3421e_constants.h
usb.cpp
usb.h

@agoransson
Copy link
Owner

I'm honestly not sure why it wouldn't work - I haven't tested it myself since I only published this fixed version for a course last year - and we happened to use the Mega ADK in that course so unfortunately these problems didn't happen then. I'll have a look at why it doesn't compile for Arduino UNO.

@agoransson
Copy link
Owner

I've been researching a while now and it seems it's a problem with the underlying libraries.

Have a look at this thread:
http://www.answerques.com/siBJgqXXQUSe/cant-compile-the-demokitpde-for-android-adk

If you scroll down there are a few suggestions for fixing this, personally I would attempt to downgrade Arduino IDE and see if that helps, then move to the other suggestions.

@giorgio-palma
Copy link
Author

I found the solution, after thinking about it a week, I came to the solution. Now this library can also work well with the ArduinoUNO board.
The solution is very simple, just delete these three lines of code in the "MAX3421e.cpp":
DDRE &= ~ 0x40;
DDRJ &= ~ 0x08;
DDRJ |= 0x04;
if the code must be compiled ArduinoUNO, these memory addresses do go cresh compiling code.
I hope you can fix this library for all those people who are passionate about Arduino.
Tank you!

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