请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TDA4VH-Q1 工具与软件:
您好!
我们目前正在使用 TI-ARM-CLANG 编译器(版本3.2.0) 源文件。
但是、我们遇到了一个问题、即编译时编译器会崩溃 Armv7-r Thumb 模式 .
我们感谢您为帮助我们解决此问题而提供的任何指导或解决方案。
感谢您的支持!
编译器标志
set(HWECU_COMPILER_DRIVER "\
-mcpu=Cortex-R5\
-march=armv7-r\
-mthumb\
-mlittle-endian\
-mfloat-abi=hard\
-mfpu=vfpv3-d16\
-mno-unaligned-access\
-gdwarf-3\
-O1\
"
)
set(CMAKE_C_FLAGS "\
${HWECU_COMPILER_DRIVER}\
${HWECU_COMPILER_VERBOSE_OPTIONS}\
-std=gnu99\
"
)
set(CMAKE_ASM_FLAGS "\
${HWECU_COMPILER_DRIVER}\
${HWECU_COMPILER_VERBOSE_OPTIONS}\
-x assembler-with-cpp\
"
)
LLVM 崩溃转储
PLEASE submit a bug report to github.com/.../ and include the crash backtrace, preprocessed source, and associated run script. Stack dump: 0. Program arguments: .\\T2P_Tools\\ti-arm-clang\\3.2.0\\bin\\tiarmclang.exe @C:\\Users\\userName\\AppData\\Local\\ccache/tmp/cmd_args.tmp.j0NncJ.tmp 1. <eof> parser at end of file 2. Code generation 3. Running pass 'Function Pass Manager' on module '../../././././././{fileName}.c'. 4. Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on function '@{functionName}' Exception Code: 0xC0000005 0x00007FF77A8AC03C, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x142C03C byte(s) 0x00007FF77BA0272E, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x258272E byte(s) 0x00007FF77BBEAA6F, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x276AA6F byte(s) 0x00007FF77BBEB7F5, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x276B7F5 byte(s) 0x00007FF77BBEBF04, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x276BF04 byte(s) 0x00007FF77BBEBB43, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x276BB43 byte(s) 0x00007FF77BBEB918, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x276B918 byte(s) 0x00007FF77A9E51C0, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x15651C0 byte(s) 0x00007FF779C0341E, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x78341E byte(s) 0x00007FF77967217F, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x1F217F byte(s) 0x00007FF779677E43, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x1F7E43 byte(s) 0x00007FF779672780, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x1F2780 byte(s) 0x00007FF77A310DFB, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0xE90DFB byte(s) 0x00007FF77A6F3FF9, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x1273FF9 byte(s) 0x00007FF77B76CC21, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x22ECC21 byte(s) 0x00007FF77A653962, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x11D3962 byte(s) 0x00007FF779ACC68D, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x64C68D byte(s) 0x00007FF779B671B8, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x6E71B8 byte(s) 0x00007FF77948787E, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x787E byte(s) 0x00007FF7794843A4, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x43A4 byte(s) 0x00007FF77A3F0CF6, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0xF70CF6 byte(s) 0x00007FF779949ADF, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x4C9ADF byte(s) 0x00007FF77A3F09EE, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0xF709EE byte(s) 0x00007FF779A85239, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x605239 byte(s) 0x00007FF779A858BD, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x6058BD byte(s) 0x00007FF779AA26CB, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x6226CB byte(s) 0x00007FF779483D0A, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x3D0A byte(s) 0x00007FF77CB92C88, .\T2P_Tools\ti-arm-clang\3.2.0\bin\tiarmclang.exe(0x00007FF779480000) + 0x3712C88 byte(s) 0x00007FFD8C087374, C:\WINDOWS\System32\KERNEL32.DLL(0x00007FFD8C070000) + 0x17374 byte(s), BaseThreadInitThunk() + 0x14 byte(s) 0x00007FFD8C4BCC91, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFD8C470000) + 0x4CC91 byte(s), RtlUserThreadStart() + 0x21 byte(s) tiarmclang: error: clang frontend command failed due to signal (use -v to see invocation) TI Arm Clang Compiler 3.2.0.LTS Target: arm-ti-none-eabi Thread model: posix InstalledDir: .\T2P_Tools\ti-arm-clang\3.2.0\bin tiarmclang: note: diagnostic msg: ******************** PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT: Preprocessed source(s) and associated run script(s) are located at: tiarmclang: note: diagnostic msg: C:\Users\x\AppData\Local\Temp\{fileName}-ce5b9a.c tiarmclang: note: diagnostic msg: C:\Users\x\AppData\Local\Temp\{fileName}-ce5b9a.sh tiarmclang: note: diagnostic msg: ********************
此致、
Ali Mohamed