Other Parts Discussed in Thread: C2000WARE
Hi champs,
I ask this for our customer.
Customer's CCS version is 10.2.0, compiler version is TI v20.2.5.LTS. Debugger tool is: Blackhawk xds200
Customer is currently running the code in C2000WARE (C2000Ware_3_04_00_00\device_support\f2837xd\examples\cpu1\cla_matrix_transpose), which can work normally when running directly. After the customer adds HILTestAsynchronousMotor_initialize() in main, the build can pass, but error message will appear in debug. The HILTestAsynchronousMotor_initialize() function is generated by MATLAB and added in the end of main(). The include path is added and build passed.
The Console window displays as follows:
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed.
C28xx_CPU1: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
C28xx_CPU2: GEL Output:
Memory Map Initialization Complete
C28xx_CPU2: If erase/program (E/P) operation is being done on one core, the other core should not execute from shared-RAM (SR) as they are used for the E/P code. Also, CPU1 will be halted to determine SR ownership for the CPU which will run the Flash Plugin code, after which CPU1 will be set to run its application. User code execution from SR could commence after both flash banks are programmed.
C28xx_CPU2: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
C28xx_CPU2: Trouble Removing Breakpoint with the Action "Finish Auto Run" at 0x1bd16: (Error -1066 @ 0x1BD16) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 9.3.0.00042)
About "Finish Auto Run" error, Customer's Debugger Options setting is:

The HILTestAsynchronousMotor_initialize() function is:
void HILTestAsynchronousMotor_initialize(void)
{
/* Registration code */
/* states (dwork) */
(void) memset((void *)&HILTestAsynchronousMotor_DW, 0,
sizeof(DW_HILTestAsynchronousMotor_T));
/* external inputs */
(void)memset(&HILTestAsynchronousMotor_U, 0, sizeof
(ExtU_HILTestAsynchronousMotor_T));
/* external outputs */
(void) memset((void *)&HILTestAsynchronousMotor_Y, 0,
sizeof(ExtY_HILTestAsynchronousMotor_T));
}
And customer's project is only debug in CPU1 only, why CPU2 will report this issue?

Could you please help analyze why this error occurs after adding a function in main()? Thanks!
Best,
Julia