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

Error during build: MKR WiFi 1010 #13

Open
PerryS741 opened this issue Mar 1, 2022 · 0 comments
Open

Error during build: MKR WiFi 1010 #13

PerryS741 opened this issue Mar 1, 2022 · 0 comments

Comments

@PerryS741
Copy link

I'm using the Adafruit_Benchmark sketch in examples. I have all the pins connected to where they are on the script, but it just gives me a compile error. I can't figure out why. Here's the screen.
`/usr/local/bin/arduino-cli compile --fqbn arduino:samd:mkrwifi1010 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/678866825/build --build-path /tmp/arduino-build-76DF854C77286D0A3301CE7F253E6996 --library /mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Adafruit ST7735 and ST7789 Library --library /mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library /tmp/678866825/sketch_feb24a

Using library adafruit_busio_1_11_1 at version 1.11.1 in folder: /home/builder/opt/libraries/adafruit_busio_1_11_1

Using library Wire at version 1.0 in folder: /home/builder/.arduino15/packages/arduino/hardware/samd/1.8.12/libraries/Wire

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp: In member function 'void Arduino_ST7789::writeSPI(uint8_t)':

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:126:5: error: 'SPDR' was not declared in this scope

SPDR = c;

^~~~

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:126:5: note: suggested alternative: 'SPI1'

SPDR = c;

^~~~

SPI1

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp: In member function 'void Arduino_ST7789::writeMulti(uint16_t, uint16_t)':

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:176:32: error: 'SPDR' was not declared in this scope

: [spdr] "I" (_SFR_IO_ADDR(SPDR)), [lo] "r" ((uint8_t)color), [hi] "r" ((uint8_t)(color>>8))

^~~~

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:176:32: note: suggested alternative: 'SPI1'

: [spdr] "I" (_SFR_IO_ADDR(SPDR)), [lo] "r" ((uint8_t)color), [hi] "r" ((uint8_t)(color>>8))

^~~~

SPI1

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:176:19: error: '_SFR_IO_ADDR' was not declared in this scope

: [spdr] "I" (_SFR_IO_ADDR(SPDR)), [lo] "r" ((uint8_t)color), [hi] "r" ((uint8_t)(color>>8))

^~~~~~~~~~~~

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:176:19: note: suggested alternative: 'FLASH_ADDR'

: [spdr] "I" (_SFR_IO_ADDR(SPDR)), [lo] "r" ((uint8_t)color), [hi] "r" ((uint8_t)(color>>8))

^~~~~~~~~~~~

FLASH_ADDR

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp: In member function 'void Arduino_ST7789::copyMulti(uint8_t*, uint16_t)':

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:212:32: error: 'SPDR' was not declared in this scope

: [spdr] "I" (_SFR_IO_ADDR(SPDR)), [img] "e" (img), [lo] "r" (lo), [hi] "r" (hi)

^~~~

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:212:32: note: suggested alternative: 'SPI1'

: [spdr] "I" (_SFR_IO_ADDR(SPDR)), [img] "e" (img), [lo] "r" (lo), [hi] "r" (hi)

^~~~

SPI1

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:212:19: error: '_SFR_IO_ADDR' was not declared in this scope

: [spdr] "I" (_SFR_IO_ADDR(SPDR)), [img] "e" (img), [lo] "r" (lo), [hi] "r" (hi)

^~~~~~~~~~~~

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:212:19: note: suggested alternative: 'FLASH_ADDR'

: [spdr] "I" (_SFR_IO_ADDR(SPDR)), [img] "e" (img), [lo] "r" (lo), [hi] "r" (hi)

^~~~~~~~~~~~

FLASH_ADDR

In file included from /home/builder/.arduino15/packages/arduino/hardware/samd/1.8.12/cores/arduino/Arduino.h:51:0,

from /mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.h:16,

from /mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:4:

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp: In member function 'void Arduino_ST7789::commonST7789Init(const uint8_t*)':

/home/builder/.arduino15/packages/arduino/hardware/samd/1.8.12/variants/mkrwifi1010/variant.h:52:51: error: cannot convert 'volatile uint32_t* {aka volatile long unsigned int*}' to 'volatile uint8_t* {aka volatile unsigned char*}' in assignment

#define portOutputRegister(port) (&(port->OUT.reg))

^

/mnt/create-efs/webide/3e/7f/3e7f228b930eb20eecb4c767fb9cfa48:perrys3177/libraries_v2/Fast ST7789 Library/Arduino_ST7789_Fast.cpp:314:12: note: in expansion of macro 'portOutputRegister'

dcPort = portOutputRegister(digitalPinToPort(dcPin));

^~~~~~~~~~~~~~~~~~

Error during build: exit status 1`

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

1 participant