EvilCrowRF-V2 icon indicating copy to clipboard operation
EvilCrowRF-V2 copied to clipboard

Problem reading SD Card

Open jeff-azevedo opened this issue 10 months ago • 4 comments

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 <SD.h> 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:

  • Formating the SD card in FAT32 and FAT16
  • Changing SD card
  • Creating a file in the SD card using my PC and tried read it in the uploaded firmware

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?

jeff-azevedo avatar Apr 11 '24 14:04 jeff-azevedo

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.

volca avatar Apr 15 '24 01:04 volca

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.

jeff-azevedo avatar Apr 15 '24 02:04 jeff-azevedo

Did you do the two steps?

  • Copy the EvilCrowRF-V2/firmware/v1.3.2/SD/HTML folder to a MicroSD card.
  • Copy the EvilCrowRF-V2/firmware/v1.3.2/SD/URH folder to a MicroSD card.

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

volca avatar Apr 15 '24 02:04 volca

I did.

image

jeff-azevedo avatar Apr 15 '24 02:04 jeff-azevedo

Hi , did you manage to solve it?

NeedMoreCoffee12 avatar May 17 '24 12:05 NeedMoreCoffee12

I sent back to the manufacturer and was refunded.

jeff-azevedo avatar May 30 '24 14:05 jeff-azevedo

Unluckily is too late for the aliexpress manufacturer :(

NeedMoreCoffee12 avatar May 30 '24 15:05 NeedMoreCoffee12