esp-mdf icon indicating copy to clipboard operation
esp-mdf copied to clipboard

Getting error while flashing get-started project

Open kumar-ashish1 opened this issue 3 years ago • 1 comments

I am getting error while trying to flash get-started project.

Executing action: erase_flash Traceback (most recent call last): File "/Users/ashish/esp/esp-idf/tools/idf.py", line 812, in main() File "/Users/ashish/esp/esp-idf/tools/idf.py", line 730, in main cli(sys.argv[1:], prog_name=PROG, complete_var='_IDF.PY_COMPLETE') File "/Users/ashish/.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/click/core.py", line 1128, in call return self.main(*args, **kwargs) File "/Users/ashish/.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/click/core.py", line 1053, in main rv = self.invoke(ctx) File "/Users/ashish/.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/click/core.py", line 1691, in invoke return _process_result(rv) File "/Users/ashish/.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/click/core.py", line 1628, in _process_result value = ctx.invoke(self._result_callback, value, **ctx.params) File "/Users/ashish/.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/click/core.py", line 754, in invoke return __callback(*args, **kwargs) File "/Users/ashish/esp/esp-idf/tools/idf.py", line 645, in execute_tasks task(ctx, global_args, task.action_args) File "/Users/ashish/esp/esp-idf/tools/idf.py", line 226, in call self.callback(self.name, context, global_args, **action_args) File "/Users/ashish/esp/esp-idf/tools/idf_py_actions/serial_ext.py", line 129, in erase_flash esptool_args = _get_esptool_args(args) File "/Users/ashish/esp/esp-idf/tools/idf_py_actions/serial_ext.py", line 52, in _get_esptool_args result += ['--chip', extra_esptool_args['chip']] KeyError: 'chip'

kumar-ashish1 avatar Feb 15 '22 06:02 kumar-ashish1

@kumar-ashish1 This problem should be caused by your idf environment not being installed in advance. Process under idf: export IDF_PATH=~/path/to/esp-idf ../install.sh ../export.sh

Please let the idf environment set up first, and then go to the routines under the mdf library.

Jiangyafeng avatar Feb 15 '22 14:02 Jiangyafeng