Other Parts Discussed in Thread: C2000WARE
C2000 Team,
I am working with the F021 Flash APIs on F28377S and seeing some weird behavior. I wrote a simple test program that just puts a few words of data into SectorO (flash bank 1). I basically copied pieces from the C2000Ware example. I have run the code from RAM, and also run from Flash Bank0. It makes no difference.
I have a const dummy value that I stuff into the first word in SectorO using a DATA_SECTION pragma in the code (the dummy value is never actually accessed in the code). I can then use a couple of breakpoints in CCS to watch the program erase the sector, and then program my new data into SectorO. Everything works. But, if I comment out the dummy value in the code (or alternately, reset the device in CCS after CCS programs the dummy value), the code no longer works. The erase doesn't happen (the values from the previous successful run of the code stay in the flash), and the programming of the new data doesn't happen. The Fapi's return success. The operations just aren't happening.
Any thoughts on what's going on? I get the feeling I don't have something initialized right, but I do not know what.
Thanks and regards,
David