<div dir="ltr"><div>Hi, I'm working with RTEMS for LPC1768. I need know how much memory is free for my application. I saw an article where say that I can look at _Workspace_Area. If first == last, then there is only one free block of memory in the workspace (very likely if no task deletions). For example, If I do this:</div>
<div><br></div><div>(gdb) p *(Heap Block *) _Workspace_Area->first </div><div>$3 = {back flag = 1, front flag = 68552, next = 0x1e260, previous = 0x1e25c}</div><div><br></div><div>I have 68552 bytes left in the workspace.</div>
<div><br></div><div>Below, I will post my gdb command output. Note: I'm running hello.exe example:</div><div><br></div><div>(gdb) p *(Heap_Block *) _Workspace_Area->first_block </div><div>$35 = {prev_size = 268439784, size_and_flag = 229, next = 0x101dd <_ARMV7M_Exception_default>, prev = 0x101dd <_ARMV7M_Exception_default>}</div>
<div><br></div><div>The question is, How much is my free memory? I haven't "first" field on _Workspace_Area.</div><div><br></div><div><br></div><div><br></div>-- <br><div dir="ltr"><div><span style="font-family:Verdana;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline"><a href="http://www.tallertechnologies.com" target="_blank"><img src="http://www.tallertechnologies.com/templates/tallertechnologies/images/signature.png" width="200" height="78"></a></span></div>
<div><div style="font-family:arial;font-size:small"><span style="background-color:transparent;color:rgb(0,0,0);font-family:Verdana;font-size:16px;white-space:pre-wrap;line-height:1.3">Federico Lenarduzzi</span></div><div style="font-family:arial;font-size:small">
<span style="background-color:transparent;color:rgb(0,0,0);font-family:Verdana;white-space:pre-wrap;line-height:1.3">Software Engineer</span></div><div style="font-family:arial;font-size:small"><span style="background-color:transparent;color:rgb(0,0,0);font-family:Verdana;white-space:pre-wrap;line-height:1.3"><br>
</span></div><div style="font-family:arial;font-size:small"><span style="background-color:transparent;color:rgb(0,0,0);font-family:Verdana;white-space:pre-wrap;line-height:1.3"><font size="1">Taller Technologies Argentina</font></span></div>
<div style="font-family:arial;font-size:small"><span style="background-color:transparent;font-family:Verdana;white-space:pre-wrap;line-height:1.3"><font size="1">San Lorenzo 47, 3rd Floor, Office 5</font></span></div><div style="font-family:arial;font-size:small">
<span style="background-color:transparent;font-family:Verdana;white-space:pre-wrap;line-height:1.3"><font size="1">Cordoba, Argentina</font></span></div><div style="font-family:arial;font-size:small"><font size="1"><span style="line-height:1.3;background-color:transparent;font-family:Verdana;vertical-align:baseline;white-space:pre-wrap">Phone: </span><span style="line-height:1.3;background-color:transparent;font-family:Verdana;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">+54 351 4220701</span></font></div>
<div style="font-family:arial;font-size:small"><span style="background-color:transparent;color:rgb(0,0,0);font-family:Verdana;white-space:pre-wrap;line-height:1.3"><font size="1">Mobile: +54 358 4289083</font></span></div>
<div style="font-family:arial;font-size:small"><span style="background-color:transparent;color:rgb(0,0,0);font-family:Verdana;white-space:pre-wrap;line-height:16px"><font size="1">Skype: federico.lenarduzzi1</font></span></div>
</div><div><div><span style="font-size:11px;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline"><font face="verdana, sans-serif"><br></font></span></div>
<span style="font-size:11px;font-family:Verdana;color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><a href="http://www.linkedin.com/company/taller-technologies" target="_blank"><img src="https://lh5.googleusercontent.com/GogkVkFFiFFVdcl2l1v6BMQFDb89PGciIJyuxaTJBcFeo9qra_nmie_XFCwlMYM9Jf3wwBAmLInnpkiMx3OtzMM8sNFAqmVxumD1KDgBPvq3STBkmqpalbK6" height="20px;" width="20px;"></a> <a href="https://www.facebook.com/tallertechnologies" target="_blank"><img src="https://lh4.googleusercontent.com/3vxIUmNOoSHhAUxfM7brxgQlTiIRUpe71fUY2KqUC8AOW3N5jb-3giHUjh141G5tC2BSisVhrCnuy6-oVEL_d7g5_Rgin-TdJbsHqm6uDWU9V-x1h8QN_wAL" height="19px;" width="19px;"></a><br>
<br><br></div></div>
</div>