Compilation error in RT1170EVKB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compilation error in RT1170EVKB

933 Views
shubhamosh12
Contributor II

I am trying to run tflite on RT1170 EVKB, but I am creating errors because the cpp and c files are both running in the same source folder. Can anyone suggest a solution? The document eiq is for RT1170 and not for RT1170evkb, so can I run tflite on 1170evkb or not?

 

shubhamosh12_0-1742714655000.png

arm-none-eabi-gcc -nostdlib "-LE:\\new\\evkbmimxrt1170_maestro_sync\\vit\\CortexM7\\Lib" "-LE:\\new\\evkbmimxrt1170_maestro_sync\\voice_seeker\\lib" -Xlinker -no-warn-rwx-segments -Xlinker -Map=evkbmimxrt1170_maestro_sync.map -Xlinker --gc-sections -Xlinker -print-memory-usage -Xlinker --sort-section=alignment -Xlinker --cref -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb -T evkbmimxrt1170_maestro_sync_Debug.ld -o evkbmimxrt1170_maestro_sync.axf "CMSIS\\DSP\\Source\\BasicMathFunctions\\BasicMathFunctions.o" "CMSIS\\DSP\\Source\\BasicMathFunctions\\BasicMathFunctionsF16.o" "CMSIS\\DSP\\Source\\BayesFunctions\\BayesFunctions.o" "CMSIS\\DSP\\Source\\BayesFunctions\\BayesFunctionsF16.o" "CMSIS\\DSP\\Source\\CommonTables\\CommonTables.o" "CMSIS\\DSP\\Source\\CommonTables\\CommonTablesF16.o" "CMSIS\\DSP\\Source\\ComplexMathFunctions.o" "CMSIS\\DSP\\Source\\ComplexMathFunctions ComplexMathFunctionsF16.o" "CMSIS\\DSP\\Source\\ControllerFunctions\\ ControllerFunctions.o" "CMSIS\\DSP\\Source\\DistanceFunctions\\DistanceFunctions.o" "CMSIS\\DSP\\Source\\DistanceFunctions\\DistanceFunctionsF16.o" "CMSIS\\DSP\\Source\\FastMathFunctions\ FastMathFunctions.o" "CMSIS\\DSP\\Source\\FastMathFunctions\\ FastMathFunctionsF16.o" "CMSIS\\DSP\\Source\\FilteringFunctions\\FilteringFunctions.o" "CMSIS\\DSP\\Source\\FilteringFunctions\\FilteringFunctionsF16.o" "CMSIS\\DSP\\Source\\InterpolationFunctions\\InterpolationFunctions.o" "CMSIS\\DSP\\Source\\InterpolationFunctions\\InterpolationFunctionsF16.o" "CMSIS\\DSP\\Source\\MatrixFunctions\\MatrixFunctions.o" "CMSIS\\DSP\\Source\\MatrixFunctions\\MatrixFunctionsF16.o" "CMSIS\\DSP\\Source\\QuaternionMathFunctions\\QuaternionMathFunctions.o" "CMSIS\\DSP\\Source\\SVMFunctions\\SVMFunctions.o" "CMSIS\\DSP\\Source\\SVMFunctions\\SVMFunctionsF16.o" "CMSIS\\DSP\\Source\\StatisticsFunctions\\StatisticsFunctions.o" "CMSIS\\DSP\\Source\\StatisticsFunctions\\StatisticsFunctionsF16.o" "CMSIS\\DSP\\Source\\SupportFunctions\\SupportFunctions.o" "CMSIS\\DSP\\Source\\SupportFunctions\\SupportFunctionsF16.o" "CMSIS\\DSP\\Source\\TransformFunctions\\TransformFunctions.o" "CMSIS\\DSP\\Source\\TransformFunctions\\TransformFunctionsF16.o" "CMSIS\\DSP\\Source\\WindowFunctions\\WindowFunctions.o" "board\\board.o" "board\\clock_config.o" "board\\hardware_init.o" "board\\peripherals.o" "board\\pin_mux.o" "codec\\fsl_codec_common.o" "codec\\fsl_codec_i2c.o" "codec\\fsl_wm8962.o" "codec\\port\\fsl_codec_adapter.o" "codec\\port\\wm8962\\fsl_codec_wm8962_adapter.o" "component\\gpio\\fsl_adapter_igpio.o" "component\\i2c\\fsl_adapter_lpi2c.o" "component\\lists\\fsl_component_generic_list.o" "component\\osa\\fsl_os_abstraction_free_rtos.o" "component\\serial_manager\\fsl_component_serial_manager.o" "component\\serial_manager\\fsl_component_serial_port_uart.o" "component\\uart\\fsl_adapter_lpuart.o" "device\\system_MIMXRT1176_cm7.o" "drivers\\fsl_anatop_ai.o" "drivers\\fsl_cache.o" "drivers\\fsl_clock.o" "drivers\\fsl_common.o" "drivers\\fsl_common_arm.o" "drivers\\fsl_dcdc.o" "drivers\\fsl_dmamux.o" "drivers\\fsl_edma.o" "drivers\\fsl_gpc.o" "drivers\\fsl_gpio.o" "drivers\\fsl_lpi2c.o" "drivers\\fsl_lpuart.o" "drivers\\fsl_mu.o" "drivers\\fsl_pdm.o" "drivers\\fsl_pdm_edma.o" "drivers\\fsl_pgmc.o" "drivers\\fsl_pmu.o" "drivers\\fsl_sai.o" "drivers\\fsl_sai_edma.o" "drivers\\fsl_semc.o" "drivers\\fsl_soc_src.o" "drivers\\fsl_usdhc.o" "fatfs\\source\\diskio.o" "fatfs\\source\\ff.o" "fatfs\\source\\ffsystem.o" "fatfs\\source\\ffunicode.o" "fatfs\\source\\fsl_sd_disk\\fsl_sd_disk.o" "freertos\\freertos-kernel\\croutine.o" "freertos\\freertos-kernel\\event_groups.o" "freertos\\freertos-kernel\\list.o" "freertos\\freertos-kernel\\portable\\GCC\\ARM_CM4F\\port.o" "freertos\\freertos-kernel\\portable\\MemMang\\heap_4.o" "freertos\\freertos-kernel\\queue.o" "freertos\\freertos-kernel\\stream_buffer.o" "freertos\\freertos-kernel\\tasks.o" "freertos\\freertos-kernel\\timers.o" "maestro\\src\\core\\src\\pad.o" "maestro\\src\\core\\src\\pipeline.o" "maestro\\src\\core\\src\\streamer.o" "maestro\\src\\core\\src\\streamer_element.o" "maestro\\src\\core\\src\\streamer_msg.o" "maestro\\src\\devices\\audio_sink_default.o" "maestro\\src\\devices\\audio_src_default.o" "maestro\\src\\elements\\audio_proc.o" "maestro\\src\\elements\\audio_sink.o" "maestro\\src\\elements\\audio_src.o" "maestro\\src\\elements\\file_sink.o" "maestro\\src\\elements\\mem_src.o" "maestro\\src\\elements\\process_sink.o" "maestro\\src\\utils\\src\\file_utils.o" "maestro\\src\\utils\\src\\general_utils.o" "maestro\\src\\utils\\src\\maestro_logging.o" "sdmmc\\common\\fsl_sdmmc_common.o" "sdmmc\\host\\usdhc\\non_blocking\\fsl_sdmmc_host.o" "sdmmc\\osa\\fsl_sdmmc_osa.o" "sdmmc\\sd\\fsl_sd.o" "source\\aasr_module.o" "source\\app_streamer.o" "source\\asr_module.o" "source\\cmd.o" "source\\flatbuffers\\flatcc\\external\\hash\\PMurHash.o" "source\\flatbuffers\\flatcc\\external\\hash\\cmetrohash64.o" "source\\flatbuffers\\flatcc\\external\\hash\\ht32.o" "source\\flatbuffers\\flatcc\\external\\hash\\ht32rh.o" "source\\flatbuffers\\flatcc\\external\\hash\\ht64.o" "source\\flatbuffers\\flatcc\\external\\hash\\ht64rh.o" "source\\flatbuffers\\flatcc\\external\\hash\\ptr_set.o" "source\\flatbuffers\\flatcc\\external\\hash\\str_set.o" "source\\flatbuffers\\flatcc\\external\\hash\\token_map.o" "source\\flatbuffers\\flatcc\\external\\lex\\luthor.o" "source\\main.o" "source\\sdmmc_config.o" "source\\semihost_hardfault.o" "source\\streamer_pcm.o" "source\\vit_proc.o" "source\\voice_seeker.o" "startup\\boot_multicore_slave.o" "startup\\startup_mimxrt1176_cm7.o" "utilities\\debug_console\\fsl_debug_console.o" "utilities\\fsl_assert.o" "utilities\\fsl_memcpy.o" "utilities\\fsl_shell.o" "utilities\\str\\fsl_str.o" "voice_seeker\\ARM_CortexM7\\rdsp_utilities_public\\rdsp_memory_utils_public\\RdspMemoryUtilsPublic.o" "voice_seeker\\ARM_CortexM7\\rdsp_utilities_public\\rdsp_memory_utils_public\\memcheck.o" "xip\\dcd.o" "xip\\evkbmimxrt1170_flexspi_nor_config.o" "xip\\fsl_flexspi_nor_boot.o" "xip\\xmcd.o" -Wl,--start-group -lVIT_CM7_v04_11_00 -lvoiceseeker_no_aec -Wl, end-group

C:/nxp/MCUXpressoIDE_24.12.148/ide/plugins/com.Exp.expresso.tools.win32_24.12.0.202407110909/tools/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld.exe: source\asr_module.o: in function `ASR_Init':

E:\new\evkbmimxrt1170_maestro_sync\Debug/..\source/asr_module.cpp:12:(.text+0x4): undefined reference to `stt_processor_init'

C:/nxp/MCUXpressoIDE_24.12.148/ide/plugins/com.nxp.mcuxpresso.tools.win32_24.12.0.202407110909/tools/bin/../lib/gcc/arm-none-eabi/13.2.1/../../../../arm-none-eabi/bin/ld.exe: source\asr_module.o: in function `ASR_Process':

E:\new\evkbmimxrt1170_maestro_sync\Debug/..\source/asr_module.cpp:16:(.text+0x14): undefined reference to `stt_processor_run'

Memory region Used Size Region Size %age Used

BOARD_FLASH: 68292 B 64 MB 0.10%

SRAM_DTC_cm7: 43644 B 256 KB 16.65%

SRAM_ITC_cm7: 0 GB 256 KB 0.00%

SRAM_OC1: 751644 B 768 KB 95.58%

NCACHE_REGION: 0 GB 256 KB 0.00%

SRAM_OC_ECC1: 0 GB 64 KB 0.00%

SRAM_OC_ECC2: 0 GB 64 KB 0.00%

BOARD_SDRAM: 0 GB 64 MB 0.00%

collect2.exe: error: ld returned 1 exit status

0 Kudos
Reply
3 Replies

906 Views
Sam_Gao
NXP Employee
NXP Employee

@shubhamosh12 Please see my comments below.

  • Different board should support dedicated corresponding SDK(MIMXRT1170-EVK vs. MIMXRT1170-EVKB), it should be errors if using MIMXRT1170-EVK with the SDK of MIMXRT1170-EVKB. But mostly the difference is in the bottom-level parts, not application level.
  • 'evkbmimxrt1170_maestro_sync' from your build log seems be EVKB SDK, not EVK. And we didn't provide 'maestro_sync' example from offical SDK, it suppose to be dedicated customezated application.
  • 'The document eiq is for RT1170 and not for RT1170evkb, so can I run tflite on 1170evkb or not?' It deepends, there are some tflm-related examples(tflm-label-image, kws, cifar10) which be workable both on RT1170-EVK and RT1170 EVKB board. You need to download corrosponsing SDK, also you can modify from your side base on you knowledge.

 

https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/evkbmimxrt1170/eiq_examples 

https://github.com/nxp-mcuxpresso/mcux-sdk-examples/tree/main/evkmimxrt1170/eiq_examples 

 

 

 

0 Kudos
Reply

864 Views
shubhamosh12
Contributor II
I got it but eiq is for image and object so it is not going to solve the problem and you have released new sdk for rt1170 and i am not able to download sdk dont know why and internet is not an issue. Another thing i am getting error in linker, can i post here or new question again
0 Kudos
Reply

845 Views
Sam_Gao
NXP Employee
NXP Employee

Yeah! @shubhamosh12 

You can download corresponding SDK(MIMXRT1170-EVK vs. MIMXRT1170-EVKB) as you can.

If there are other questions, please creat new post to us, thanks.

0 Kudos
Reply