Closed
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_REG
which is used by TinyUF2 to determine if reset-to-uf2 was requested.- I can confirm that
RTC_RESET_CAUSE_REG
is successfully set and is persistent afteresp_restart()
is called. - The
sdkconfig
for both cpy and idf are similar.