-
Notifications
You must be signed in to change notification settings - Fork 352
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
error: 'regtype' does not name a type #590
Comments
Hey @FlorentNGN, I am not sure if you are still working on this or managed to get it working, but I am in the same situation (Arduino Uno R4 WIFI, OV5642 instead of your OV2640) and I can explain these errors. The output you have provided actually describes two different errors with the same root cause. Problem 1.
|
Okay, so I went on an adventure. It looks like the compiler options used to specify the R4 Minima and R4 WIFI are I discovered that the register size of the Renesas RA4M1 is 16-bit even though it is ostensibly a 32-bit CPU. I also suspect that none of the definitions apart from Finally, I made a PR to add support for Arduino Uno R4 boards. For future travelers:If you are using an Arduino Uno R4 and the above PR is not merged, go to my fork of this repo and use that instead. Good luck! |
I recently bought an arducam mini 2MP, I connect it to my arduino uno R4 WIFI, I want to run the example code "ArduCAM_Mini_2MP_OV2640_functions", but when I want to compile, it says:
C:\Users\Acer\AppData\Local\Arduino15\libraries\ArduCAM/ArduCAM.h:768:2: error: 'regtype' does not name a type; did you mean 'wctype'?
regtype *P_CS;
^~~~~~~
wctype
C:\Users\Acer\AppData\Local\Arduino15\libraries\ArduCAM/ArduCAM.h:769:2: error: 'regsize' does not name a type
regsize B_CS;
^~~~~~~
C:\Users\Acer\AppData\Local\Arduino15\libraries\ArduCAM\examples\mini\ArduCAM_Mini_2MP_OV2640_functions\ArduCAM_Mini_2MP_OV2640_functions.ino:28:11: error: conflicting declaration 'const int CS'
const int CS = 7;
^~
In file included from C:\Users\Acer\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.1.0\cores\arduino/Arduino.h:124:0,
from C:\Users\Acer\AppData\Local\Temp\arduino\sketches\D1EF11006A86C86A1F374DBB6FF436D3\sketch\ArduCAM_Mini_2MP_OV2640_functions.ino.cpp:1:
C:\Users\Acer\AppData\Local\Arduino15\packages\arduino\hardware\renesas_uno\1.1.0\variants\UNOWIFIR4/pins_arduino.h:136:22: note: previous declaration as 'const uint8_t CS'
static const uint8_t CS = PIN_SPI_CS;
^~
I don’t understand why, people to help me?
The text was updated successfully, but these errors were encountered: