From 9d61f6f097007419a751bb9120b25cac11fc18b6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 1 Sep 2026 14:21:52 +0000 Subject: [PATCH 1/2] Initial plan From 7062d3e99c2aa0cbc840e3094fa6c108730a8a18 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 1 Sep 2026 14:23:00 +0000 Subject: [PATCH 2/2] Fix __PROGRAM_START for TI Arm Clang (tiarmclang) Co-authored-by: JonatanAntoni <25795816+JonatanAntoni@users.noreply.github.com> --- CMSIS/Core/Include/m-profile/cmsis_clang_m.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMSIS/Core/Include/m-profile/cmsis_clang_m.h b/CMSIS/Core/Include/m-profile/cmsis_clang_m.h index 221edeee0..5a749e4f3 100644 --- a/CMSIS/Core/Include/m-profile/cmsis_clang_m.h +++ b/CMSIS/Core/Include/m-profile/cmsis_clang_m.h @@ -43,8 +43,12 @@ /* ######################### Startup and Lowlevel Init ######################## */ #ifndef __PROGRAM_START +#if defined (__ti__) +#define __PROGRAM_START _c_int00 +#else #define __PROGRAM_START _start #endif +#endif #ifndef __INITIAL_SP #define __INITIAL_SP __stack