<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Infineon SLx9670 Trusted Platform Module (TPM): TSS Programming in C, with cross-compile and remote debug in Eclipse</title><link>/technologies/industrial-automation-space/b/blog/posts/infineon-slx9670-trusted-platform-module-tpm-examples-in-c-witch-cross-compile-and-remote-debug</link><description>How to Write and Build TPM enabled applications on your laptop. Then automatically deploy them to your Raspberry Pi and remotely debug.

Goal: Develop on a PC with Eclipse, execute on the Pi
Activities:

install a C toolchain for ARM on your (Wi...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Infineon SLx9670 Trusted Platform Module (TPM): TSS Programming in C, with cross-compile and remote debug in Eclipse</title><link>https://community.element14.com/technologies/industrial-automation-space/b/blog/posts/infineon-slx9670-trusted-platform-module-tpm-examples-in-c-witch-cross-compile-and-remote-debug</link><pubDate>Tue, 15 Mar 2022 18:51:56 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8956fa9c-88aa-4fe3-aa4b-e7216546c628</guid><dc:creator>skruglewicz</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;I just finished&amp;nbsp; going thru this blog.post&lt;/p&gt;
&lt;p&gt;&amp;nbsp;[mention:acaf6a9338de4eef8f6717d5561ed01d:e9ed411860ed4f2ba0265705b8793d05] has done a great job on accomplishing&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;em&gt;How to Write and Build TPM enabled applications on your laptop. Then automatically deploy them to your Raspberry Pi and remotely debug&lt;/em&gt;.&amp;quot;&lt;/p&gt;
&lt;p&gt;I finished every step and when I came to the end of the post, it worked the first time! Thanks for posting this. Great job....&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I only had a minor problem in the section&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;create an Eclipse C project, compile the code and build a Linux / ARM native executable&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;In the following part:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Click next until the wizard asks for the toolchain.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;img alt=" " src="/resized-image/__size/1280x720/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-8956fa9c-88aa-4fe3-aa4b-e7216546c628/2311.pastedimage1639513016599v9.png" /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Prefix:&amp;nbsp;arm-none-linux-gnueabihf-&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Path: the bin folder of the location where you installed the Cross Compile toolchain.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I kept on getting a build error indicating that it could not Run program&amp;nbsp;&lt;em&gt;arm-none-linux-gnueabihf-gcc. It could not find the gcc?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I looked in the \bin directory and I realized that My Prefix on my install was different. There was no &amp;quot;-none-&amp;quot; in the name. I changed it to &amp;quot;arm-linux-gnueabihf-&amp;quot; and was able to move on.&lt;/p&gt;
&lt;p&gt;I highly recommend going thru this exercise if your interested in in cross-compile and remote debugging PI code from the PC.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=22536&amp;AppID=141&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>