Closed richukuttan closed 5 years ago
Hi @richukuttan,
I get this error if I run the gen_esp32part.py tool in Python 3. At the moment, esp-idf's Python-based tools only support Python 2 (Python 2+3 support is coming but it's not available now.)
I am not certain this is the problem you have, because I thought the default "python" on Ubuntu 16.04 should be Python 2.7. However, if you got to "make menuconfig" -> "SDK Configuration" you can try changing the Python 2 interpeter value to "python2" and see if this solves the problem.
Angus
Thank you for the prompt reply. This worked when I moved to Python2. However, that gives me yet another error. First, it asked me to generate a signing key, then, after I followed the recommended way to create it, it gives me this error:
usage: espsecure [-h]
{digest_secure_bootloader,generate_signing_key,sign_data,verify_signature,extract_public_key,digest_private_key,generate_flash_encryption_key,decrypt_flash_data,encrypt_flash_data}
...
espsecure: error: unrecognized arguments: /home/hrishi/esp/myapp/build/partitions_singleapp-unsigned.bin
/home/hrishi/esp/esp-idf/components/partition_table/Makefile.projbuild:28: recipe for target '/home/hrishi/esp/myapp/build/partitions_singleapp.bin' failed
make: *** [/home/hrishi/esp/myapp/build/partitions_singleapp.bin] Error 2
Hi @richukuttan ,
Do you have "secure boot" enabled in menuconfig? You shouldn't need a signing key if secure boot is disabled. If you're just starting out you probably don't want secure boot, as this will limit your re-flashing options for the chip.
This said, even with secure boot on you shouldn't be getting the error reported here. I'll look into this.
Thanks,
Angus
Thank you. Removing the secure boot removed all problems and helped my program load.
Thanks.
Richukuttan
When I run
make all
in the folder I have downloaded this template to, it gives me the following error:I'm running a Ubuntu 16.04 machine and have reached this stage after following the instructions on this page.
I have been unable to resolve this problem and look forward to a response. Thank you.