TI E2E Community
Hercules™ Safety Microcontrollers
Hercules™ Safety Microcontrollers Forum
F021 API Questions
Hello, I'm interfacing the F021 library to progam the TMS570LSxxx5 family and I have some questions:
This function returns information about the bank starting address, number of sectors, sector sizes, andbank technology type. The information is returned in a struct Fapi_FlashBankSectorsType. The membersare as follows:• oFlashBankTech – Indicates if bank is an FLEP, FLEE or FLES bank type• u32NumberOfSectors – Indicates the number of sectors in the bank• u32BankStartAddress – Starting address of the bank• au8SectorSizes – An array of sectors sizes for each sector in the bank
a- What mean FLEP, FLEE and FLES?b- au8SectorSizes does not contain the sector size value. For example on Bank0 the first value is au8SectorSizes=16 and the last au8SectorSizes=64 could you explain me why?
The supplied starting address to program at plus the data buffer length cannot exceed the bank data width. (Ex.Programming 14 bytes on a 16 byte wide bank starting at address 0x4 is not allowed.)
a- Where can I found the bank data width information?b- Can I program the same bank two time or I need to perform an erase before?
a) These are the different types of bank technology we have in F021 devices. Currently, all released TMS570LSx1xxx devices have only have FLEP type banks.
b) This is an oversight on my part. I need to include the following table in the API documentation:
a) The bank size information is available in the F021 Flash Module chapter of the device's Technical Reference Manual.
b) You may program a bank multiple times before erasing. If programming the same location more than once before an erase, you can only program bits with a 1 value to 0. If you try to program a 1 into a bit that is 0, the the programming operation will fail.
MCU Safety & Security Software
If my reply answers your question please click on the green button "Verify Answer"
This thread is being closed due to the time since the suggested answer was provided. The assumption is the answer was sufficient to resolve the posted question.
Thanks and Regards,
If this response answers your question, please indicate it by verifying the suggested answer when provided.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.