Tool/software:
Hi,
While using TI-ARM-LLVM generated out file with VS Code and OpenOCD, fw fails to step over in some firmwares. This is happening when optimization level is enabled. Attaching the compiler test case.
****************************************************************************** TI ARM Clang Linker PC v3.2.2 ****************************************************************************** >> Linked Thu Aug 7 11:33:21 2025 OUTPUT FILE NAME: <empty_LP_EM_CC2340R53_freertos_ticlang.out>
**** Build of configuration Debug for project empty_LP_EM_CC2340R53_freertos_ticlang **** "C:\\ti\\ccs1271\\ccs\\utils\\bin\\gmake" -k -j 8 all -O Building file: "../empty.syscfg" Invoking: SysConfig "C:/ti/sysconfig_1.23.2/sysconfig_cli.bat" --script "C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/empty.syscfg" -o "syscfg" -s "C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/.metadata/product.json" --compiler ticlang Running script... Validating... Generating Code (empty.syscfg)... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_devices_config.c... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_drivers_config.c... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_drivers_config.h... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_utils_build_linker.cmd.genlibs... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_utils_build_linker.cmd.genmap... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_utils_build_compiler.opt... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\syscfg_c.rov.xs... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\FreeRTOSConfig.h... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_freertos_config.c... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_freertos_portable_config.c... Finished building: "../empty.syscfg" Building file: "../empty.c" Invoking: Arm Compiler "C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/kernel/freertos" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/ti/posix/ticlang" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/include" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/portable/GCC/ARM_CM0" -gdwarf-3 -MMD -MP -MF"empty.d_raw" -MT"empty.o" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/syscfg" @"syscfg/ti_utils_build_compiler.opt" -o"empty.o" "../empty.c" Finished building: "../empty.c" Building file: "syscfg/ti_devices_config.c" Invoking: Arm Compiler "C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/kernel/freertos" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/ti/posix/ticlang" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/include" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/portable/GCC/ARM_CM0" -gdwarf-3 -MMD -MP -MF"syscfg/ti_devices_config.d_raw" -MT"syscfg/ti_devices_config.o" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/syscfg" @"syscfg/ti_utils_build_compiler.opt" -o"syscfg/ti_devices_config.o" "syscfg/ti_devices_config.c" Finished building: "syscfg/ti_devices_config.c" Building file: "syscfg/ti_drivers_config.c" Invoking: Arm Compiler "C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/kernel/freertos" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/ti/posix/ticlang" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/include" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/portable/GCC/ARM_CM0" -gdwarf-3 -MMD -MP -MF"syscfg/ti_drivers_config.d_raw" -MT"syscfg/ti_drivers_config.o" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/syscfg" @"syscfg/ti_utils_build_compiler.opt" -o"syscfg/ti_drivers_config.o" "syscfg/ti_drivers_config.c" Finished building: "syscfg/ti_drivers_config.c" Building file: "syscfg/ti_freertos_config.c" Invoking: Arm Compiler "C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/kernel/freertos" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/ti/posix/ticlang" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/include" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/portable/GCC/ARM_CM0" -gdwarf-3 -MMD -MP -MF"syscfg/ti_freertos_config.d_raw" -MT"syscfg/ti_freertos_config.o" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/syscfg" @"syscfg/ti_utils_build_compiler.opt" -o"syscfg/ti_freertos_config.o" "syscfg/ti_freertos_config.c" Finished building: "syscfg/ti_freertos_config.c" Building file: "syscfg/ti_freertos_portable_config.c" Invoking: Arm Compiler "C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/kernel/freertos" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/ti/posix/ticlang" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/include" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/portable/GCC/ARM_CM0" -gdwarf-3 -MMD -MP -MF"syscfg/ti_freertos_portable_config.d_raw" -MT"syscfg/ti_freertos_portable_config.o" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/syscfg" @"syscfg/ti_utils_build_compiler.opt" -o"syscfg/ti_freertos_portable_config.o" "syscfg/ti_freertos_portable_config.c" Finished building: "syscfg/ti_freertos_portable_config.c" Building file: "../main_freertos.c" Invoking: Arm Compiler "C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/kernel/freertos" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/ti/posix/ticlang" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/include" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/portable/GCC/ARM_CM0" -gdwarf-3 -MMD -MP -MF"main_freertos.d_raw" -MT"main_freertos.o" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/syscfg" @"syscfg/ti_utils_build_compiler.opt" -o"main_freertos.o" "../main_freertos.c" Finished building: "../main_freertos.c" Building target: "empty_LP_EM_CC2340R53_freertos_ticlang.out" Invoking: Arm Linker "C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -gdwarf-3 -Wl,-m"empty_LP_EM_CC2340R53_freertos_ticlang.map" -Wl,-i"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source" -Wl,-i"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/syscfg" -Wl,-i"C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/lib" -Wl,--diag_wrap=off -Wl,--display_error_number -Wl,--warn_sections -Wl,--xml_link_info="empty_LP_EM_CC2340R53_freertos_ticlang_linkInfo.xml" -Wl,--rom_model -o "empty_LP_EM_CC2340R53_freertos_ticlang.out" "./empty.o" "./syscfg/ti_devices_config.o" "./syscfg/ti_drivers_config.o" "./syscfg/ti_freertos_config.o" "./syscfg/ti_freertos_portable_config.o" "./main_freertos.o" "../lpf3_freertos.cmd" -Wl,-lti_utils_build_linker.cmd.genlibs -Wl,-llibc.a Finished building target: "empty_LP_EM_CC2340R53_freertos_ticlang.out" "C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/tools/common/crc_tool/crc_tool" patch-image --elf "C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/empty_LP_EM_CC2340R53_freertos_ticlang.out" --symbol-prefix ti_utils_build_GenMap_sym_CRC --output "C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/empty_LP_EM_CC2340R53_freertos_ticlang.out" "C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmobjcopy" -O ihex "C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/empty_LP_EM_CC2340R53_freertos_ticlang.out" "C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/empty_LP_EM_CC2340R53_freertos_ticlang.hex" INFO:root:Iterating symbols, looking for prefix: ti_utils_build_GenMap_sym_CRC INFO:root:Inserting CRC section for variable pair with stem: ti_utils_build_GenMap_sym_CRC_CCFG_BOOT_CFG = (0x4e020000, 0x4e02000b) INFO:root:Updating CRC32 field @ address 0x4e02000c, based on data in the range [0x4e020000, 0x4e02000b]. Value changes from 0x00000000 to 0xffffffff INFO:root:Inserting CRC section for variable pair with stem: ti_utils_build_GenMap_sym_CRC_CCFG = (0x4e020010, 0x4e02074b) INFO:root:Updating CRC32 field @ address 0x4e02074c, based on data in the range [0x4e020010, 0x4e02074b]. Value changes from 0x00000000 to 0xb714dfb7 INFO:root:Inserting CRC section for variable pair with stem: ti_utils_build_GenMap_sym_CRC_CCFG_DEBUG = (0x4e0207d0, 0x4e0207fb) INFO:root:Updating CRC32 field @ address 0x4e0207fc, based on data in the range [0x4e0207d0, 0x4e0207fb]. Value changes from 0x00000000 to 0x527294a2 INFO:root:Writing patched ELF file to C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/empty_LP_EM_CC2340R53_freertos_ticlang.out **** Build Finished ****
**** Build of configuration Debug for project empty_LP_EM_CC2340R53_freertos_ticlang **** "C:\\ti\\ccs1271\\ccs\\utils\\bin\\gmake" -k -j 8 main_freertos.o -O Building file: "../empty.syscfg" Invoking: SysConfig "C:/ti/sysconfig_1.23.2/sysconfig_cli.bat" --script "C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/empty.syscfg" -o "syscfg" -s "C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/.metadata/product.json" --compiler ticlang Running script... Validating... Generating Code (empty.syscfg)... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_devices_config.c... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_drivers_config.c... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_drivers_config.h... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_utils_build_linker.cmd.genlibs... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_utils_build_linker.cmd.genmap... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_utils_build_compiler.opt... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\syscfg_c.rov.xs... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\FreeRTOSConfig.h... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_freertos_config.c... Writing C:\Users\a0496557\workspace_v12\empty_LP_EM_CC2340R53_freertos_ticlang\Debug\syscfg\ti_freertos_portable_config.c... Finished building: "../empty.syscfg" Building file: "../main_freertos.c" Invoking: Arm Compiler "C:/ti/ccs1271/ccs/tools/compiler/ti-cgt-armllvm_3.2.2.LTS/bin/tiarmclang.exe" -c -march=thumbv6m -mcpu=cortex-m0plus -mfloat-abi=soft -mlittle-endian -mthumb -Oz -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang" -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/kernel/freertos" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/ti/posix/ticlang" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/include" -I"C:/ti/simplelink_lowpower_f3_sdk_9_11_00_18/source/third_party/freertos/portable/GCC/ARM_CM0" -gdwarf-3 -C -E -I"C:/Users/a0496557/workspace_v12/empty_LP_EM_CC2340R53_freertos_ticlang/Debug/syscfg" @"syscfg/ti_utils_build_compiler.opt" -o"main_freertos.o" "../main_freertos.c" Finished building: "../main_freertos.c" **** Build Finished ****