Open h1aji opened 1 year ago
The pin 16 is used for the external ram. May be a conflict. You must see the log on the uart for indications and error messages.
thats not a problem, I set SPIRAM CS pin to 15
void extramInit() {
char test[17] = {"FFFFFFFF"};
char testram[17]= {"01234567"};
PIN_DIR_OUTPUT = (1<<GPIO15);
PIN_OUT_SET = (1<<GPIO15);
spi_clock(HSPI, 4, 10); //2MHz
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U, 3); //GPIO15 is HSPI CS pin (Chip Select / Slave Select)
bool externram = false;
extramWrite(strlen(test), 0, testram);
extramRead(strlen(test), 0, test);
if (memcmp(test,testram,16) == 0) externram = true;
//printf(PSTR("\n=> extraram state: %d 0x%x %s\n"),externram,test[0],test );
if (externram) {
printf(PSTR("\nExternal RAM detected%c"),0x0d);
} else {
printf(PSTR("\nExternal RAM not detected%c"),0x0d);
}
}
And it works fine
Hi @karawin I would like to modify wires (to release pins 4, 5 and 15) as per below
and have modified vs1053.c
All compiles ok but there is no sound coming. I tried it with this Arduino module and it works fine.
Would you be able to point what is wrong?