<span id="result_box" class="short_text" lang="en"><span class="hps">hi<br><br>I</span> <span class="hps">not quite</span> <span class="hps">understand</span> <span class="hps">this code</span></span> in irq.c:<br><br>memcpy(&stm32f4_vector_table [0], (void *) 0, sizeof(stm32f4_vector_table));<br>
_ARMV7M_SCB->vtor = &stm32f4_vector_table [0];<br><br><br><span id="result_box" class="" lang="en"><span class="hps">it copies the</span> <span class="hps">interrupt</span> <span class="hps">table</span> <span class="hps">from 0 to</span> <span class="hps">our structure and</span> <span class="hps">then</span> <span class="hps alt-edited">sets a new</span> <span class="hps">interrupt</span> <span class="hps">table</span> <span class="hps">address</span><span class="">. </span></span><span id="result_box" class="" lang="en"><span class="hps">this is the right</span> <span class="hps">place to</span> <span class="hps">do</span> <span class="hps">it</span><span class="">?</span> <span class="hps">do we really need</span> <span class="hps">to do it</span> <span class="hps">at all?</span></span> <span id="result_box" class="" lang="en"><span class="hps">without it</span> <span class="hps">the system hangs</span> <span class="hps">on</span> <span class="hps">the first call to</span> <span class="hps">sleep.</span> <span class="hps">I</span> <span class="hps">think</span> <span class="hps">because</span> <span class="hps">the timer interrupt</span> <span class="hps">stops working. </span></span><br>
<br>With Best Regard.<br><br><span style="background-color:rgb(255,255,255);color:rgb(0,0,0)" class="HOEnZb adL">Dmitry Shapovalov</span><span style="background-color:rgb(255,255,255);color:rgb(0,0,0)"></span><br><br>