Open mariusl opened 2 years ago
It has been build using the plain ESP-IDF: https://github.com/martin-ger/esp32_nat_router#building-the-binaries
Hello mariusl,
you can check out my modified version of this project. This is build with PlatformIO IDE extension of VSCode. The setup process is explained here.
Wow that looks great. I opened the project and compiled straight away with no problems. The new interface looks great. Thanks for your hard work man, I am very exited about using your code now. Just one question. Is there a way to upload from PlatformIO instead of using the upload tool?
Have you checked out my linked setup process documentation? In the last screenshot you can see the compile and upload button highlighted:
The 2nd one (arrow right) is for uploading to the device.
I did use that but the ESP just goes into a reset loop if I programmed with that. If I use the esptool with the same compiled binaries, it works ok. I don't know if I am missing a step somewhere?
This was the output from the loader. Note the last file location is not the same as what you specified in the document
Compressed 23136 bytes to 14287... Writing at 0x00001000... (100 %) Wrote 23136 bytes (14287 compressed) at 0x00001000 in 0.7 seconds (effective 258.2 kbit/s)... Hash of data verified. Compressed 3072 bytes to 116... Writing at 0x00008000... (100 %) Wrote 3072 bytes (116 compressed) at 0x00008000 in 0.1 seconds (effective 342.5 kbit/s)... Hash of data verified. Compressed 8192 bytes to 31... Writing at 0x0000e000... (100 %) Wrote 8192 bytes (31 compressed) at 0x0000e000 in 0.1 seconds (effective 541.4 kbit/s)... Hash of data verified. Compressed 1225568 bytes to 675879...
Here is the complete output for the build. I don't see that the build.py script is running.
Processing esp32dev (platform: espressif32; board: esp32dev; framework: espidf) -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via
-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (3.3.2) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
`
I think your PlatformIO-Espressif 32 -platform module is too old (3.3.2). For support of your installed esp-idf (4.3.0) you need at least 3.4.0 (s Release)
I think after updating this will work. This is the only difference, beside of the pip warning, between your and mine output.
Btw. the build.py-script is not really needed. This is just for me to build the release-zips.
That did the trick. Thanks for your help, it's much appreciated. Last question, how do you get the Html pages to be all in one block - not formatted?
This is called HTML minifying and is implemented inside the build.py-script with python.
Aah I am learning every day. Is it possible to put the un-minified scripts on repository. I want to add some functionality but it's a pain to edit the minified stuff. Although I have been doing manual reformatting with my CoffeeCup editor
Hi I am not sure what your build environment is but I cannot figure out how to build this project using Visual Studio Code and PlatformIO. If there is a way to do it either with or without PlatformIO in VSC I would appreciate any help.