<?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 Re: S32K144's Processor Expert project add 'printf()' function in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776862#M2383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't reproduce your issue. Can you please share your project?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2018 14:15:14 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2018-03-07T14:15:14Z</dc:date>
    <item>
      <title>S32K144's Processor Expert project add 'printf()' function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776858#M2379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using a new example 'hello_world_s32k144' form 'S32K14x EAR SDK v0.8.6' and it can work normally.&lt;/P&gt;&lt;P&gt;But when I add debug HardFault's code to the project,the project will be reported follow error：&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/18890iB834FD892F6ABD52/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;P&gt;When I comment on the 'printf' function, no error occurs.What is the cause of the error，the code as follow：&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * HardFault_Handler.c&lt;BR /&gt; *&lt;BR /&gt; * Created on: 2018_2_27&lt;BR /&gt; * Author: Ling&lt;BR /&gt; */&lt;BR /&gt;#include "S32K144.h"&lt;BR /&gt;#include "s32_core_cm4.h"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void HardFault_Handler(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;__asm("TST LR , #4");&lt;BR /&gt; /* LR Register &amp;amp; 0b0100 and Update the value in CPSR */&lt;BR /&gt; __asm("ITE EQ");&lt;BR /&gt; /* If LR's 2th bit equal to 0 */&lt;BR /&gt; __asm("MRSEQ R0 , MSP");&lt;BR /&gt; __asm("MRSNE R0 , PSP");&lt;BR /&gt; __asm("MOV R1 , LR");&lt;BR /&gt; __asm("B HardFault_Handler_C");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;##&lt;/P&gt;&lt;P&gt;void HardFault_Handler_C(unsigned long *hardfault_args,unsigned int lr_value)&lt;BR /&gt;{&lt;BR /&gt; unsigned long int stacked_r0;&lt;BR /&gt; unsigned long int stacked_r1;&lt;BR /&gt; unsigned long int stacked_r2;&lt;BR /&gt; unsigned long int stacked_r3;&lt;BR /&gt; unsigned long int stacked_r12;&lt;BR /&gt; unsigned long int stacked_lr;&lt;BR /&gt; unsigned long int stacked_pc;&lt;BR /&gt; unsigned long int stacked_psr;&lt;BR /&gt; unsigned long int cfsr;&lt;BR /&gt; unsigned long int bus_fault_address;&lt;BR /&gt; unsigned long int memmanage_fault_address;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; bus_fault_address = S32_SCB-&amp;gt;BFAR;&lt;BR /&gt; memmanage_fault_address = S32_SCB-&amp;gt;MMFAR;&lt;BR /&gt; cfsr = S32_SCB-&amp;gt;CFSR;&lt;/P&gt;&lt;P&gt;stacked_r0 = ((unsigned long) hardfault_args[0]);&lt;BR /&gt; stacked_r1 = ((unsigned long) hardfault_args[1]);&lt;BR /&gt; stacked_r2 = ((unsigned long) hardfault_args[2]);&lt;BR /&gt; stacked_r3 = ((unsigned long) hardfault_args[3]);&lt;BR /&gt; stacked_r12 = ((unsigned long) hardfault_args[4]);&lt;BR /&gt; stacked_lr = ((unsigned long) hardfault_args[5]);&lt;BR /&gt; stacked_pc = ((unsigned long) hardfault_args[6]);&lt;BR /&gt; stacked_psr = ((unsigned long) hardfault_args[7]);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; printf("[HardFalt report]\r\n");&lt;BR /&gt; printf("- Stack frame:\r\n");&lt;BR /&gt; printf("R0 = 0x%lx\r\n",stacked_r0);&lt;BR /&gt; printf("R1 = 0x%lx\r\n",stacked_r1);&lt;BR /&gt; printf("R2 = 0x%lx\r\n",stacked_r2);&lt;BR /&gt; printf("R3 = 0x%lx\r\n",stacked_r3);&lt;BR /&gt; printf("R12 = 0x%lx\r\n",stacked_r12);&lt;BR /&gt; printf("LR = 0x%lx\r\n",stacked_lr);&lt;BR /&gt; printf("PC = 0x%lx\r\n",stacked_pc);&lt;BR /&gt; printf("PSR = 0x%lx\r\n",stacked_psr);&lt;BR /&gt; printf("- FSR/FAR:\r\n");&lt;BR /&gt; printf("CFSR = 0x%lx\r\n",cfsr);&lt;BR /&gt; printf("HFSR = 0x%lx\r\n",S32_SCB-&amp;gt;HFSR);&lt;BR /&gt; printf("DFSR = 0x%lx\r\n",S32_SCB-&amp;gt;DFSR);&lt;BR /&gt; printf("AFSR = 0x%lx\r\n",S32_SCB-&amp;gt;AFSR);&lt;/P&gt;&lt;P&gt;if(cfsr &amp;amp; 0x0080)&lt;BR /&gt; printf("MMFAR = 0x%lx\r\n",memmanage_fault_address);&lt;BR /&gt; if(cfsr &amp;amp; 0x8000)&lt;BR /&gt; printf("BFAR = 0x%lx\r\n",bus_fault_address);&lt;BR /&gt; printf("- Misc\r\n");&lt;BR /&gt; printf("LR/EXC_RETURN = 0x%x\r\n",lr_value);&lt;/P&gt;&lt;P&gt;while(1);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 06:26:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776858#M2379</guid>
      <dc:creator>baotingkai</dc:creator>
      <dc:date>2018-02-27T06:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's Processor Expert project add 'printf()' function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776859#M2380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think UART port should be connected with MCU and configured in your project. Then print your tager variable into serial tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In default way printf function is not supported in the the console of design studio.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 08:19:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776859#M2380</guid>
      <dc:creator>felixfeng</dc:creator>
      <dc:date>2018-02-28T08:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's Processor Expert project add 'printf()' function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776860#M2381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need to write your own console event handlers. For inspiration you can look at this example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-335240"&gt;https://community.nxp.com/docs/DOC-335240&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2018 12:55:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776860#M2381</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-03-05T12:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's Processor Expert project add 'printf()' function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776861#M2382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank &amp;nbsp;you for your answer,I have already solve the problem by change “Target Porcessor”-&amp;gt;"Libraries support" ewl_c to newlib no I/O in "Project Properties".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a new ERROR about Processor Expert,the icon is gray and can not be loaded.&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/2583i369FEE8EBA3ED43F/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;P&gt;I have tried to use Build configurations explorer, it's not work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3384i2B1CCC464BAD19D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I use the "&lt;SPAN&gt;PINS_DRV_Init&lt;/SPAN&gt;" function in "pin_mux:PinSettings" Components .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2584iC1F61FC9466884CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The IDE crashes when it runs on pin 96 (PTC4),does anyone know the solution?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_77.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/4356i35DEF340D909FBFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_77.png" alt="pastedImage_77.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_78.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2585i21F93C6B1FB83F9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_78.png" alt="pastedImage_78.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 09:10:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776861#M2382</guid>
      <dc:creator>baotingkai</dc:creator>
      <dc:date>2018-03-07T09:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's Processor Expert project add 'printf()' function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776862#M2383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't reproduce your issue. Can you please share your project?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 14:15:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776862#M2383</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-03-07T14:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's Processor Expert project add 'printf()' function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776863#M2384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi，Jiri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help, I have uploaded the project to the attachment.Testing with S32K144EVB board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Jiri Kral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 01:52:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776863#M2384</guid>
      <dc:creator>baotingkai</dc:creator>
      <dc:date>2018-03-08T01:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's Processor Expert project add 'printf()' function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776864#M2385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested your project - and there is no issue on my machine. You can try to create new Workspace and import your project (File -&amp;gt; Import -&amp;gt; General -&amp;gt; Existing Project into Workspace).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doesn't help - try to re-install S32DS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jiri&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 07:37:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776864#M2385</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2018-03-09T07:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's Processor Expert project add 'printf()' function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776865#M2386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didn't work, but still thanks :-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 07:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776865#M2386</guid>
      <dc:creator>baotingkai</dc:creator>
      <dc:date>2018-03-14T07:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144's Processor Expert project add 'printf()' function</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776866#M2387</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;I suppose that you don't have clock enable for PORT C. Check clock manager configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Razvan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 09:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-s-Processor-Expert-project-add-printf-function/m-p/776866#M2387</guid>
      <dc:creator>razva_tilimpea</dc:creator>
      <dc:date>2018-03-16T09:51:49Z</dc:date>
    </item>
  </channel>
</rss>

