Tool/software:
Hello,
In the simple_peripheral_CC26X2R1_LAUNCHXL_tirtos7_ticlang exemple of the latest SDK we have the following task declaration
// Task configuration Task_Struct spTask; #if defined __TI_COMPILER_VERSION__ #pragma DATA_ALIGN(spTaskStack, 8) #else #pragma data_alignment=8 #endif uint8_t spTaskStack[SP_TASK_STACK_SIZE];
If we activate all the compiler warning (-Wall) we get "Description Resource Path Location Type
unknown pragma ignored [-Wunknown-pragmas] simple_peripheral.c /simple_peripheral_CC26X2R1_LAUNCHXL_tirtos7_ticlang/Application line 257 C/C++ Problem"
So the question is :
- With the new TiRTOS7 and Tiarmclang environment do we still need to have the 8 byte data alignment on the stack ? (I could not find any recommendation in the doc...)
- If yes why don't you use the clang "__attribute__ ((aligned (8)))" version ? Or should we use it ?
Thanks for your help.