Search found 216 matches

by urbanze
Fri Dec 14, 2018 1:36 pm
Forum: General Discussion
Topic: ULP Clock issues/details/explanations
Replies: 7
Views: 1102

Re: ULP Clock issues/details/explanations

Hi guys. How can I "shutdown" ULP by main core (C code)? In ULP ASM, just need to be halted, but how can I force ulp to be shutdown? I can't find this register. PS: I already use one variable set by main core to control some states of ulp when he reads this variable, but I need a real shutdown by ma...
by urbanze
Wed Nov 28, 2018 1:21 pm
Forum: General Discussion
Topic: Generic questions about secure boot & flash enc
Replies: 9
Views: 697

Re: Generic questions about secure boot & flash enc

1. Flash enc. prevent someone to read my code, okay. But how can I prevent my code to run in non-auth esp's? Secure boot ensure that only my code run in my hardware, but I would like to prevent my code run in another esp. Ideias? 2. If I can't update bootloader and partitions, what happen if I updat...
by urbanze
Tue Nov 27, 2018 9:08 pm
Forum: General Discussion
Topic: Factory reset
Replies: 6
Views: 542

Re: Factory reset

Also possible the touch fsm is not getting disabled/reset during those reset events. You could modify the bootloader to make sure touch is deinit and rtc gpio is deinit. If I need to change the bootloader for this to work, it will be easier to disable it and make my own "IF" at the beginning of the...
by urbanze
Tue Nov 27, 2018 6:12 pm
Forum: General Discussion
Topic: Factory reset
Replies: 6
Views: 542

Re: Factory reset

I finally finished developing OTA via GSM, however, this problem persists and is half out of our reach, since the bootloader should activate the internal pull-up at boot every time, but when SW_RST occurs this does not seem to happen, causing factory reset.

Help guys?
by urbanze
Sun Nov 25, 2018 12:15 pm
Forum: General Discussion
Topic: Factory reset
Replies: 6
Views: 542

Re: Factory reset

One thing I can think of is that the pin has enough (parasitic) capacitance to still be low, even after the pull-up is enabled. You could try adding a delay of a bunch of milliseconds between the pull-up enable and the pin read to compensate for this. How can I add delay if "bootloader" read the pi...
by urbanze
Thu Nov 22, 2018 12:51 pm
Forum: General Discussion
Topic: Factory reset
Replies: 6
Views: 542

Factory reset

I am using the factory reset option of bootloader (menuconfig), it works fine but there is a problem. I am using GPIO4 for both factory reset and user touch (after code start) and when some software reset, panic reset, etc happens (! = POWER_ON), it seems that the bootloader does not activate the pu...
by urbanze
Tue Oct 30, 2018 7:42 pm
Forum: General Discussion
Topic: Generic questions about secure boot & flash enc
Replies: 9
Views: 697

Re: Generic questions about secure boot & flash enc

Secure boot say: "Secure Boot is a feature for ensuring only your code can run on the chip. Data loaded from flash is verified on each reset." Flash enc say: "When flash encryption is enabled, physical readout of the SPI flash is not sufficient to recover most flash contents." With the secure boot, ...
by urbanze
Mon Oct 29, 2018 4:06 pm
Forum: General Discussion
Topic: OTA & Partition table issue
Replies: 1
Views: 181

Re: OTA & Partition table issue

Oh, I forget about this little detail: There is also a new “ota data” slot, which holds the data for OTA updates. The bootloader consults this data in order to know which app to execute. If “ota data” is empty, it will execute the factory app. New partition table with "ota data" partition works. # N...
by urbanze
Mon Oct 29, 2018 2:50 pm
Forum: General Discussion
Topic: OTA & Partition table issue
Replies: 1
Views: 181

OTA & Partition table issue

esp_ota_set_boot_partition() are returning 261 error (ESP_ERR_NOT_FOUND) only when I set my partition table. When use pre-defined "two ota partition", works normally. I put some prints in library and apparently, the error comes from here: else { // try to find this partition in flash,if not find it ...
by urbanze
Fri Oct 26, 2018 3:13 pm
Forum: General Discussion
Topic: Generic questions about secure boot & flash enc
Replies: 9
Views: 697

Re: Generic questions about secure boot & flash enc

To expand on WiFive's answers (which are correct), I'll answer in reverse order: 2.There's no support for OTA updating the bootloader or the partition table. Technically, you can have your app erase these flash regions and overwrite them, but if there's a power failure or anything goes wrong then y...

Go to advanced search