esp32-freertos-sdk对象包SeetheGettingStartedguidelinksaboveforadetailedsetupguide.ThisisaquickreferenceforcommoncommandswhenworkingwithESP-IDFprojects:SetupBuildEnvironment(SeeGettingStartedguideforafulllistofrequiredstepswithdetails.)InstallhostbuilddependenciesmentionedinGettingStartedguide.Addtools/directorytothePATHRunpython-mpipinstall-rrequirements.txttoinstallPythondependenciesConfiguringtheProjectidf.pymenuconfigOpensatext-basedconfigurationmenufortheproject.Useup&downarrowkeystonavigatethemenu.UseEnterkeytogointoasubmenu,Escapekeytogooutortoexit.Type?toseeahelpscreen.Enterkeyexitsthehelpscreen.UseSpacekey,orYandNkeystoenable(Yes)anddisable(No)configurationitemswithcheckboxes"[*]"Pressing?whilehighlightingaconfigurationitemdisplayshelpaboutthatitem.Type/tosearchtheconfigurationitems.Oncedoneconfiguring,pressEscapemultipletimestoexitandsay"Yes"tosavethenewconfigurationwhenprompted.CompilingtheProjectidf.pybuild...willcompileapp,bootloaderandgenerateapartitiontablebasedontheconfig.FlashingtheProjectWhenthebuildfinishes,itwillprintacommandlinetouseesptool.pytoflashthechip.Howeveryoucanalsodothisautomaticallybyrunning:idf.py-pPORTflashReplacePORTwiththenameofyourserialport(likeCOM3onWindows,/dev/ttyUSB0onLinux,or/dev/cu.usbserial-XonMacOS.Ifthe-poptionisleftout,idf.pyflashwilltrytoflashthefirstavailableserialport.Thiswillflashtheentireproject(app,bootloaderandpartitiontable)toanewchip.Thesettingsforserialportflashingcanbeconfiguredwithidf.pymenuconfig.Youdon'tneedtorunidf.pybuildbeforerunningidf.pyflash,idf.pyflashwillautomaticallyrebuildanythingwhichneedsit.ViewingSerialOutputTheidf.pymonitortargetusestheidf_monitortooltodisplayse
1