Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 216195

Forum Post: RE: TMS320F28335 Will not Program in Flash

$
0
0

Hi,

[quote]

From your screen shot, the CSM module on your device appears to be locked.  There are two possibilities here that could do this.  First, you may have inadventently programmed the CSM passwords in the flash, perhaps by some erroneously linked code.  If you've done that and you don't know what the passwords are (which I'm sure you don't or you wouldn't be asking for help on this forum), you are stuck.  The CSM cannot be unlocked unless you know the passwords.  All you can do is replace the device on your board.

The second possibility is that the passwords in flash are not programmed (they are still 0xFFFF), but the code you have in flash is setting the FORCESEC bit in the CSMSCR register (see F280x Sys Ctrl User's Guide, SPRU712G, p.33).  In this case, you want to keep your code from running.  Temporarily rig the bootmode pins on your board so that the device does NOT use jump-to-flash mode.  Pick some other mode, say SCI-A boot (this is the easiest since only one pin is different from jump-to-flash mode.  See device datasheet SPRS230n, p.35).  After jumpering the bootmode, power-cycle the device and then you should be able to connect with CCS.  Once connected, you can use CCS to erase the flash and get rid of the problematic code.  You then need to find the problem in your code or this will keep happening.

Personally, my money would be on the CSM passwords being programmed in flash (my first possibility above).  It is pretty unlikely that your code is accidentally writing to the FORCESEC bit.  I suppose you never know.  I'd be curious - post back here and tell us what you find.[/quote]

Regards,

Gautam


Viewing all articles
Browse latest Browse all 216195

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>