forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Milestone
Description
The following code when implemented in esp-idf works fine but doesn't in CPY.
Code Reference: TinyUF2 docs.
(void) esp_reset_reason();
esp_reset_reason_set_hint(0x11F2);I am working on adding reset-to-uf2 bootloader from cpy.
esp_reset_reason_set_hint()setsRTC_RESET_CAUSE_REGwhich is used by TinyUF2 to determine if reset-to-uf2 was requested.- I can confirm that
RTC_RESET_CAUSE_REGis successfully set and is persistent afteresp_restart()is called. - The
sdkconfigfor both cpy and idf are similar.