Comments (4)
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
from esp-idf-template.
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
from esp-idf-template.
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
from esp-idf-template.
Thank you. Removing the secure boot removed all problems and helped my program load.
Thanks.
Richukuttan
from esp-idf-template.
Related Issues (13)
- esp_event_loop.h not present in esp-idf, causes compliation to fail HOT 2
- Add nvs_flash_init Retry
- Symbol & variable can not be resolved in ESP-IDF template HOT 4
- How to build and flash to ESP32? HOT 1
- Enhancement: Change to template repository HOT 1
- Template for a more complex project
- Can I update the template?
- Restrictive license on this template HOT 4
- Cannot use Menuconfig due to old libncurs dependency HOT 2
- Remove sdkconfig file HOT 1
- wifi: mode : sta (30:ae:a4:1a:5b:e0) but transmitting HOT 2
- delete this comment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-idf-template.