But when I connect the SDCS pin from the SD card module to the D8 pin of the NodeMCU I get this error while trying to upload the code:
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
Already tried: Pressing flash button with RST before uploading the code, changing cable, code, nothing works if the D8 pin is connected, but it works otherwise.