Other Parts Discussed in Thread: TMS320F28027
Hello,
I know there is likely a simple answer, but I have been unable to find it. I've gone through most of the TMS320F2802x datasheet (sprs523), as well as searched for forums.
I have a LauchXL-F28027F, and it came with a default little demo program.
I wrote a simple little example, loaded it, and it ran. When I power cycle the board, it goes back to the original demo. Hmmm... ?
I then imported a sample from the resource explorer, and built and ran it. Now it erased the built in demo program. But it does run. Only now when I power cycle the board, it's dead (well, unprogrammed). I have to reprogram it with CCS every time.
I looked at the map file, and it shows all the code in flash sectors D and C, as I would expect. And it shows the reset vector where it should be (3FFFC0-C2), but says it's unused. I would expect that on power up, it would load the program counter from the reset vector, which should point to the entry point in Flash, section D (or where ever) and the board would run WITHOUT having to reload the code every time.
My questions:
What setting during loading, debug process from inside CCS 6.2 which caused it to erase the demo program?
Where was the demo program anyway? Obviously is should have been in Flash memory to be persistent. But I wonder why did my first test program NOT erase the demo program.
The MAP file shows the reset vector as "unused" (actually, length =2, used = 0. unused = 2). Do I have to manually set that? How do I set it, and how do I figure out where the compile set the entry point of the program?
Why doesn't any program I write simply replace the code in Flash and run when the board is first powered up?
I don't see a need to post my code, because it is essentially "task 28" from the Piccolo Experimenters kit in the resource explorer.
Thanks in advance.
-CSW