tobozo/WUD-Ducky

Help with build

masterkey26 opened this issue · 11 comments

Hello,

I'm trying to use the project, but none of the versions are working for me (arduino-esp32-2.0.2 / arduino-esp32-2.0.3-RC1), as soon as I access the web page and it tries to load the files, the hardware restarts , could you make an already compiled version available? Or help me? Thanks.

It seems that this project is abandoned.
Like almost all projects that use arduino, over time it becomes impossible to get them to work. The new versions of arduino IDE are not compatible with some libraries, the new libraries are not compatible with some functions, etc...
I have managed to compile the code using the 1.8.19 version of arduino and modifying boards.local.txt, but it gives me a lot of SD card problems in windows (there are files that disappear, and the card gets corrupted after each use)
I guess if you can get the exact same version of arduino IDE, and from each of the libraries used in the project, it should work.
It's a shame, because without a good firmware this board is useless.

A pre-compiled .bin file might be a good solution.

Thanks for the answer, I tried both versions of the Arduino IDE (1.8.19 / 2.3.0), I downloaded each of the project libraries, but I was unsuccessful, i had these same problems, really a compiled .bin would be a great idea.

Hi all,

I built the project with latest platformio and espressif libraries. Please check the release v0.0.2

@tobozo Can you accept a merge request for migrate the code to latest platformio instead?

@volca thanks for suggesting this, I've created a platformio branch, based on the latest changes. feel free to submit a PR on that branch.

https://github.com/tobozo/WUD-Ducky/tree/platformio

@masterkey26 boot loop problem sounds like SPIFFS is found instead of LittleFS, or maybe no filesystem was uploaded?

@bomberman8 yes development has stopped when I lost my last esp32-wud 🤣
However I can still provide some support, review pull requests and even add collaborators to the project, so it's not completely dead.

Hello,
After several attempts I managed to use the project (arduino-esp32-2.0.3-RC1), I have two questions after testing,

1º is it expected that the SD card will appear as a removable disk and be available to be used normally?
Currently with the SD card connected it appears like this:
Captura de tela 2024-03-11 160409

2º Is it possible for a script to be executed automatically when inserted into the USB?

@tobozo I upload the LittleFS filesystem.

@volca Your platformio project is still under development, correct?

Thanks for the help guys !

@masterkey26

it should appear as a removable disk with a specific label "ESP32_WUD" or something like that

to run a payload at boot add this to your setup, but keep in mind it'll freeze the webserver until the payload is finished

   runpayload( LittleFS, "/your_payload_file.quack.txt" );

@tobozo,

Understood, it appears as "ESP32_WUD" when I don't use the SD card, the funny thing is that I can see and use the files inside the SD card through the web interface.

@masterkey26 Your platformio project is still under development, correct?

I migrated the branch "main" to platformio and it works. But the branch "platformio" can't work.

@tobozo thanks for suggesting this, I've created a platformio branch, based on the latest changes. feel free to submit a PR on that branch.

I tried migrate the code to platformio but no lucky. There're many "Arduino" style codes. I wonder if arduino-cli works with the code.

@tobozo,

Understood, it appears as "ESP32_WUD" when I don't use the SD card, the funny thing is that I can see and use the files inside the SD card through the web interface.

@tobozo, is there any light on what it could be?