nxp-mcuxpresso/OpenART

The BSP for imxrt1064-seekfree-art-mini cannot be compiled

FredBill1 opened this issue · 1 comments

I've tried to compile the project using arm-none-eabi-gcc 5.4.1 with scons, leading to the error message

$ scons
scons: Reading SConscript files ...
Generate PINs files...
('Generate Qstring in :', 'D:\\OpenART\\bsp\\imxrt')
('QString Hash Size :', 2)
('Generate QString count:', 4165)
scons: done reading SConscript files.
scons: Building targets ...
scons: building associated VariantDir targets: build
CC build\applications\main.o
arm-none-eabi-gcc: error: __START=entry: No such file or directory
scons: *** [build\applications\main.o] Error 1
scons: building terminated because of errors.

After I changed the #14 line of the file bsp\imxrt\imxrt1064-seekfree-art-mini\applications\SConscript from LOCAL_CCFLAGS = ' -std=c99 __START=entry' to LOCAL_CCFLAGS = ' -std=c99 -D__START=entry', It starts to compile for a while and then stoped with another error

...
CC build\kernel\src\thread.o
CC build\kernel\src\timer.o
CC build\xip\fire_imxrt1052_sdram_ini_dcd.o
<command-line>:0:52: error: token "=" is not valid in preprocessor expressions
xip\fire_imxrt1052_sdram_ini_dcd.c:36:41: note: in expansion of macro 'XIP_BOOT_HEADER_ENABLE'
 #if defined(XIP_BOOT_HEADER_ENABLE) && (XIP_BOOT_HEADER_ENABLE == 1)
                                         ^
scons: *** [build\xip\fire_imxrt1052_sdram_ini_dcd.o] Error 1
scons: building terminated because of errors.

I could not figure out what to do to fix the issue, so I tried to witch to Keil MDK 5.3.6 to compile the project, and failed again

...
compiling py_image.c...
compiling zbar.c...
compiling fast.c...
linking...
.\build\keil\Obj\rtthread.axf: Error: L6218E: Undefined symbol std::__1::__vector_base_common<true>::__throw_length_error() const (referred from cx_slice.o).
.\build\keil\Obj\rtthread.axf: Error: L6218E: Undefined symbol std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) (referred from cx_slice.o).
.\build\keil\Obj\rtthread.axf: Error: L6218E: Undefined symbol std::__1::ios_base::Init::Init() (referred from kernel_util.o).
.\build\keil\Obj\rtthread.axf: Error: L6218E: Undefined symbol std::__1::ios_base::Init::~Init() (referred from kernel_util.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 4 error messages.
".\build\keil\Obj\rtthread.axf" - 4 Error(s), 10 Warning(s).
Target not created.

I'm quite a noob on these stuffs, so did I miss something, or is there a way to find a detailed compilation guide?

Hello

Currently gcc toolchain not supported yet., Please use MDK 5.33 to compile the project.
MDK 5.3.6 has link error, because the libtf.lib was implemented by cpp. v5.3.3 cpp compiler not compatible with v5.3.6
you need to link "libtf_V5.36.lib(bsp\imxrt\components\openmv-nxp\libtf\cortex-m7)".

BR