Skip to content

Compiler errors in SPI.cpp for M5Stack Stamp S3 (m5stack_stamp_s3 variant) #8185

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

Closed
1 task done
bsergei opened this issue May 10, 2023 · 0 comments · Fixed by #8187
Closed
1 task done

Compiler errors in SPI.cpp for M5Stack Stamp S3 (m5stack_stamp_s3 variant) #8185

bsergei opened this issue May 10, 2023 · 0 comments · Fixed by #8187
Labels
Status: In Progress ⚠️ Issue is in progress

Comments

@bsergei
Copy link
Contributor

bsergei commented May 10, 2023

Board

M5Stack Stamp S3

Device Description

Original M5Stack Stamp S3.

Hardware Configuration

Bare dev board.

Version

latest master (checkout manually)

IDE Name

PlatformIO

Operating System

Windows 10

Flash frequency

default

PSRAM enabled

yes

Upload speed

default

Description

While trying to compile sketch with FastLed.h dependency I got these compiler errors:

Compiling .pio\build\m5stack-stamps3\lib575\SPI\SPI.cpp.o
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp: In member function 'void SPIClass::begin(int8_t, int8_t, int8_t, int8_t)':
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:87:37: error: 'SCK' was not declared in this scope
         _sck = (_spi_num == FSPI) ? SCK : -1;
                                     ^~~
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:87:37: note: suggested alternative: 'SCL'
         _sck = (_spi_num == FSPI) ? SCK : -1;
                                     ^~~
                                     SCL
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:88:38: error: 'MISO' was not declared in this scope
         _miso = (_spi_num == FSPI) ? MISO : -1;
                                      ^~~~
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:89:38: error: 'MOSI' was not declared in this scope
         _mosi = (_spi_num == FSPI) ? MOSI : -1;
                                      ^~~~
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:90:36: error: 'SS' was not declared in this scope
         _ss = (_spi_num == FSPI) ? SS : -1;
                                    ^~
C:/Users/user/.platformio/packages/framework-arduinoespressif32/libraries/SPI/src/SPI.cpp:90:36: note: suggested alternative: 'PS'
         _ss = (_spi_num == FSPI) ? SS : -1;
                                    ^~
                                    PS

FastLed library has dependency on SPI.h. However SCK, MISO, MOSI, SS pins are not declared in variants\m5stack_stamp_s3\pins_arduino.h.

Sketch

#include <Arduino.h>
#include <FastLed.h>

void setup() {
}

void loop() {
}

Debug Message

Not related.

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress ⚠️ Issue is in progress
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants