<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">solved. To fully initialize a debug session you must use the gdb command "monitor reset halt". At one point the Eclipse IDE must have been generating this (and other commands) automically and I must have deleted it or
 configure my project somehow to mess it up...</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>(gdb) monitor reset halt<br>
target state: halted<br>
target halted due to debug-request, current mode: Thread <br>
xPSR: 0x01000000 pc: 0x080010ac msp: 0x2002fffc<br>
target state: halted<br>
target halted due to debug-request, current mode: Thread <br>
xPSR: 0x01000000 pc: 0x080010ac msp: 0x2002fffc<br>
(gdb) break main<br>
Breakpoint 1 at 0x802059c: file hsm.c, line 455.<br>
(gdb) continue<br>
Continuing.<br>
Note: automatically using hardware breakpoints for read-only addresses.<br>
<br>
Breakpoint 1, main () at hsm.c:455<br>
455    {<br>
(gdb) s<br>
Info : halted: PC: 0x0802059e<br>
Info : halted: PC: 0x080205a0<br>
456        stm_init();<br>
(gdb) s<br>
Info : halted: PC: 0x08020760<br>
stm_init () at /home/michael/alpha/alpha/build/sw/stm32/stm-init.c:71<br>
71      HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_0);<br>
(gdb) n<br>
Info : halted: PC: 0x08020764<br>
Info : halted: PC: 0x080231b8<br>
75      MX_GPIO_Init();<br>
(gdb) n<br>
Info : halted: PC: 0x08020718<br>
78      uart_init();<br>
(gdb) n<br>
Info : halted: PC: 0x08020a6c<br>
81      rtc_init();<br>
(gdb) n<br>
Info : halted: PC: 0x08021038<br>
84      fpgacfg_init();<br>
(gdb) n<br>
Info : halted: PC: 0x0802147c<br>
85      keystore_init();<br>
(gdb) n<br>
Info : halted: PC: 0x08021644<br>
97      fmc_init();<br>
(gdb) n<br>
Info : halted: PC: 0x0802079c<br>
100      sdram_init();<br>
(gdb) n<br>
Info : halted: PC: 0x0802193c<br>
Info : halted: PC: 0x080205a4<br>
main () at hsm.c:457<br>
457        led_on(LED_GREEN);<br>
(gdb) <br>
<br>
</div>
<br>
<p></p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Michael Dockter<br>
<b>Sent:</b> Friday, March 8, 2019 11:01:09 AM<br>
<b>To:</b> tech@cryptech.is<br>
<b>Subject:</b> Re: [Cryptech Tech] uwTick and debugging</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">Update. With yet another alpha/releng install and build from the toplevel Makefile produces a hsm.elf that runs as expected when flashed and run from reset, but hangs at the same point during debug. For now I'm going
 to take this clean copy and merge in my code using the burn and learn method of debug.<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Tech <tech-bounces@cryptech.is> on behalf of Rob Austein <sra@hactrn.net><br>
<b>Sent:</b> Thursday, March 7, 2019 10:08:34 AM<br>
<b>To:</b> tech@cryptech.is<br>
<b>Subject:</b> Re: [Cryptech Tech] uwTick and debugging</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">On Thu, 07 Mar 2019 09:33:48 -0500, Joachim Strömbergson wrote:<br>
> On 2019-03-04 23:08, Michael Dockter wrote:<br>
> > I was testing some new code in a ST-Cube generated project and now after<br>
> > previously being able to debug the hsm and uart-test .elf files I am not<br>
> > incrementing uwTick and the programs hang on the delay functions. I<br>
> > rolled back recent changes and even pulled a clean copy and I'm stuck at<br>
> > the same point. Can anyone offer a suggestion?<br>
> <br>
> Rob, Paul?<br>
<br>
Wrong layer for me, you want Paul or Fredrik. :)<br>
_______________________________________________<br>
Tech mailing list<br>
Tech@cryptech.is<br>
<a href="https://lists.cryptech.is/listinfo/tech">https://lists.cryptech.is/listinfo/tech</a><br>
</div>
</span></font></div>
</div>
</body>
</html>