Исправил запуск CPU2

This commit is contained in:
seklyuts 2024-05-22 11:38:21 +03:00
parent 338f4f51be
commit 0238bb6a93
7 changed files with 173612 additions and 173593 deletions

View File

@ -25,6 +25,7 @@
<stringAttribute key="com.ti.ccstudio.debug.debugModel.ATTR_PROJECT.TMS320F28388D.ccxml.Texas Instruments XDS2xx USB Debug Probe_0/C28xx_CPU1" value="EFC_Application"/>
<stringAttribute key="com.ti.ccstudio.debug.debugModel.ATTR_TARGET_CONFIG" value="${workspace_loc:/EFC_Application/TargetConfigs/TMS320F28388D.ccxml}"/>
<stringAttribute key="com.ti.ccstudio.debug.debugModel.MRU_PROGRAM.TMS320F28388D.ccxml.Texas Instruments XDS2xx USB Debug Probe_0/C28xx_CPU1" value="${build_artifact:EFC_Application}"/>
<stringAttribute key="com.ti.ccstudio.debug.debugModel.MRU_PROGRAM.TMS320F28388D.ccxml.Texas Instruments XDS2xx USB Debug Probe_0/C28xx_CPU2" value="D:\MotorControlModuleSDFM_TMS320F28388D\MotorControlModuleSDFM_TMS320F28388D\Projects\epwm_test_biss_c_cpu2\CPU2_FLASH\epwm_test_biss_c_cpu2.out"/>
<stringAttribute key="com.ti.ccstudio.debug.debugModel.MRU_PROGRAM.TMS320F2838x USB200.ccxml.Texas Instruments XDS2xx USB Debug Probe_0/C28xx_CPU1" value="${workspace_loc:/EFC_Application/Debug CPU1/EFC_Application.out}"/>
<stringAttribute key="com.ti.ccstudio.debug.debugModel.MRU_PROGRAM.TMS320F2838x USB200.ccxml.Texas Instruments XDS2xx USB Debug Probe_0/C28xx_CPU2" value="D:\git\MotorControlModuleSDFM_TMS320F28388D\Projects\epwm_test\CPU2_FLASH\epwm_test_biss_c_cpu1.out"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -104,8 +104,16 @@ void InitMotor(void)
//
// Bring CPU2 out of reset. Wait for CPU2 to go out of reset.
//
SysCtl_controlCPU2Reset(SYSCTL_CORE_DEACTIVE);
while(SysCtl_isCPU2Reset() == 0x1U);
//SysCtl_controlCPU2Reset(SYSCTL_CORE_DEACTIVE);
//while(SysCtl_isCPU2Reset() == 0x1U);
Cpu1toCpu2IpcRegs.CPU1TOCPU2IPCBOOTMODE = 0x5A00C803; //str 716
Cpu1toCpu2IpcRegs.CPU1TOCPU2IPCSET.bit.IPC0 = 1;
EALLOW;
DevCfgRegs.CPU2RESCTL.all = 0xA5A50000;
EDIS;
while(DevCfgRegs.RSTSTAT.bit.CPU2RES == 0);
}