Open halsbox opened 3 days ago
You don't need nothing special.
If you have configured your VS Code with ESP32 plugin, the project is built smoothly.
https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/tutorial/install.md
Thanks! Got it building with custom vid/pid. On linux I had to patch pico-keys-sdk/src/esp_compat.h:
diff --git a/src/esp_compat.h b/src/esp_compat.h
index 0379c13..6266058 100644
--- a/src/esp_compat.h
+++ b/src/esp_compat.h
@@ -20,7 +20,7 @@
#ifdef ESP_PLATFORM
-#include "freertos/freertos.h"
+#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
typedef QueueHandle_t queue_t;
#define queue_init(a,b,c) do { *(a) = xQueueCreate(c, b); } while(0)
Also found nothing VSCode specific. Any or no IDE is OK, general instructions would be:
git clone --recursive https://github.com/espressif/esp-idf.git && cd esp-idf
./install.sh esp32s3
. ./export.sh
cd /path/to/pico-fido/
idf.py -DUSB_VID=0x**** -DUSB_PID=0x**** all
idf.py flash
Thanks! Got it building with custom vid/pid. On linux I had to patch pico-keys-sdk/src/esp_compat.h:
diff --git a/src/esp_compat.h b/src/esp_compat.h index 0379c13..6266058 100644 --- a/src/esp_compat.h +++ b/src/esp_compat.h @@ -20,7 +20,7 @@ #ifdef ESP_PLATFORM -#include "freertos/freertos.h" +#include "freertos/FreeRTOS.h" #include "freertos/queue.h" typedef QueueHandle_t queue_t; #define queue_init(a,b,c) do { *(a) = xQueueCreate(c, b); } while(0)
Also found nothing VSCode specific. Any or no IDE is OK, general instructions would be:
git clone --recursive https://github.com/espressif/esp-idf.git && cd esp-idf ./install.sh esp32s3 . ./export.sh cd /path/to/pico-fido/ idf.py -DUSB_VID=0x**** -DUSB_PID=0x**** all idf.py flash
Can you show me how you do this? I would be very grateful for a tutorial video! Developer does not help!
Hi, @metabo7000! Please provide what OS do you use. I did build it using my Linux desktop. For linux you need git installed and do:
git clone --recursive https://github.com/polhenarejos/pico-fido.git
#include "freertos/freertos.h"
to #include "freertos/FreeRTOS.h"
in pico-fido/pico-keys-sdk/src/esp_compat.hgit clone --recursive https://github.com/espressif/esp-idf.git && cd esp-idf
./install.sh esp32s3
. ./export.sh
cd ../pico-fido/
idf.py -DUSB_VID=0x**** -DUSB_PID=0x**** all
idf.py flash
@metabo7000 just checked docker build is OK. If you own any OS with docker installed you can build using docker.
pico-fido/pico-keys-sdk/src/esp_compat.h
to include case sensitive "freertos/FreeRTOS.h" as I mentioned above cd pico-fido
) and run:
docker run --rm -v $PWD:/pico -w /pico -u $UID -e HOME=/tmp espressif/idf idf.py -DUSB_VID=0x**** -DUSB_PID=0x**** all
build
subfolder.
Hi! What branch/tag should I use for building esp32s3 images? What's the command to build for esp32s3? What env variables should be set when building image? Where in source tree (including git submodules) should I search for and add my own board .h files (e.g. to set LED type/pins) I did a brief grep through source tree (including *-sdk) on master branch and tried running cmake with ESP_PLATFORM=1 but didn't manage to get it building. Will appreciate any help.