#include "platform_abstraction.h" int main(void) { PlatformUartInit(); for(int coreId = 2; coreId < 20; coreId++) { if(PlatformCoreLoad(static_cast(coreId))) PlatformUartPrintf("Ok\r\n"); else PlatformUartPrintf("Bad\r\n"); } while(true) ; } /opt/ti-cgt-armllvm_4.0.0.LTS/bin/tiarmclang -c -std=c++14 -Wall -Wextra -Werror -mfloat-abi=hard -mfpu=vfpv3-d16 -mcpu=cortex-r5 -march=armv7-r -isystem /opt/ti-cgt-armllvm_4.0.0.LTS/include -O1 -g main.cpp -o main.o Disassembly of main.o: TEXT Section .text.main, 0x44 bytes at 0x00000000 000000: main: 000000: .arm 000000: : 000000: FEFFFFEB BL _Z16PlatformUartInitv [0x0] 000004: 005000E3 MOVW R5, #0 000008: 006000E3 MOVW R6, #0 00000c: 005040E3 MOVT R5, #0 000010: 006040E3 MOVT R6, #0 000014: 0240A0E3 MOV R4, #2 000018: 00F020E3 MSR CPSR_, #0 00001c: 00F020E3 MSR CPSR_, #0 000020: 7400EFE6 UXTB R0, R4, ROR #0 000024: FEFFFFEB BL _Z16PlatformCoreLoad24t_CoreId [0x24] 000028: 0610A0E1 MOV R1, R6 00002c: 000050E3 CMP R0, #0 000030: 0510A011 MOVNE R1, R5 000034: 0100A0E1 MOV R0, R1 000038: FEFFFFEB BL bsp_printf [0x38] 00003c: 014084E2 ADD R4, R4, #1 000040: F6FFFFEA B 0x00000020 ; Infinite loop forever beyond the bounds of the loop that should be up to < 20