Sysprogs forums › Forums › VisualGDB › Espressif – Getting Components from the ESP Registry
- This topic has 5 replies, 2 voices, and was last updated 1 week, 4 days ago by
arrow201.
-
AuthorPosts
-
January 26, 2025 at 11:58 #36330
arrow201
Participant<div>Windows 10</div>
<div>VisualGDB 6.0R6 (build 5262)</div>
<div>Visual Studio 2022 v17.12.4</div>
<div>Espressif v5.3</div>
<div>Board: ESP32S3</div>
<div></div>
<div>I’m an Espressif noob and wondering if someone can layout the exact steps for obtaining components. I’ve read through many posts on the subject, but can’t find the exactly what to run and what to configure …and afraid of messing up my environment if i do it wrong(?)</div>
<div>I want to get the espressif/led_strip package at:</div>
<div>https://components.espressif.com/components/espressif/led_strip/versions/3.0.0</div>
<div></div>
<div>From what I can gather, my guess is:</div>
<div>1) Open up a command line and run:</div>
<div>C:\SysGCC\esp32\tools\idf-exe\1.0.3\idf.py add-dependency “espressif/led_strip^3.0.0″</div>
<div>First question is where i would run this from? The root of the folder where the project was created?</div>
<div>2) Create a idf_component.yml file? With contents</div>
<div>espressif/led_strip: “^3.0.0″</div>
<div>…or is this created from the run?</div>
<div></div>
<div>I saw this in a previous post:</div>
<div>>To enable the component manager in the project configuration phase, you must add the following variable in the >CMakeLists.txt of the project root:</div>
<div>></div>
<div>>set(ENV{IDF_COMPONENT_MANAGER} “1”)</div>
<div>></div>
<div>>In this way, in the configuration phase, when the idf_component.yml file is found in the main component, the dependency >is executed and the referenced component is downloaded:</div>
<div>Is this still needed?</div>
<div></div>
<div>3) After the steps, i think read somewhere then you have to next do a build to see the “managed_components” folder?</div>
<div></div>
<div>Any help appreciated …Thanks</div>-
This topic was modified 2 weeks, 2 days ago by
arrow201.
January 26, 2025 at 12:03 #36334arrow201
Participant<div></div>
<div>Windows 10</div>
<div>VisualGDB 6.0R6 (build 5262)</div>
<div>Visual Studio 2022 v17.12.4</div>
<div>Espressif v5.3</div>
<div>Board: ESP32S3</div>
<div></div>
<div>I’m an Espressif noob and wondering if someone can layout the exact steps for obtaining components. I’ve read through many posts on the subject, but can’t find the exactly what to run and what to configure …and afraid of messing up my environment if i do it wrong(?)</div>
<div>I want to get the espressif/led_strip package at:</div>
<div>https://components.espressif.com/components/espressif/led_strip/versions/3.0.0</div>
<div></div>
<div>From what I can gather, my guess is:</div>
<div>1) Open up a command line and run:</div>
<div>C:\SysGCC\esp32\tools\idf-exe\1.0.3\idf.py add-dependency “espressif/led_strip^3.0.0″</div>
<div>First question is where i would run this from? The root of the folder where the project was created?</div>
<div>2) Create a idf_component.yml file? With contents</div>
<div>espressif/led_strip: “^3.0.0″</div>
<div>…or is this created from the run?</div>
<div></div>
<div>I saw this in a previous post:</div>
<div>>To enable the component manager in the project configuration phase, you must add the following variable in the >CMakeLists.txt of the project root:</div>
<div>></div>
<div>>set(ENV{IDF_COMPONENT_MANAGER} “1”)</div>
<div>></div>
<div>>In this way, in the configuration phase, when the idf_component.yml file is found in the main component, the dependency >is executed and the referenced component is downloaded:</div>
<div>Is this still needed?</div>
<div></div>
<div>3) After the steps, i think read somewhere then you have to next do a build to see the “managed_components” folder?</div>
<div></div>
<div>Any help appreciated …Thanks</div>January 26, 2025 at 12:10 #36335arrow201
ParticipantWhat mistake did do to get all these “<div>” ? 🙁
January 27, 2025 at 12:42 #36336Aloysius_Pendergast
ParticipantJanuary 27, 2025 at 14:28 #36337arrow201
ParticipantThank you. This is good info for creating you’re own and referencing it, but doesn’t have all the steps in detail if you want to get an existing component from the ESP Component Registry
https://components.espressif.com/For the “espressif/led_strip”, you’d have to do: C:\SysGCC\esp32\tools\idf-exe\1.0.3\idf.py add-dependency “espressif/led_strip^3.0.0″ …but I’m pretty sure there’s other steps needed for everything to be loaded into your project before doing a build.
January 31, 2025 at 14:35 #36358arrow201
ParticipantOk, got it to work. In summary I wanted to get the led strip driver from the ESP Registry:
https://components.espressif.com/components/espressif/led_strip/versions/3.0.0
The site references to either download or to add this: idf.py add-dependency “espressif/led_strip^3.0.0”
All you need to do is:
1) In your Project\main folder create a file with the name: idf_component.yml
2) For this led strip example, insert the part from the line above into the yml file:
dependencies:
espressif/led_strip: “^3.0.0”
3) Close and reopen solution
That’s it, under “Components” in your project, you’ll see the added files.Another thing I learned, changing Partitions:
1) Edit your source csv file to include all your partition information
2) Put the CSV file in the project root
3) Open up VisualGDB Project Properties, Under ESP-IDF configuration, filter “partition”
Partition Table | “Partition Table” select custom | “Custom partition CSV file” input the CSV file name
The partition-table.bin will be overwritten with the one defined in your .CSV file.-
This reply was modified 1 week, 4 days ago by
arrow201.
-
This topic was modified 2 weeks, 2 days ago by
-
AuthorPosts
- You must be logged in to reply to this topic.