<?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>S32 Design StudioのトピックProblem with printf() usage in can_pal example for a S32k144</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Problem-with-printf-usage-in-can-pal-example-for-a-S32k144/m-p/1045218#M6157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, everybody,&lt;BR /&gt;I am using the S32k144 board to read simulated CAN traffic via an Arduino + MCP2515 module.&lt;BR /&gt;I was able to get NXP to read any ID sent by Arduino. Just for testing, I used the example can_pal and I verified that with any pair of IDs I send from Arduino, on NXP the red and yellow LEDs alternate (or green, I don't understand it too well...).&lt;BR /&gt;So I would say that on the reading part of the CAN I more or less understood it.&lt;BR /&gt;For safety, I also use a Peak device that monitors the bus so I'm sure that Arduino sends the messages (as a second control compared to the LEDs turning on...).&lt;BR /&gt;The problem is that I would like to print on the screen the "id" and "cs" field (which should be the Timestamp!) but I can't see them on the console even when I press run during debugging.&lt;BR /&gt;I've also tried to make different settings of the libraries from "Project Settings"--&amp;gt;C/C+++ Buildings--&amp;gt;Target Processor--&amp;gt;Libraries Support (honestly I've tried all of them besides "ewl c Debugger" which is the recommended one...).&lt;BR /&gt;I also noticed I can run in debag only if I use "flash_pemicro" and it doesn't work if I use "ram_pemicro".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to anyone who can find the time to answer.&lt;/P&gt;&lt;P&gt;Greetings, everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Below I reported the part where I made some changes compared to the example (basically I just inserted the two functions before the while(1) and modified the id because they are the ones I send).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108151iB08C82F256834FC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2020 21:22:23 GMT</pubDate>
    <dc:creator>pierpaolo_dini</dc:creator>
    <dc:date>2020-04-16T21:22:23Z</dc:date>
    <item>
      <title>Problem with printf() usage in can_pal example for a S32k144</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Problem-with-printf-usage-in-can-pal-example-for-a-S32k144/m-p/1045218#M6157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, everybody,&lt;BR /&gt;I am using the S32k144 board to read simulated CAN traffic via an Arduino + MCP2515 module.&lt;BR /&gt;I was able to get NXP to read any ID sent by Arduino. Just for testing, I used the example can_pal and I verified that with any pair of IDs I send from Arduino, on NXP the red and yellow LEDs alternate (or green, I don't understand it too well...).&lt;BR /&gt;So I would say that on the reading part of the CAN I more or less understood it.&lt;BR /&gt;For safety, I also use a Peak device that monitors the bus so I'm sure that Arduino sends the messages (as a second control compared to the LEDs turning on...).&lt;BR /&gt;The problem is that I would like to print on the screen the "id" and "cs" field (which should be the Timestamp!) but I can't see them on the console even when I press run during debugging.&lt;BR /&gt;I've also tried to make different settings of the libraries from "Project Settings"--&amp;gt;C/C+++ Buildings--&amp;gt;Target Processor--&amp;gt;Libraries Support (honestly I've tried all of them besides "ewl c Debugger" which is the recommended one...).&lt;BR /&gt;I also noticed I can run in debag only if I use "flash_pemicro" and it doesn't work if I use "ram_pemicro".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you to anyone who can find the time to answer.&lt;/P&gt;&lt;P&gt;Greetings, everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Below I reported the part where I made some changes compared to the example (basically I just inserted the two functions before the while(1) and modified the id because they are the ones I send).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108151iB08C82F256834FC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2020 21:22:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Problem-with-printf-usage-in-can-pal-example-for-a-S32k144/m-p/1045218#M6157</guid>
      <dc:creator>pierpaolo_dini</dc:creator>
      <dc:date>2020-04-16T21:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with printf() usage in can_pal example for a S32k144</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Problem-with-printf-usage-in-can-pal-example-for-a-S32k144/m-p/1045219#M6158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you enable semihosting in your debug configuration for the PE micro?&lt;/P&gt;&lt;P&gt;Just go to your debug configurations and in the "Startup" tab there is a checkbox which says "Enable Semihosting".&lt;/P&gt;&lt;P&gt;Also, make sure to use ewl_C debugger console in "Properties -&amp;gt; C/C++ Build -&amp;gt; Settings -&amp;gt; Target Processor -&amp;gt; Libraries support".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 14:16:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Problem-with-printf-usage-in-can-pal-example-for-a-S32k144/m-p/1045219#M6158</guid>
      <dc:creator>kaden</dc:creator>
      <dc:date>2020-04-17T14:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with printf() usage in can_pal example for a S32k144</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Problem-with-printf-usage-in-can-pal-example-for-a-S32k144/m-p/1045220#M6159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for your help. I can print now.&lt;BR /&gt;Sorry if it was trivial, but I wouldn't have thought of changing the debugging settings myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 15:26:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Problem-with-printf-usage-in-can-pal-example-for-a-S32k144/m-p/1045220#M6159</guid>
      <dc:creator>pierpaolo_dini</dc:creator>
      <dc:date>2020-04-17T15:26:12Z</dc:date>
    </item>
  </channel>
</rss>

