joelsernamoreno / EvilCrowRF-V2

Creative Commons Attribution 4.0 International
424 stars 64 forks source link

Problem reading SD Card #44

Closed jeff-azevedo closed 5 months ago

jeff-azevedo commented 7 months ago

Hi all! I bought a Evil Crow to start learning hardware hacking, but got stuck in the last step of the tutorial The board's webserver simply doesn't go up. Searching for issues I find out that the SD card was not detected.

I tried the following code:

include

void setup() { Serial.begin(38400); for (int csPin = 5; csPin <= 32; csPin++) { if (SD.begin(csPin)) { Serial.print("SD card detected on CS pin: "); Serial.println(csPin); } else { Serial.print("No SD card found on CS pin: "); Serial.println(csPin); } } } void loop() {}

But never got success reading the SD card.

I tried:

If I dont solve this issue till tomorrow I'm considering to return the board and ask for refund.

Is it a board's problem or software? Any thoughts or tips on how to solve this?

volca commented 6 months ago

Please check the source code v1.3.2

#define SD_SCLK 18
#define SD_MISO 19
#define SD_MOSI 23
#define SD_SS   22

SPIClass sdspi(VSPI);

// .....

void setup() {
  // ...
  sdspi.begin(18, 19, 23, 22);
  SD.begin(22, sdspi);
}

Did you try the default firmware? There's a compiled firmware file in the same directory.

jeff-azevedo commented 6 months ago

Hi, thank you for answering.

I tried the default firmware (1.3.2), even the older versions (1.3.1 and 1.3.0) The webserver actually goes up but all it returns is 404 cause it doesnt find the pages to serve (located in the SD Card)

The below code is adapted to only check if SD card is being read:

#include <SD.h>

#define SD_SCLK 18
#define SD_MISO 19
#define SD_MOSI 23
#define SD_SS   22

SPIClass sdspi(VSPI);

void setup() {
Serial.begin(38400);

  sdspi.begin(18, 19, 23, 22);

  if (SD.begin(22, sdspi)) {
      Serial.print("SD card detected on CS pin");
  } else {
      Serial.print("No SD card found on CS pin");
  }
}

void loop() {}

Always returns "No SD card found on CS pin" Manufacturer says the board works but none of the trials worked.

volca commented 6 months ago

Did you do the two steps?

Did you find the HTML and URH folder at the root folder?

jeff-azevedo commented 6 months ago

I did.

image

NeedMoreCoffee12 commented 5 months ago

Hi , did you manage to solve it?

jeff-azevedo commented 5 months ago

I sent back to the manufacturer and was refunded.

NeedMoreCoffee12 commented 5 months ago

Unluckily is too late for the aliexpress manufacturer :(