<?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>i.MX Processors中的主题 FreeRTOS BSP MX7: Unresolved References</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-BSP-MX7-Unresolved-References/m-p/774470#M120219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a build environment based on Eclipse and ARM MCU Plugins.&lt;BR /&gt;The IDE provides example projects for the STM32, including the STM HAL etc. I can successfully build these example projects, so my IDE and toolchain should be set up correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get some testing done on the MX7 I created a new project including the "blinking_mx_demo" and the freeRTOS source files from the MX7 FreeRTOS SDK.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="projectStruct.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34536iEE26B60A0A79AE5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="projectStruct.PNG" alt="projectStruct.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On creating the elf file, a lot of errors are produced in&amp;nbsp;the following files:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="errorsInFiles.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34573i43240B54E08188BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="errorsInFiles.PNG" alt="errorsInFiles.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Building target: MX7_M4_Test.elf&lt;BR /&gt;Invoking: GNU ARM Cross C Linker&lt;BR /&gt;arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -g3 -Xlinker --gc-sections -Wl,-Map,"MX7_M4_Test.map" -o "MX7_M4_Test.elf" ./freeRTOS/portable/MemMang/heap_2.o ./freeRTOS/portable/GCC/ARM_CM4F/port.o ./freeRTOS/croutine.o ./freeRTOS/event_groups.o ./freeRTOS/list.o ./freeRTOS/queue.o ./freeRTOS/tasks.o ./freeRTOS/timers.o ./blinking_imx_demo/gpio_ctrl.o ./blinking_imx_demo/gpt_timer.o ./blinking_imx_demo/hardware_init.o ./blinking_imx_demo/main.o &lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-exit.o): In function `exit':&lt;BR /&gt;exit.c:(.text.exit+0x16): undefined reference to `_exit'&lt;BR /&gt;./blinking_imx_demo/gpio_ctrl.o: In function `GPIO_Ctrl_InitKeyPin':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:81: undefined reference to `RDC_SEMAPHORE_Lock'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:83: undefined reference to `GPIO_Init'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:85: undefined reference to `RDC_SEMAPHORE_Unlock'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:90: undefined reference to `gpioKeyFunc1'&lt;BR /&gt;./blinking_imx_demo/gpio_ctrl.o: In function `GPIO_Ctrl_ToggleLed':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:112: undefined reference to `debug_printf'&lt;BR /&gt;./blinking_imx_demo/gpio_ctrl.o: In function `GPIO_Ctrl_WaitKeyPressed':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:127: undefined reference to `RDC_SEMAPHORE_Lock'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:132: undefined reference to `GPIO_SetPinIntMode'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:134: undefined reference to `RDC_SEMAPHORE_Unlock'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:139: undefined reference to `debug_printf'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:165: undefined reference to `gpioKeyFunc1'&lt;BR /&gt;./blinking_imx_demo/gpt_timer.o: In function `Hw_Timer_Init':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpt_timer.c:58: undefined reference to `GPT_Init'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpt_timer.c:61: undefined reference to `GPT_SetClockSource'&lt;BR /&gt;./blinking_imx_demo/gpt_timer.o: In function `Hw_Timer_Delay':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpt_timer.c:94: undefined reference to `GPT_SetIntCmd'&lt;BR /&gt;./blinking_imx_demo/hardware_init.o: In function `hardware_init':&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:37: undefined reference to `BOARD_RdcInit'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:39: undefined reference to `BOARD_ClockInit'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:41: undefined reference to `dbg_uart_init'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:59: undefined reference to `CCM_UpdateRoot'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:71: undefined reference to `configure_gpio_pin'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:72: undefined reference to `gpioKeyFunc1'&lt;BR /&gt;./blinking_imx_demo/main.o: In function `SwitchTask':&lt;BR /&gt;path_to_example//blinking_imx_demo/main.c:68: undefined reference to `debug_printf'&lt;BR /&gt;./blinking_imx_demo/main.o: In function `main':&lt;BR /&gt;path_to_example//blinking_imx_demo/main.c:92: undefined reference to `debug_printf'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-abort.o): In function `abort':&lt;BR /&gt;abort.c:(.text.abort+0xa): undefined reference to `_exit'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':&lt;BR /&gt;sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-signalr.o): In function `_kill_r':&lt;BR /&gt;signalr.c:(.text._kill_r+0x10): undefined reference to `_kill'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-signalr.o): In function `_getpid_r':&lt;BR /&gt;signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-writer.o): In function `_write_r':&lt;BR /&gt;writer.c:(.text._write_r+0x12): undefined reference to `_write'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-closer.o): In function `_close_r':&lt;BR /&gt;closer.c:(.text._close_r+0xc): undefined reference to `_close'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-fstatr.o): In function `_fstat_r':&lt;BR /&gt;fstatr.c:(.text._fstat_r+0x10): undefined reference to `_fstat'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-isattyr.o): In function `_isatty_r':&lt;BR /&gt;isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-lseekr.o): In function `_lseek_r':&lt;BR /&gt;lseekr.c:(.text._lseek_r+0x12): undefined reference to `_lseek'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-readr.o): In function `_read_r':&lt;BR /&gt;readr.c:(.text._read_r+0x12): undefined reference to `_read'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:47: MX7_M4_Test.elf] Error 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;These errors are interesting cause many of them refer to undefined&amp;nbsp;references. Id assume this is due to missing header files, but include paths to these header files have been provided (otherwise, the build process would have stopped before attempting to build the .elf file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what might be going wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2018 15:38:54 GMT</pubDate>
    <dc:creator>demoniacmilk</dc:creator>
    <dc:date>2018-01-31T15:38:54Z</dc:date>
    <item>
      <title>FreeRTOS BSP MX7: Unresolved References</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-BSP-MX7-Unresolved-References/m-p/774470#M120219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up a build environment based on Eclipse and ARM MCU Plugins.&lt;BR /&gt;The IDE provides example projects for the STM32, including the STM HAL etc. I can successfully build these example projects, so my IDE and toolchain should be set up correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get some testing done on the MX7 I created a new project including the "blinking_mx_demo" and the freeRTOS source files from the MX7 FreeRTOS SDK.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="projectStruct.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34536iEE26B60A0A79AE5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="projectStruct.PNG" alt="projectStruct.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On creating the elf file, a lot of errors are produced in&amp;nbsp;the following files:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="errorsInFiles.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34573i43240B54E08188BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="errorsInFiles.PNG" alt="errorsInFiles.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Building target: MX7_M4_Test.elf&lt;BR /&gt;Invoking: GNU ARM Cross C Linker&lt;BR /&gt;arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O0 -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -g3 -Xlinker --gc-sections -Wl,-Map,"MX7_M4_Test.map" -o "MX7_M4_Test.elf" ./freeRTOS/portable/MemMang/heap_2.o ./freeRTOS/portable/GCC/ARM_CM4F/port.o ./freeRTOS/croutine.o ./freeRTOS/event_groups.o ./freeRTOS/list.o ./freeRTOS/queue.o ./freeRTOS/tasks.o ./freeRTOS/timers.o ./blinking_imx_demo/gpio_ctrl.o ./blinking_imx_demo/gpt_timer.o ./blinking_imx_demo/hardware_init.o ./blinking_imx_demo/main.o &lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-exit.o): In function `exit':&lt;BR /&gt;exit.c:(.text.exit+0x16): undefined reference to `_exit'&lt;BR /&gt;./blinking_imx_demo/gpio_ctrl.o: In function `GPIO_Ctrl_InitKeyPin':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:81: undefined reference to `RDC_SEMAPHORE_Lock'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:83: undefined reference to `GPIO_Init'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:85: undefined reference to `RDC_SEMAPHORE_Unlock'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:90: undefined reference to `gpioKeyFunc1'&lt;BR /&gt;./blinking_imx_demo/gpio_ctrl.o: In function `GPIO_Ctrl_ToggleLed':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:112: undefined reference to `debug_printf'&lt;BR /&gt;./blinking_imx_demo/gpio_ctrl.o: In function `GPIO_Ctrl_WaitKeyPressed':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:127: undefined reference to `RDC_SEMAPHORE_Lock'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:132: undefined reference to `GPIO_SetPinIntMode'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:134: undefined reference to `RDC_SEMAPHORE_Unlock'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:139: undefined reference to `debug_printf'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpio_ctrl.c:165: undefined reference to `gpioKeyFunc1'&lt;BR /&gt;./blinking_imx_demo/gpt_timer.o: In function `Hw_Timer_Init':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpt_timer.c:58: undefined reference to `GPT_Init'&lt;BR /&gt;path_to_example/blinking_imx_demo/gpt_timer.c:61: undefined reference to `GPT_SetClockSource'&lt;BR /&gt;./blinking_imx_demo/gpt_timer.o: In function `Hw_Timer_Delay':&lt;BR /&gt;path_to_example/blinking_imx_demo/gpt_timer.c:94: undefined reference to `GPT_SetIntCmd'&lt;BR /&gt;./blinking_imx_demo/hardware_init.o: In function `hardware_init':&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:37: undefined reference to `BOARD_RdcInit'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:39: undefined reference to `BOARD_ClockInit'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:41: undefined reference to `dbg_uart_init'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:59: undefined reference to `CCM_UpdateRoot'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:71: undefined reference to `configure_gpio_pin'&lt;BR /&gt;path_to_example/blinking_imx_demo/hardware_init.c:72: undefined reference to `gpioKeyFunc1'&lt;BR /&gt;./blinking_imx_demo/main.o: In function `SwitchTask':&lt;BR /&gt;path_to_example//blinking_imx_demo/main.c:68: undefined reference to `debug_printf'&lt;BR /&gt;./blinking_imx_demo/main.o: In function `main':&lt;BR /&gt;path_to_example//blinking_imx_demo/main.c:92: undefined reference to `debug_printf'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-abort.o): In function `abort':&lt;BR /&gt;abort.c:(.text.abort+0xa): undefined reference to `_exit'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':&lt;BR /&gt;sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-signalr.o): In function `_kill_r':&lt;BR /&gt;signalr.c:(.text._kill_r+0x10): undefined reference to `_kill'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-signalr.o): In function `_getpid_r':&lt;BR /&gt;signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-writer.o): In function `_write_r':&lt;BR /&gt;writer.c:(.text._write_r+0x12): undefined reference to `_write'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-closer.o): In function `_close_r':&lt;BR /&gt;closer.c:(.text._close_r+0xc): undefined reference to `_close'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-fstatr.o): In function `_fstat_r':&lt;BR /&gt;fstatr.c:(.text._fstat_r+0x10): undefined reference to `_fstat'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-isattyr.o): In function `_isatty_r':&lt;BR /&gt;isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-lseekr.o): In function `_lseek_r':&lt;BR /&gt;lseekr.c:(.text._lseek_r+0x12): undefined reference to `_lseek'&lt;BR /&gt;path/arm-none-eabi/lib/thumb/v7e-m/fpv4-sp/hard\libg.a(lib_a-readr.o): In function `_read_r':&lt;BR /&gt;readr.c:(.text._read_r+0x12): undefined reference to `_read'&lt;BR /&gt;collect2.exe: error: ld returned 1 exit status&lt;BR /&gt;make: *** [makefile:47: MX7_M4_Test.elf] Error 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;These errors are interesting cause many of them refer to undefined&amp;nbsp;references. Id assume this is due to missing header files, but include paths to these header files have been provided (otherwise, the build process would have stopped before attempting to build the .elf file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea what might be going wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 15:38:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-BSP-MX7-Unresolved-References/m-p/774470#M120219</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-01-31T15:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: FreeRTOS BSP MX7: Unresolved References</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-BSP-MX7-Unresolved-References/m-p/774471#M120220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To close this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had added source files for RTOS and&amp;nbsp;and an example to my project, then iterated through attempting to build and adding missing include paths until the compiler was able to find all header files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some source files were missing in the project tree (platform folder in my case) so the linker could not find the sources for e.g. foo(bar). The compiler beforehand did not complain, as a function prototype for foo(bar) was included in the header files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 14:22:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/FreeRTOS-BSP-MX7-Unresolved-References/m-p/774471#M120220</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-05T14:22:01Z</dc:date>
    </item>
  </channel>
</rss>

