Hello,
I am getting an ERROR 23: MCU device init error when trying to read or program a TMS320F28234 with a C2000 Gang Programmer.
First, I am able to program the device with the gang programmer with passwords written to the password locations and am successfully unlocking the CSM, writing to flash, and relocking the CSM during code execution. I am monitoring the STATUS_SUCCESS flags of the Example_CallFlashAPI routines to verify success.
I get the ERROR 23 when I reconnect the programmer to my device and try to read the memory contents. However, I am able to reprogram the device. This problem is very inconsistent. Sometimes I can read the memory contents 1 time and it fails the second time sometimes it fails the first attempt and never works until I close the programmer software and cycle power on the target.
I am using the interactive mode of the programmer and I have selected secure device from code.
I am calling csmpasswds and csm_rsvd in DSP2833x_CSMPasswords.asm to set my passwords. I call these functions from main.c.
I use CsmUnlock in DSP2833x_SysCtrl.c to perform dummy reads and set the key values and unlock,