-
Notifications
You must be signed in to change notification settings - Fork 353
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
Build errors (lots of) with Teensy 3.x (Arduino IDE 1.8.7 + Teensyduino 1.44) #368
Comments
@XFer012 |
Thanks for your support. Time ago, user "sumotoy" already contributed patches here, to have Teensy 3.x work with Arducam: but looks like they were ignored. :( Just updating those patches to current source should do the trick; "sumotoy" even started a branch to work on Arducam library for Teensy but now won't compile anymore (too many changes): |
@XFer012 |
@XFer012 |
Wow, that's great, thanks a lot !!! :) :) :) Teensy is actually a whole family of dev boards. |
Hello, This time the sketch builds correctly :) but unfortunately I get this error: ACK CMD ArduCAM Start! END I've attached SPI pins to Teensy SPI#0 (default SPI), which means: Anything I may try? |
@XFer012 |
Hello, |
Update: I purchased an Arduino Uno (original, brand new) and get the very same error. |
Sorry: faulty jumper. Works OK with Arduino Uno (not yet with Teensy 3.6). |
Resolved! Sorry I can't send a patch file now (not to mention a pull request), but the correction is very easy:
|
It would be great to also add SPI transaction, as suggested in "sumotoy" patches |
With this patch for current Arducam.cpp, Teensy error is fixed and SPI transactions are automatically supported (with compatible SPI libraries). Sorry I'm not able to issue a proper git pull request: |
@XFer012 |
@XFer012 and @UCTRONICS The current version does not build on a Teensy. That is the last || TEENSYDUINO at about line 3226 causes the issue where it then tries to use ESP specific register names which are not defined for Teensy. That is it should go back to
|
@KurtE |
Hello,
just purchased an Arduino Mini Module 2MP to use with my Teensy 3.2 and 3.6 boards.
I'm using your latest library (https://github.com/ArduCAM/Arduino) and trying to build this example
https://github.com/ArduCAM/Arduino/tree/master/ArduCAM/examples/mini/ArduCAM_Mini_2MP_OV2640_functions
I already edited "memorysaver.h" to define (only) the 2mp Mini module.
I use Arduino IDE v1.8.7 and latest Teensyduino add-on v1.44, but when I select a Teensy 3.2 or 3.6 board and try to build the sketch, I get many errors, for example:
`In file included from d:\temp\arduino_modified_sketch_232629\ArduCAM_Mini_2MP_OV2640_functions.ino:11:0:
F:\Arduino\libraries\ArduCAM/ArduCAM.h:713:2: error: 'regtype' does not name a type
regtype *P_CS;
^
F:\Arduino\libraries\ArduCAM/ArduCAM.h:714:2: error: 'regsize' does not name a type
regsize B_CS;
^
ArduCAM_Mini_2MP_OV2640_functions: In function 'void loop()':
ArduCAM_Mini_2MP_OV2640_functions:471: warning: unused variable 'temp_last'
uint8_t temp, temp_last;
Using library Wire at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Wire
Using library ArduCAM in folder: F:\Arduino\libraries\ArduCAM (legacy)
Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI
Error compiling for board Teensy 3.2 / 3.1.
`
It looks like the patches proposed by "sumotoy" to get Arducam library work with Teensy were reverted, and Teensy does not work anymore?
The text was updated successfully, but these errors were encountered: