<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1301112" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/benpicco">@benpicco</a> <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=3057851" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jcarrano">@jcarrano</a> I tried to investigate the problem in debugger.</p>
<p>The program execution seems to hang during startup <a href="https://github.com/RIOT-OS/RIOT/blob/fe6d892969a96dc86b961ee906cce96c0fa51ff1/cpu/esp32/startup.c#L317">https://github.com/RIOT-OS/RIOT/blob/fe6d892969a96dc86b961ee906cce96c0fa51ff1/cpu/esp32/startup.c#L317</a> when <code>spi_read_flash</code> is called and there when <code>irq_disable</code> is called <a href="https://github.com/RIOT-OS/RIOT/blob/fe6d892969a96dc86b961ee906cce96c0fa51ff1/cpu/esp32/periph/flash.c#L173">https://github.com/RIOT-OS/RIOT/blob/fe6d892969a96dc86b961ee906cce96c0fa51ff1/cpu/esp32/periph/flash.c#L173</a> and in <code>irq_disable</code> at the following instruction: <a href="https://github.com/RIOT-OS/RIOT/blob/fe6d892969a96dc86b961ee906cce96c0fa51ff1/cpu/esp32/irq_arch.c#L55">https://github.com/RIOT-OS/RIOT/blob/fe6d892969a96dc86b961ee906cce96c0fa51ff1/cpu/esp32/irq_arch.c#L55</a><br>
I have to say "seems to hang" because this is the place where the debugger stops to work, maybe because of the disabled interrupts. Anyway, function <code>spi_read_flash</code> doesn't return so that the problem has to be there.</p>
<p>And indeed, the problem seems to be solved with the fix of <code>cpu/esp32/periph/flash</code> provided by PR <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="482582697" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/12035" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/12035/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/12035">#12035</a>. So we should try to get the PR <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="482582697" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/12035" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/12035/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/12035">#12035</a> merged in short term.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/12292?email_source=notifications&email_token=ABE7WYDP6U6VKOSRHUUFIUDQMILIHA5CNFSM4IZVSDY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76BTVA#issuecomment-536615380">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHT7CKODEPCKDEQIXLQMILIHANCNFSM4IZVSDYQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYFIMMPD2FYVGYESWBLQMILIHA5CNFSM4IZVSDY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76BTVA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/12292?email_source=notifications\u0026email_token=ABE7WYDP6U6VKOSRHUUFIUDQMILIHA5CNFSM4IZVSDY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76BTVA#issuecomment-536615380",
"url": "https://github.com/RIOT-OS/RIOT/pull/12292?email_source=notifications\u0026email_token=ABE7WYDP6U6VKOSRHUUFIUDQMILIHA5CNFSM4IZVSDY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD76BTVA#issuecomment-536615380",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>