Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hello,
I am using the TMS320F28388D controller and trying to perform the below operation, basically, I am programming to identify if a certain application will use 2 Cores or 1 Core (CPU) of the controller.
So if a program does not use CPU2, I will not be loading my Boot Loader into it so it will be a Single Core application.
The code works perfectly fine when connected to CCS debug mode and enables to use of only single-core, but when disconnected from CCS it does not work as expected, what is that I can do in CCS debug mode to expect the same behavior in CCS debug mode when it's not connected mode
My code is as below in CPU1 and CPU2:
if( CPUID_1 == gu16CpuId ) { Device_bootCPU2(BOOTMODE_BOOT_TO_FLASH_SECTOR0); }
if(CPUID_2 == gu16CpuId) { guniIpcRegs.gstrCpu2IpcRegs.CPU2TOCPU1IPCSET.bit.IPC16 = BIT_SET; }
if( CPUID_1 == gu16CpuId ) { while(!guniIpcRegs.gstrCpu1IpcRegs.CPU2TOCPU1IPCSTS.bit.IPC16){ if(counter_exit > 0) { //counter_exit = 1000 counter_exit = counter_exit - 1; } else{ break; } } if(guniIpcRegs.gstrCpu1IpcRegs.CPU2TOCPU1IPCSTS.bit.IPC16){ gu16ApplicationType = DUAL_CORE; } else{ gu16ApplicationType = SINGLE_CORE; } }
thanks,
Nagesh