<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Compile usbdm for an arm-based SBC (beaglebone black or Rpi)? in OSBDM and TBDML</title>
    <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447520#M3204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Curious if anyone has done this before. Wanting to have a small command-line based usbdm programming solution.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Oct 2015 00:34:16 GMT</pubDate>
    <dc:creator>bobdobbs</dc:creator>
    <dc:date>2015-10-09T00:34:16Z</dc:date>
    <item>
      <title>Compile usbdm for an arm-based SBC (beaglebone black or Rpi)?</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447520#M3204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Curious if anyone has done this before. Wanting to have a small command-line based usbdm programming solution.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 00:34:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447520#M3204</guid>
      <dc:creator>bobdobbs</dc:creator>
      <dc:date>2015-10-09T00:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compile usbdm for an arm-based SBC (beaglebone black or Rpi)?</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447521#M3205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I expect this would be quite difficult.&lt;/P&gt;&lt;P&gt;Most of the programs are GUI based and required wxWidgets, xerces, etc.&lt;/P&gt;&lt;P&gt;You would need to check availability on the SBC.&amp;nbsp; A list of packages is in a file on GITHUB:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/podonoghue/usbdm-eclipse-makefiles-build/blob/master/LinuxPackages" title="https://github.com/podonoghue/usbdm-eclipse-makefiles-build/blob/master/LinuxPackages"&gt;usbdm-eclipse-makefiles-build/LinuxPackages at master · podonoghue/usbdm-eclipse-makefiles-build · GitHub&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Oct 2015 09:00:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447521#M3205</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2015-10-17T09:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Compile usbdm for an arm-based SBC (beaglebone black or Rpi)?</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447522#M3206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying this on a beaglebone black with debian 8 and lxqt. &lt;/P&gt;&lt;P&gt;The dependencies are all available, and after a few minor changes to the build I can run MakeAll successfully.&lt;/P&gt;&lt;P&gt;However, I'm having segfault issues when I try to run e.g. UsbdmFlashProgrammer. Seems to be something in wxWidgets. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Reading symbols from /usr/bin/UsbdmFlashProgrammer...(no debugging symbols found)...done.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(gdb) run&lt;/P&gt;&lt;P&gt;Starting program: /usr/bin/UsbdmFlashProgrammer&lt;/P&gt;&lt;P&gt;[Thread debugging using libthread_db enabled]&lt;/P&gt;&lt;P&gt;Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program received signal SIGSEGV, Segmentation fault.&lt;/P&gt;&lt;P&gt;0xb658ba58 in std::basic_string&amp;lt;wchar_t, std::char_traits&amp;lt;wchar_t&amp;gt;, std::allocator&amp;lt;wchar_t&amp;gt; &amp;gt;::basic_string(std::basic_string&amp;lt;wchar_t, std::char_traits&amp;lt;wchar_t&amp;gt;, std::allocator&amp;lt;wchar_t&amp;gt; &amp;gt; const&amp;amp;) ()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6&lt;/P&gt;&lt;P&gt;(gdb) backtrace&lt;/P&gt;&lt;P&gt;#0&amp;nbsp; 0xb658ba58 in std::basic_string&amp;lt;wchar_t, std::char_traits&amp;lt;wchar_t&amp;gt;, std::allocator&amp;lt;wchar_t&amp;gt; &amp;gt;::basic_string(std::basic_string&amp;lt;wchar_t, std::char_traits&amp;lt;wchar_t&amp;gt;, std::allocator&amp;lt;wchar_t&amp;gt; &amp;gt; const&amp;amp;) ()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from /usr/lib/arm-linux-gnueabihf/libstdc++.so.6&lt;/P&gt;&lt;P&gt;#1&amp;nbsp; 0xb665cf84 in wxAppConsoleBase::GetAppName() const ()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from /usr/lib/arm-linux-gnueabihf/libwx_baseu-3.0.so.0&lt;/P&gt;&lt;P&gt;#2&amp;nbsp; 0xb65ca700 in ?? ()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from /usr/lib/i386-linux-gnu/usbdm/libusbdm-wx-plugin.so.4&lt;/P&gt;&lt;P&gt;Backtrace stopped: previous frame identical to this frame (corrupt stack?)&lt;/P&gt;&lt;P&gt;(gdb)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like something in wcAppConsoleBase::GetAppName().&lt;/P&gt;&lt;P&gt;I can run wxWidgets example code fine. Mysterious....&lt;/P&gt;&lt;P&gt;BD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Oct 2015 18:22:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447522#M3206</guid>
      <dc:creator>bobdobbs</dc:creator>
      <dc:date>2015-10-19T18:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Compile usbdm for an arm-based SBC (beaglebone black or Rpi)?</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447523#M3207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it seems that wxTheApp is null, which is why &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;wxAppConsoleBase::GetAppName() is causing a segfault at line 106 of:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;/root/usbdm-eclipse-makefiles-build/Shared_V4/src/WxStub.cpp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Seems that the app is not getting initialized by UsbdmFlashProgrammer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I'm very slowly digging around (I'm a linux amateur) trying to find where wxTheApp would be initialized, but any debug tips would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;One other strange thing - I'd expect there to be errors noted in a log (usbdm.log). But this file isn't even created. I've been running UsbdmFlashProgrammer-debug to try to generate this file, but to no avail.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;BD&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2015 00:51:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447523#M3207</guid>
      <dc:creator>bobdobbs</dc:creator>
      <dc:date>2015-10-24T00:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compile usbdm for an arm-based SBC (beaglebone black or Rpi)?</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447524#M3208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There should be a test TestWx-debug.i386 application to test the use of WxWidgets as a plugin.&amp;nbsp; This plugin is use by TCL so may be indirectly used by the programmer.&lt;/P&gt;&lt;P&gt;Check if this works OK standalone as it can lead to similar problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log file should be created in the .usbdm folder of the user and another file is created in one of the user temp directories but I can't check at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The App should be created in FlashProgrammerApp.cpp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Implements FlashProgrammerApp&amp;amp; GetApp()&lt;/P&gt;&lt;P&gt;DECLARE_APP(FlashProgrammerApp)&lt;/P&gt;&lt;P&gt;IMPLEMENT_APP(FlashProgrammerApp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try setting the app name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2015 12:00:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447524#M3208</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2015-10-24T12:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Compile usbdm for an arm-based SBC (beaglebone black or Rpi)?</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447525#M3209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PGO!&lt;/P&gt;&lt;P&gt;TestWx-debug works fine now that I'm not running as root (I guess running as root causes issues with GUI stuff)&lt;/P&gt;&lt;P&gt;But UsbdmFlashProgrammer-debug does not work, and produces the following error:&lt;/P&gt;&lt;P&gt;(usbdm:21912): Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init()&lt;/P&gt;&lt;P&gt;01:03:51: Debug: Adding duplicate image handler for 'Windows bitmap file'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log from running the TestWx-debug produces the below log entry, no log is produced for UsbdmFlashProgrammer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;debian@beaglebone:~/usbdm-eclipse-makefiles-build$ cat /home/debian/.usbdm/ExampleApp.log&lt;/P&gt;&lt;P&gt;Example Application - 4.12.1.40-Debug, Compiled on Oct 16 2015, 20:17:35.&lt;/P&gt;&lt;P&gt;Log file created on: Tue Oct 27 17:11:52 2015&lt;/P&gt;&lt;P&gt;==============================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.76:&amp;nbsp;&amp;nbsp;&amp;nbsp; int main(): Entry ===============&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.10:&amp;nbsp;&amp;nbsp;&amp;nbsp; int main(): wxTheApp&amp;nbsp; = (nil)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.05:&amp;nbsp;&amp;nbsp;&amp;nbsp; int main(): Loading plug-in&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.07:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static std::tr1::shared_ptr&amp;lt;_Tp&amp;gt; PluginFactory&amp;lt;T&amp;gt;::createPlugin(std::string, std::string) [with T = WxPlugin; std::string = std::basic_string&amp;lt;char&amp;gt;]: Entry ===============&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7.74:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool wx_dll_open(): Entry ===============&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.55:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wxPluginApp::wxPluginApp(): Entry ===============&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.09:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wxPluginApp::wxPluginApp(): MINIMAL_APP()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16.39:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; virtual wxPluginApp::~wxPluginApp(): Entry ===============&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.15:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool wx_dll_open(): Created wxTheApp = (nil)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 18:38:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Compile-usbdm-for-an-arm-based-SBC-beaglebone-black-or-Rpi/m-p/447525#M3209</guid>
      <dc:creator>bobdobbs</dc:creator>
      <dc:date>2015-10-27T18:38:03Z</dc:date>
    </item>
  </channel>
</rss>

