Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tools:espidf [2023/10/03 16:11] – [User] darrontools:espidf [2024/10/02 00:38] (current) – [Setup] darron
Line 19: Line 19:
 </code> </code>
  
-Debian bullseye has python 3 but on buster python 3 will need to be the default version. +Python3 will need to be the [[:tools:python|default]] version.
- +
-<code> +
-update-alternatives --remove-all python +
-update-alternatives --install /usr/bin/python python /usr/bin/python3 2 +
-update-alternatives --install /usr/bin/python python /usr/bin/python2 1 +
-update-alternatives --config python +
-python -V +
-Python 3.7.3 +
-</code>+
  
 === User === === User ===
Line 42: Line 33:
 <code> <code>
 vi ~esp/.profile vi ~esp/.profile
-</cod>+</code>
  
 <code> <code>
Line 52: Line 43:
 === Install=== === Install===
  
-Clone dev kit into home dir.+Login as user esp
  
 <code> <code>
 /bin/su - esp /bin/su - esp
 +</code>
 +
 +Clone dev kit into home dir.
 +
 +<code>
 git clone --recursive https://github.com/espressif/esp-idf git clone --recursive https://github.com/espressif/esp-idf
 </code> </code>
Line 67: Line 63:
  
 Finalise installation Finalise installation
 +
 <code> <code>
-./export.sh+~/esp-idf/export.sh
 </code> </code>
 +
 +If it complains about openocd...
 +
 +<code>
 +/usr/bin/python3 /home/esp/esp-idf/tools/idf_tools.py export --prefer-system
 +</code>
 +
 +Save the configuration
 +
 +<code>
 +echo ". ~/esp-idf/export.sh" >> ~/.profile
 +</code>
 +
 +Logout from user esp
 +
 +<code>
 +exit
 +</code>
 +
 ===Test=== ===Test===
  
-Build the blinky test.+Login as user esp 
 + 
 +<code> 
 +/bin/su - esp 
 +</code> 
 + 
 +Enter the hello world example dir 
 + 
 +<code> 
 +cd ~/esp-idf/examples/get-started/hello_world  
 +</code> 
 + 
 +Build
  
 <code> <code>
-cd ~/esp-idf/examples/get-started/blink 
 idf.py build idf.py build
 </code> </code>
  
-Expect this to take some time. 
 === Resources === === Resources ===
 +
 +[[https://www.espressif.com/sites/default/files/documentation/esp32_technical_reference_manual_en.pdf|MCU reference manual]]
  
 [[https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html|Get Started with ESP-IDF]] [[https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html|Get Started with ESP-IDF]]
  
 +[[https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#get-started-linux-macos-first-steps|First project with ESP-IDF]]