<?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: How can i use sprintf in JN5168 in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770175#M4698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="286764" data-username="xubovey" href="https://community.nxp.com/people/xubovey" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;xu bovey&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I hope to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;implement&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;_sbrk function,but i can`t find it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Mar 2018 03:53:48 GMT</pubDate>
    <dc:creator>小鹏陈</dc:creator>
    <dc:date>2018-03-24T03:53:48Z</dc:date>
    <item>
      <title>How can i use sprintf in JN5168</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770170#M4693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i use sprintf and sscanf function. i get some errors as following:&lt;/P&gt;&lt;P&gt;and i have tried:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/432612"&gt;JN5168, eclipse and atof&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Added an entry in .bss before the close }&amp;nbsp;as&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;_end&amp;nbsp;= (.)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Then in .stack, added a line before the close }&amp;nbsp;as&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;_stack = (.)&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;but it not work. what should i do to make it work well. thanks~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linking Coordinator_JN5168.elf ...&lt;BR /&gt;/c/NXP/bstudio_nxp/sdk/JN-SW-4163/../Tools/ba-elf-ba2-r36379/bin/ba-elf-gcc -Wl,--gc-sections -Wl,-u_AppColdStart -Wl,-u_AppWarmStart -TApp_Stack_Size.ld -march=ba2 -mcpu=jn51xx -mredzone-size=4 -mbranch-cost=3 -fomit-frame-pointer -Os -fshort-enums -flto -nostartfiles -L/c/NXP/bstudio_nxp/sdk/JN-SW-4163/Chip/JN5168/Build -L/c/NXP/bstudio_nxp/sdk/JN-SW-4163/Chip/JN5168/Library -L/c/NXP/bstudio_nxp/sdk/JN-SW-4163/Platform/DK4/Library -L/c/NXP/bstudio_nxp/sdk/JN-SW-4163/Components/Library -L/c/NXP/bstudio_nxp/sdk/JN-SW-4163/Stack/MAC/Build -TAppBuildMac.ld -o Coordinator_JN5168.elf ...... .o -Wl,--start-group -lAppApi_JN516x -lMAC_JN516x -lTimerServer_JN516x -lTOF_JN516x -lXcv_JN516x -lAes_JN516x -lHardwareApi_JN516x -lMicroSpecific_JN516x -lBoot_JN516x -lPDM_EEPROM_JN516x_NO_RTOS -lBoardLib_JN516x -Wl,--end-group -Wl,-Map,Coordinator_JN5168.map &lt;BR /&gt;c:/nxp/bstudio_nxp/sdk/tools/ba-elf-ba2-r36379/bin/../lib/gcc/ba-elf/4.7.4/../../../../ba-elf/lib/mcpu_jn51xx_sizeopt\libc.a(lib_a-glue.o): In function `_sbrk':&lt;BR /&gt;/ba_toolchain/r36379/source/gcc-4.7.4-ba-r36379-build/ba-elf/mcpu_jn51xx_sizeopt/newlib/libc/sys/basim/../../../../../../../gcc-4.7.4-ba-r36379/newlib/libc/sys/basim/glue.c:77: multiple definition of `_sbrk'&lt;BR /&gt;C:\Users\xubov\AppData\Local\Temp\ccJW4fKI.ltrans4.ltrans.o:ccJW4fKI.ltrans4.o:(.text+0xafb): first defined here&lt;BR /&gt;c:/nxp/bstudio_nxp/sdk/tools/ba-elf-ba2-r36379/bin/../lib/gcc/ba-elf/4.7.4/../../../../ba-elf/lib/mcpu_jn51xx_sizeopt\libc.a(lib_a-glue.o): In function `_sbrk':&lt;BR /&gt;glue.c:(.text+0x179): undefined reference to `end'&lt;BR /&gt;glue.c:(.text+0x18e): undefined reference to `_stack'&lt;BR /&gt;glue.c:(.text+0x197): undefined reference to `_stack'&lt;BR /&gt;glue.c:(.text+0x197): relocation truncated to fit: R_BA_8 against undefined symbol `_stack'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 06:51:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770170#M4693</guid>
      <dc:creator>xubovey</dc:creator>
      <dc:date>2017-11-13T06:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use sprintf in JN5168</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770171#M4694</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;Do you want the printf&amp;nbsp;for debug purpose?&lt;/P&gt;&lt;P&gt;What is the AN that you are working on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mario&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 02:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770171#M4694</guid>
      <dc:creator>mario_castaneda</dc:creator>
      <dc:date>2017-11-16T02:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use sprintf in JN5168</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770172#M4695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;i want convert a int or float number to a string.&amp;nbsp;then send out by&amp;nbsp;uart or zigbee.&lt;/P&gt;&lt;P&gt;i rebuild&amp;nbsp;the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;_sbrk&lt;/SPAN&gt; function. And it work&amp;nbsp; well know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 01:20:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770172#M4695</guid>
      <dc:creator>xubovey</dc:creator>
      <dc:date>2017-11-21T01:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use sprintf in JN5168</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770173#M4696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="286764" data-username="xubovey" href="https://community.nxp.com/people/xubovey"&gt;xu bovey&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" lang="en"&gt;How do you implement the _sbrk function? Let me refer to it? Thank you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Nov 2017 03:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770173#M4696</guid>
      <dc:creator>liuxiang</dc:creator>
      <dc:date>2017-11-25T03:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use sprintf in JN5168</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770174#M4697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, hope it will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned char HEAP[128];&lt;/P&gt;&lt;P&gt;caddr_t _sbrk ( int incr ){&lt;BR /&gt; static unsigned char *heap = NULL;&lt;BR /&gt; unsigned char *prev_heap;&lt;/P&gt;&lt;P&gt;if (heap == NULL) {&lt;BR /&gt; heap = HEAP;//(unsigned char *)&amp;amp;__HEAP_START;&lt;BR /&gt; }&lt;BR /&gt; prev_heap = heap;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; heap += incr;&lt;/P&gt;&lt;P&gt;return (caddr_t) prev_heap;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Dec 2017 09:10:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770174#M4697</guid>
      <dc:creator>xubovey</dc:creator>
      <dc:date>2017-12-10T09:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use sprintf in JN5168</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770175#M4698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="286764" data-username="xubovey" href="https://community.nxp.com/people/xubovey" style="color: #5e89c1; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;xu bovey&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I hope to&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;implement&lt;SPAN&gt;&amp;nbsp;the&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;_sbrk function,but i can`t find it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Mar 2018 03:53:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/770175#M4698</guid>
      <dc:creator>小鹏陈</dc:creator>
      <dc:date>2018-03-24T03:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can i use sprintf in JN5168</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/1336166#M11939</link>
      <description>&lt;P&gt;hi！&lt;SPAN&gt;This looks very good, but I don't know how to implement this function in&amp;nbsp; libc.a.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;can you show me the way&amp;nbsp; to implement it, thank you very much&amp;nbsp; ！&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 13:39:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-can-i-use-sprintf-in-JN5168/m-p/1336166#M11939</guid>
      <dc:creator>GP_Mao</dc:creator>
      <dc:date>2021-09-07T13:39:01Z</dc:date>
    </item>
  </channel>
</rss>

