joelsernamoreno/EvilCrowRF-V2

error Architecture or board not supported

Closed this issue · 2 comments

I bought the device on https://cyborg.ksecsolutions.com/.

I plugged the device while pressing the 'EN' button and on Arduino the port /dev/cu.usbserial-14210 showed up.

I opened the sketch file EvilCrowRF-V2/firmware/v1.0/EvilCrow-RFv2/EvilCrow-RFv2.ino.

I tried to compile/upload the code to my EvilCrow RF v2 but I got the following error:

In file included from /Users/gj/Library/Arduino15/libraries/SD/src/utility/Sd2Card.h:26:0,
                 from /Users/gj/Library/Arduino15/libraries/SD/src/utility/SdFat.h:29,
                 from /Users/gj/Library/Arduino15/libraries/SD/src/SD.h:20,
                 from /Users/gj/Tools/EvilCrowRF-V2/firmware/v1.0/EvilCrow-RFv2/EvilCrow-RFv2.ino:12:
/Users/gj/Library/Arduino15/libraries/SD/src/utility/Sd2PinMap.h:524:2: error: #error Architecture or board not supported.
 #error Architecture or board not supported.
  ^
Multiple libraries were found for "SD.h"
  Used: /Users/gj/Library/Arduino15/libraries/SD
  Not used: /Users/gj/Library/Arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/SD
exit status 1

Compilation error: exit status 1

If I use the esp32 by Espressif system version 2.0.5, the compilation seems to work but I got the following error:

Sketch uses 858093 bytes (65%) of program storage space. Maximum is 1310720 bytes.
Global variables use 63724 bytes (19%) of dynamic memory, leaving 263956 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port /dev/cu.usbserial-14210
Connecting....Traceback (most recent call last):
  File "esptool.py", line 34, in <module>
  File "esptool/__init__.py", line 1004, in _main
  File "esptool/__init__.py", line 790, in main
  File "esptool/loader.py", line 1108, in flash_set_parameters
  File "esptool/loader.py", line 406, in check_command
  File "esptool/loader.py", line 375, in command
  File "esptool/loader.py", line 307, in read
StopIteration
[6275] Failed to execute script 'esptool' due to unhandled exception!

Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 4c:75:25:da:83:00
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Failed uploading: uploading error: exit status 1

Maybe my guess to boot the device while pressing the 'EN' button to put it in 'flash' mode is wrong and it is not needed ? Anyway, if you have time to help :)

Well... Fact is that it is not working on my mac but works on another laptop (debian)...

Compilation and upload is now ok, but:

$ curl -ksi http://192.168.4.1
HTTP/1.1 404 Not Found
Content-Length: 0
Connection: close
Accept-Ranges: none

$ curl -ksi http://192.168.4.1/index.html
HTTP/1.1 500 Internal Server Error
Content-Length: 0
Connection: close
Accept-Ranges: none

I guess I have to buy a new sdcard (less than 64Go)

Hi!

I can't help you with flashing the firmware on MacOS, I don't have a Mac and have never tried this here. On Windows or Linux it works without pressing any button.

Well, if you have managed to flash the latest firmware, you have to copy the HTML and URH folders to a microSD card

It is recommended that the microSD card is not bigger than 32gb. I have tried some microSD cards and they don't work well, if your microSD card doesn't work, try another card