When updates are made to the IDF on github, what are the correct commands to make sure all is refreshed properly before rebuilding your apps.
Is git pull sufficient?
IDF refresh process
Re: IDF refresh process
In my environment, I use a Makefile to build my environment. When I wish to refresh my ESP-IDF, I run "make environment". Here is the Makefile I like to use. I'm not saying that this is a recommended way or the best way and am very open to alternatives.
Code: Select all
# Makefile for building a local ESP32 build environment
IDF_PATH=$(shell pwd)/esp-idf
all:
@echo "This is the Makefile for building an ESP32 environment on Pi"
@echo "The targets are:"
@echo "- environment - Build the environment"
@echo "- setenv - Build the script that sets the environment"
environment:
sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
rm -rf esp-idf
git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf; git submodule update --init
setenv:
echo "#!/bin/bash" > setenv.sh
echo "export PATH=${PATH}:/opt/xtensa-esp32-elf/bin" >> setenv.sh
echo "export IDF_PATH=${IDF_PATH}" >> setenv.sh
chmod u+x setenv.sh
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
-
- Posts: 9709
- Joined: Thu Nov 26, 2015 4:08 am
Re: IDF refresh process
I'm sure Kolbans way works perfectly fine, but it's the equivalent of demolishing the entire flat and then rebuilding it when you want to change the curtains of your appartment :X As far as I know, a 'git pull && git submodule update' should do the trick.
Re: IDF refresh process
Hi Neil, thanks for sharing your script. I am using windows so I'll make appropriate changes.
I followed your advice and replaced the IDF dir with a fresh download and compressed uploads at 921,600 are working now.
Thanks
Glenn
I followed your advice and replaced the IDF dir with a fresh download and compressed uploads at 921,600 are working now.
Thanks
Glenn
Re: IDF refresh process
Perhaps since I was not doing the git submodule update when it was failing. Next time I will try those and fall back to a complete refresh if I get stuck again.ESP_Sprite wrote:I'm sure Kolbans way works perfectly fine, but it's the equivalent of demolishing the entire flat and then rebuilding it when you want to change the curtains of your appartment :X As far as I know, a 'git pull && git submodule update' should do the trick.
Thanks for the input.
Who is online
Users browsing this forum: No registered users and 294 guests