Page 1 of 1

Cannot compile code from S2 to S3

Posted: Mon Mar 06, 2023 8:30 am
by Brutas Minimus
I Cannot compile code from ESP32-S2 to a ESP32-S3 without erroring.

One line in an include h:
SET_PERI_REG_BITS( SPI_MOSI_DLEN_REG(sel_SPI), gives no error on the S2.

But on the S3 it errors as follows:

'SPI_MOSI_DLEN_REG' was not declared in this scope

I'm new to this and I do not know what could have changed from S2 to S3 to give this error.

Is there some way to port the S2 code so that it will compile for an S3 board?

Using Arduino IDE 1.8.19 or 2.04 makes no difference with any S3 board selected.

Thanks.