This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2634-Q1: SDK compilation error with disabled DebugP_xxx

Part Number: AM2634-Q1
Other Parts Discussed in Thread: SYSCONFIG

Hello,

Using sysconfig_1.27.0.

Following suggestion in here https://software-dl.ti.com/mcu-plus-sdk/esd/AM263X/latest/exports/docs/api_guide_am263x/OPTIMIZING_APPLICATIONS_WITH_MCU_SDK.html#CHAPTER_OPTIMIZATION_SECTION_5 and setting DebugP_ASSERT_ENABLED=0 or DebugP_LOG_ENABLED=0 generates compile errors with default SDK otions accros multiple files.

For instance,

Arm Compiler - building file: "syscfg/ti_drivers_open_close.c"
"C:/ti/ti_cgt_arm_llvm_4.0.4.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -mthumb -Os -I"C:/ti/ti_cgt_arm_llvm_4.0.4.LTS/include/c" -I"C:/ti/mcu_plus_sdk_am263x_26_00_00_06/source" -DSOC_AM263X -DOS_NORTOS -DDebugP_ASSERT_ENABLED=0 -g -Wall -Werror -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_drivers_open_close.d_raw" -MT"syscfg/ti_drivers_open_close.o" -I"C:/Users/workspace_ccstheia/mcspi_loopback_interrupt_lld/Release/syscfg"   -o"syscfg/ti_drivers_open_close.o" "syscfg/ti_drivers_open_close.c"
[2]syscfg/ti_drivers_open_close.c:70:13: error: variable 'status' set but not used [-Werror,-Wunused-but-set-variable]
   70 |     int32_t status = MCSPI_STATUS_SUCCESS;
      |             ^
[3]syscfg/ti_drivers_open_close.c:86:13: error: variable 'status' set but not used [-Werror,-Wunused-but-set-variable]
   86 |     int32_t status = MCSPI_STATUS_SUCCESS;
      |             ^
2 errors generated.

Regards,

Eugene