<div dir="ltr">That is great to hear. A while ago, I posted an issue I had with memory allocation back in October and never heard anything back - this is it. Do you know if it is fixed?<div><br></div><div><span style="font-size:12.8px">Greetings</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am trying to call some C++ code from my C module using extern C.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The code compiles fine, however, without even calling the function, If I add a call to a new class, the program crashes and reboots. If I comment out the call as per below, program works fine</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>extern "C" void createNewClass()</div><div>{</div><div>    // uncomment below and will crash program when it runs</div><div>    //newClass *class_ptr = new  newClass();        </div><div>}</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Has anyone tested c++ code with operator new on Beaglebone black?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 7:29 AM, Matias Bueno <span dir="ltr"><<a href="mailto:matias.bueno@tallertechnologies.com" target="_blank">matias.bueno@tallertechnologies.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span><span class=""><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;font-weight:700;vertical-align:baseline;white-space:pre-wrap">What is the status of the Beaglebone black BSP?</span></p><br></span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Hi Angelo!</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">You can find information about Beaglebone dev status at:</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href="https://devel.rtems.org/wiki/TBR/BSP/Beagleboard" style="text-decoration:none" target="_blank"><span style="font-size:13.3333px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">https://devel.rtems.org/wiki/TBR/BSP/Beagleboard</span></a></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">And some gaps and pending development at:</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href="https://devel.rtems.org/wiki/Developer/Projects/Open/ImproveBeagleBSP" style="text-decoration:none" target="_blank"><span style="font-size:13.3333px;font-family:Arial;color:rgb(17,85,204);text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">https://devel.rtems.org/wiki/Developer/Projects/Open/ImproveBeagleBSP</span></a></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">Our experience:</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">We at Taller Technologies set up and used Beaglebone Black for a client’s project with good level of success. </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">The client uses it for various functionalities in the air (serial, USB, CANAS, GPIO, I2C, RTC), in ground station (serial, network) and in lab for testing purposes (serial, network).</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">In our way we found and fix several bugs that we contributed and are integrated in the BSP.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">As a note of its potential: on top of the existing BSP we worked for this client on:</span></p><ul style="margin-top:0pt;margin-bottom:0pt"><li dir="ltr" style="list-style-type:disc;font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;vertical-align:baseline;white-space:pre-wrap">I2C: We used Texas Instruments’ baremetal Starterware* driver, adapting it to RTEMS. In this year’s GSoC there is a project to contribute I2C and PWM drivers, which we’re mentoring.</span></p></li><li dir="ltr" style="list-style-type:disc;font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;vertical-align:baseline;white-space:pre-wrap">RTC: We managed a DS1307 RTC through I2C.</span></p></li><li dir="ltr" style="list-style-type:disc;font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;vertical-align:baseline;white-space:pre-wrap">USB: Adapted from the baremetal of Starterware* to RTEMS.</span></p></li><li dir="ltr" style="list-style-type:disc;font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;vertical-align:baseline;white-space:pre-wrap">Ethernet & LWIP: We ported and adapted the LWIP stack from Starterware* baremetal to be aware of RTEMS threads and message queues. This was contributed as a separate library with the rtems source builder.</span></p></li><li dir="ltr" style="list-style-type:disc;font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;vertical-align:baseline;white-space:pre-wrap">GPIO: ported and adapted Starterware* drivers.</span></p></li><li dir="ltr" style="list-style-type:disc;font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;vertical-align:baseline;white-space:pre-wrap">CAN: ported and adapted Starterware* drivers.</span></p></li><li dir="ltr" style="list-style-type:disc;font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;vertical-align:baseline;white-space:pre-wrap">Interrupt controller: Fixed a bug that affected many other modules.</span></p></li></ul><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">* Adapting, Correcting a Using Starterware drivers: due to licensing issues we cannot contribute that code to the community (Starterware has an incompatible license). In all those cases we can re-work the drivers in order to be able to contribute them. As soon as we find a new client</span><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);font-weight:700;vertical-align:baseline;white-space:pre-wrap"> </span><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">willing to fund such project we can contribute the resulting work.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Let me know if we can help you any further.</span></p><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Regards,</span></span><br><div><span><span style="font-size:13.3333px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Matias</span></span></div></div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Thu, Mar 17, 2016 at 7:56 PM Angelo Fraietta <<a href="mailto:newsgroups@smartcontroller.com.au" target="_blank">newsgroups@smartcontroller.com.au</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Greetings<div><br></div><div>What is the status of the Beaglebone black BSP?</div><div><br></div><div>Thanks</div></div></div></div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div dir="ltr"><div><span>Matias Bueno</span></div><div><span>Program Manager</span></div><div><span>San Lorenzo 47, 3rd Floor, Office 5
Córdoba, Argentina</span></div><div><span>Phone: <a href="tel:%2B54%20351%204217888" value="+543514217888" target="_blank">+54 351 4217888</a> / <a href="tel:%2B54%20351%204218211" value="+543514218211" target="_blank">+54 351 4218211</a></span></div><div><span>Skype: matiasbueno</span></div></div>
</font></span></blockquote></div><br></div>