I am executing a program from RAM in the C28x. To debug it, I use the fprintf function which now works properly (after taking into account things said in  ). When I launch, connect and load the program on the target it does what it is expected to do. The problem appears when I apply a CPU reset to re-run the program. Since C28x must boot from RAM, I have a program in FLASH for the M3 to make it boot there so I have to connect and apply a CPU reset there too. This is fine, I have checked that the C28x go to the main function correctly. However, when it gets to the function fprintf, the second time since I first launched the target because this is after the reset, this message appears in the console:
). When I launch, connect and load the program on the target it does what it is expected to do. The problem appears when I apply a CPU reset to re-run the program. Since C28x must boot from RAM, I have a program in FLASH for the M3 to make it boot there so I have to connect and apply a CPU reset there too. This is fine, I have checked that the C28x go to the main function correctly. However, when it gets to the function fprintf, the second time since I first launched the target because this is after the reset, this message appears in the console:
[C28xx_0] Write error: Invalid File ID (3) in CIO message!
I do not understand why fprintf stop working after the reset. I have tried using fflush thinking that, since I applied the reset in any moment, there could be a problem with the buffer but it did not help. I also specified where the .cio section must be allocated in the cmd file because when I did not do this, it was placed in a space in RAM M0 reserved for the boot rom stack. This neither helped out.
I know this is not a real problem for the application development since I can terminate the debugger and relaunch it (and it will work fine, the first time) but I would like to know why this is hapenning. Could it be related to the fact that I am loading the program in RAM memory? I am not sure if I understand what happens after the CPU reset that I click within the debug view toolbar.
I am using Code Composer Studio v7.4.
Thanks in advance.
 
				 
		 
					 
                           
				