Search found 40 matches

by bonmotwang
Wed Mar 25, 2020 4:16 pm
Forum: General Discussion
Topic: Where to store software license key
Replies: 1
Views: 725

Where to store software license key

Hello. I am developing a product use ESP32 module. The firmware image will be released / sold with a license key based on MAC address on each module. My question is: - Is it a good idea to use nvs_storage.c lib to save the key? - Is it internal flash or SPI to the external. If it is external, it doe...
by bonmotwang
Mon Mar 09, 2020 9:23 am
Forum: ESP32 IDF
Topic: Protection on the flash read
Replies: 12
Views: 7307

Re: Protection on the flash read

Thanks Angus. Now I understand!
A couple more questions:
1) After I set the module to release mode can I change it back to development mode or plain text mode?
2) I am trying to avoid OTA in production. Is it possible? Thanks again
by bonmotwang
Fri Mar 06, 2020 4:49 pm
Forum: ESP32 IDF
Topic: Protection on the flash read
Replies: 12
Views: 7307

Re: Protection on the flash read

After reading more about the encryption. Development Mode should work for me. (Forgot to mention that I am using ESP32-WROVER module) This is why I think it works for me: AES key is stored in the CPU, it is different on every ESP32-WROVER. My application is stored in the external SPI flash, encrypte...
by bonmotwang
Fri Mar 06, 2020 4:39 pm
Forum: ESP32 IDF
Topic: Protection on the flash read
Replies: 12
Views: 7307

Re: Protection on the flash read

Thank you for the deep explanation. The software development is finished, We are about into production now. Just want a way to protect the product from copied. I thought it is just like "turn on the read back protect" as I have done on other MPU's. Understand this is the Flash outside of the CPU. Se...
by bonmotwang
Fri Mar 06, 2020 4:03 am
Forum: ESP32 IDF
Topic: Protection on the flash read
Replies: 12
Views: 7307

Re: Protection on the flash read

In that article.
What does this mean?
"Enabling flash encryption limits the options for further updates of the ESP32".
So I cannot update firmware anymore after the encryption??
by bonmotwang
Fri Mar 06, 2020 3:21 am
Forum: ESP32 IDF
Topic: Protection on the flash read
Replies: 12
Views: 7307

Re: Protection on the flash read

Thanks. I was reading that article, but it seems like I have to use OTA to download the firmware. So far my product isn't using WiFi or BLE. In production they only plan to use UART0 to download the software. I will read the article again. Another question, how to verify that my firmware is protecte...
by bonmotwang
Mon Mar 02, 2020 1:32 am
Forum: ESP32 IDF
Topic: Protection on the flash read
Replies: 12
Views: 7307

Re: Protection on the flash read

Does that mean the read back protection is enable automatically?
I am using the ESP_PROG to program and test my software using UART0.

What is the should I put after "idf.py"?
And is it possible to "brick" the ESP32?

All I want is simply stop people from copying my software.

Thanks
by bonmotwang
Mon Jul 29, 2019 10:38 pm
Forum: General Discussion
Topic: ESP_PROG auto program doesn't work
Replies: 3
Views: 1151

Re: ESP_PROG auto program doesn't work

Sometimes it will flash the module automatically without me pressing the boot button, which is what I expected.
So is there some minor timing off in idf.py program?

Is there anyone using ESP-PROG board to program their ESP32 module?

Thanks

Paul
by bonmotwang
Thu Jul 25, 2019 9:05 pm
Forum: General Discussion
Topic: ESP_PROG auto program doesn't work
Replies: 3
Views: 1151

Re: ESP_PROG auto program doesn't work

The problem seems to be the GPIO0 signal. During the "Connecting ....._______" time, if I hold down the boot button, it will start programming. But the target does go into the bootloader mode because my application isn't running anymore during the "connecting ....." I really want to make the auto pr...
by bonmotwang
Thu Jul 25, 2019 8:42 pm
Forum: General Discussion
Topic: ESP_PROG auto program doesn't work
Replies: 3
Views: 1151

ESP_PROG auto program doesn't work

I am using ESP_PROG to program the ESP32 module by manually pressing RST and BOOT buttons.
It works no problem.
But the auto program feature doesn't work.
I checked with scope. the signal timing seems to be correct.
Not sure where I did wrong.
The computer is running windows 7.

Go to advanced search