<p>tsaitgaist has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/15168">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">disable ERASE pin<br><br>disabling the ERASE pin prevents accidental erase for the flash<br>memory while the board is powered on (e.g. in case the user<br>overcomes the weak 100 kOhm pull-down for more than 220 ms by<br>touching or shorting the pin).<br>the flash is still erasable using the ERASE pin during power up.<br>it is only disabled after boot completed.<br><br>Change-Id: Ic3332eb1d4247a07988b2fd841f40e79862d06a7<br>---<br>M firmware/libboard/common/source/board_lowlevel.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/68/15168/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/firmware/libboard/common/source/board_lowlevel.c b/firmware/libboard/common/source/board_lowlevel.c</span><br><span>index 8210938..b4d7d32 100644</span><br><span>--- a/firmware/libboard/common/source/board_lowlevel.c</span><br><span>+++ b/firmware/libboard/common/source/board_lowlevel.c</span><br><span>@@ -127,6 +127,9 @@</span><br><span>   SUPC->SUPC_SMMR = SUPC_SMMR_SMTH_3_0V | SUPC_SMMR_SMSMPL_CSM |</span><br><span>                  SUPC_SMMR_SMRSTEN_ENABLE;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+   /* disable ERASE pin to prevent accidental flash erase */</span><br><span style="color: hsl(120, 100%, 40%);">+     MATRIX->CCFG_SYSIO |= CCFG_SYSIO_SYSIO12;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>       /* enable both LED and green LED */</span><br><span>  PIOA->PIO_PER |= PIO_LED_RED | PIO_LED_GREEN;</span><br><span>     PIOA->PIO_OER |= PIO_LED_RED | PIO_LED_GREEN;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/simtrace2/+/15168">change 15168</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/simtrace2/+/15168"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ic3332eb1d4247a07988b2fd841f40e79862d06a7 </div>
<div style="display:none"> Gerrit-Change-Number: 15168 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: tsaitgaist <kredon@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>