TMS320F28377D-EP: Serial Flash Programmer: Does it erase all sectors or only necessary sectors?

Part Number: TMS320F28377D-EP

Hello,

I am using the TMS320F28377 and attempting to load software via Serial Boot Mode using the Serial Flash Programmer. My goal is to preserve the data stored in Flash Sector M.

During testing, I observed a specific behavior:

After storing data in Sector M and re-programming the device in Serial Boot Mode, the data in Sector M remained intact (not erased). I previously assumed the Serial Flash Programmer would erase all sectors by default before programming.

I have two questions regarding this:

Selective Erase Function: Does the Serial Flash Programmer have a feature that automatically selects and erases only the sectors being programmed, similar to the "On-chip Flash" tool used in JTAG programming?

Best Practice for Sector Preservation: In this scenario, is it safe to rely on the current behavior (not modifying the source code and assuming Sector M won't be erased)? Or is it highly recommended to explicitly implement a function in the source code or kernel to skip the erasure of Sector M?

I would appreciate your guidance on the standard operation of the Serial Flash Programmer.

Thank you.