<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tushar Gosavi on Medium]]></title>
        <description><![CDATA[Stories by Tushar Gosavi on Medium]]></description>
        <link>https://medium.com/@tushargosavi?source=rss-374861590dda------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mf8Gmon6PScT8YjW.</url>
            <title>Stories by Tushar Gosavi on Medium</title>
            <link>https://medium.com/@tushargosavi?source=rss-374861590dda------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 21:25:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tushargosavi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using docker to build esp32 project]]></title>
            <link>https://medium.com/@tushargosavi/using-docker-to-build-esp32-project-ff49302090e8?source=rss-374861590dda------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff49302090e8</guid>
            <dc:creator><![CDATA[Tushar Gosavi]]></dc:creator>
            <pubDate>Thu, 11 Jul 2024 11:29:00 GMT</pubDate>
            <atom:updated>2024-07-11T11:29:00.229Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqjkK0_Jdzz8ooHkLR1XTw.png" /></figure><p>Clone official esp-idf repository, to copy example project. In this example we will use the starter hello-world example application.</p><pre>git clone https://github.com/espressif/esp-idf.git</pre><p>Example applications are located in example directory, copy them to our projects directory, where we will keep our esp32 projects.</p><pre>mkdir projects<br>cp -r esp-idf/examples/get-started/hello_world projects/</pre><p>Now that we have hello-world sample project in projects directory, we can use office docker image to build the project.</p><pre>cd projects/hello_world<br>docker run --rm \<br>  -v $PWD:/project \<br>  -w /project -u $UID \<br>  -e HOME=/tmp \<br>  -e IDF_TARGET=esp32s3 \<br>  espressif/idf \<br>  idf.py build</pre><p>Explaination of the flags to the docker</p><ul><li>— rm remove the container once done</li><li>-v $PWD:/projectmount project directory as /project inside container</li><li>-w /project Make /project as current working directory</li><li>-e HOME=/tmp Set HOME environment variable to /tmp</li><li>-e IDF_TARGET=esp32s3 This is a important enviroment variable, which tell the build tool the esp32 target.</li></ul><p>Linux users can flash using docker image, without requiring to install the idf tools locally. Use following command to program the device.</p><pre>docker run --rm \<br>  -v $PWD:/project \<br>  -w /project -u $UID \<br>  -e HOME=/tmp \<br>  -e IDF_TARGET=esp32s3 \<br>  --device=/dev/ttyUSB0:/dev/ttyUSB0 \<br>  espressif/idf \<br>  idf.py flash</pre><p>In above command, the only new argument is</p><p>--device=/dev/ttyUSB0:/dev/ttyUSB0 This flag allow accessing USB device from docker image.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff49302090e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>