Skip to content

Error building spi example xpt2046 for esp32/m5atom_matrix #1581

@louisvangeldrop

Description

@louisvangeldrop

Build environment: Windows
Moddable SDK version: 7.2.1
Target device: esp32/m5atom_matrix

Description
A brief summary of the problem

Steps to Reproduce

  1. Build and install the app using this build command: mcconfig -m -d -p esp32/m5atom_matrix
  2. Error
# cc spi.c.o
In file included from C:\Users\louis\projecten\moddable\modules\io\spi\esp32\spi.c:4:                                                 
C:/Users/louis/projecten/moddable/modules/io/spi/esp/spi.c: In function 'xs_spi_constructor':                                         
C:/Users/louis/projecten/moddable/modules/io/spi/esp/spi.c:134:14: error: 'SPI_HOST' undeclared (first use in this function); did you mean 'SPI3_HOST'?                                                                                                                     
  134 |         if ((SPI_HOST != tmp) && (SPI2_HOST != tmp)                                                                           
      |              ^~~~~~~~                                                                                                         
      |              SPI3_HOST                                                                                                        
C:/Users/louis/projecten/moddable/modules/io/spi/esp/spi.c:134:14: note: each undeclared identifier is reported only once for each function it appears in
NMAKE : fatal error U1077: 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions