Part Number: TMS320F28379S
Other Parts Discussed in Thread: SYSCONFIG, UNIFLASH
Tool/software:
I'm working on the TMS320F28379S and trying to implement read protection using DCSM. However, after enabling DCSM, my application code is no longer running from flash after a reset or power cycle.
Steps Taken:
1.I used the DCSM example SysConfig file to:
a)Set passwords.
b)Secure Flash Sectors C, D, E, and F under Zone 1.(Secure by this zone)
c)Uploaded the configuration to the controller using uniflash.

2.Then I followed this process:
a)Opened Run → Debug Configurations → Target → Flash Settings in CCS.
b)Entered the password, clicked Apply, and started a debug session.
c)The flash was erased, code was uploaded, and the application ran correctly when I clicked "Play".
d)However, after a power cycle or pressing the reset button, the code does not run.
e)I've also tested this by using Uniflash. Where I unlock the controller 1st with password then uploaded the code.
3.Later, I modified the SysConfig file again to set the Flash sectors to ExeOnly mode(Secure by this zone (EXEONLY) ), updated the Z1 Link Pointer, and flashed the new configuration. Then tried step 2.


Observations:
1.After initial unlock (without reset), uploading the application via CCS works fine.
2.But after a power cycle or reset, it doesn't run.
3.Using UniFlash, I unlocked with the correct password and flashed the application. It gets uploaded successfully, but again, it doesn't execute post-upload or after a reset.


Goal:
I want to implement read protection to:
1.Prevent code readouts.
2.Allow code uploading only after unlocking.
3.Ensure that after flashing and reset, the application code runs securely from flash.
Before implementing DCSM:
1.Everything was working fine.
2.Code ran correctly from flash.
3.BMODE and BMSP settings were verified and correct.
Request:
Could someone please, Review my implementation approach , Suggest any corrections and Help me resolve the issue of the application not running from flash after reset when DCSM is enabled.






