<?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: compile with NewLibNano (none) in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/compile-with-NewLibNano-none/m-p/593495#M30472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Mon Jul 27 08:09:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Any C/C++ I/O will cause these functions to be required, such as printf etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try using "No Libraries" and seeing all of the C library functions you are using become unresolved, so you can work out which I/O functions you are using.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:29:57 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:29:57Z</dc:date>
    <item>
      <title>compile with NewLibNano (none)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/compile-with-NewLibNano-none/m-p/593494#M30471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by miccio on Mon Jul 27 08:04:24 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a LPCOpen C++ project, and upon switching from "NewLibNano (no host)" to "NewLibNano (none)" i get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
Building target: firmware.axf
Invoking: MCU C++ Linker
arm-none-eabi-c++ -nostdlib -L"/[...]/lpc_chip_11cxx_lib/Debug" -Xlinker -Map="firmware.map" -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "proj_Debug.ld" -o "firmware.axf"&amp;nbsp; ./sys/board_sett.o ./sys/cr_cpp_config.o ./sys/cr_startup_lpc11xx.o ./sys/sysinit.o&amp;nbsp; ./src/irq_handlers.o ./src/main.o&amp;nbsp; ./libuavcan_src/transport/uc_can_io.o ./libuavcan_src/transport/uc_crc.o ./libuavcan_src/transport/uc_dispatcher.o ./libuavcan_src/transport/uc_frame.o ./libuavcan_src/transport/uc_outgoing_transfer_registry.o ./libuavcan_src/transport/uc_transfer.o ./libuavcan_src/transport/uc_transfer_buffer.o ./libuavcan_src/transport/uc_transfer_listener.o ./libuavcan_src/transport/uc_transfer_receiver.o ./libuavcan_src/transport/uc_transfer_sender.o&amp;nbsp; ./libuavcan_src/protocol/uc_dynamic_node_id_client.o ./libuavcan_src/protocol/uc_node_status_provider.o&amp;nbsp; ./libuavcan_src/node/uc_generic_publisher.o ./libuavcan_src/node/uc_generic_subscriber.o ./libuavcan_src/node/uc_global_data_type_registry.o ./libuavcan_src/node/uc_scheduler.o ./libuavcan_src/node/uc_service_client.o ./libuavcan_src/node/uc_timer.o&amp;nbsp; ./libuavcan_src/marshal/uc_bit_array_copy.o ./libuavcan_src/marshal/uc_bit_stream.o ./libuavcan_src/marshal/uc_float_spec.o ./libuavcan_src/marshal/uc_scalar_codec.o&amp;nbsp; ./libuavcan_src/driver/uc_can.o&amp;nbsp; ./libuavcan_src/uc_data_type.o ./libuavcan_src/uc_dynamic_memory.o ./libuavcan_src/uc_error.o&amp;nbsp; ./libuavcan_driver_src/can.o ./libuavcan_driver_src/clock.o&amp;nbsp; ./inc/board.o ./inc/node.o&amp;nbsp; ./chip_libs/iap.o&amp;nbsp;&amp;nbsp; -llpc_chip_11cxx_lib
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-abort.o): In function `abort':
abort.c:(.text.abort+0xa): undefined reference to `_exit'
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text._kill_r+0xe): undefined reference to `_kill'
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text._getpid_r+0x2): undefined reference to `_getpid'
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text._write_r+0x10): undefined reference to `_write'
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text._close_r+0xc): undefined reference to `_close'
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-fstatr.o): In function `_fstat_r':
fstatr.c:(.text._fstat_r+0xe): undefined reference to `_fstat'
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-isattyr.o): In function `_isatty_r':
isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text._lseek_r+0x10): undefined reference to `_lseek'
/usr/local/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv6-m/libc_nano.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text._read_r+0x10): undefined reference to `_read'
collect2: error: ld returned 1 exit status
make: *** [firmware.axf] Error 1
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this is because of the library's lack of implementation for the aforementioned functions, but I am not using those system calls in my code. Is there a way to see where they are being required? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:29:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/compile-with-NewLibNano-none/m-p/593494#M30471</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: compile with NewLibNano (none)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/compile-with-NewLibNano-none/m-p/593495#M30472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Mon Jul 27 08:09:35 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Any C/C++ I/O will cause these functions to be required, such as printf etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could try using "No Libraries" and seeing all of the C library functions you are using become unresolved, so you can work out which I/O functions you are using.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:29:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/compile-with-NewLibNano-none/m-p/593495#M30472</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: compile with NewLibNano (none)</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/compile-with-NewLibNano-none/m-p/593496#M30473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by miccio on Mon Jul 27 10:37:32 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Worked like a charm, thank you support! :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for reference sake, most of these functions were needed by "assert()".&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:29:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/compile-with-NewLibNano-none/m-p/593496#M30473</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:29:57Z</dc:date>
    </item>
  </channel>
</rss>

