This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Initialization for F021 Flash Library

Other Parts Discussed in Thread: HALCOGEN, TMS570LS1227

Hello All,

I've been reading through the F021 Flash API Reference Guide (version 2.00.01), TI document spnu501e.  This is for a TMS570LS1227 on the development board, using CCS v5.5.1 and HALCoGen 03.08.01.

In Section 5.3 "Recommended Program Flow", the flowchart starts off with the box "Properly Initialized Device".  I was wondering what exactly that meant.

Section 2.3.1 mentions that all the API functions must be run in privilege mode, which I understand.  Beyond that, there doesn't seem to be any other mention of required initialization needed.

Obviously, TMS570 needs to be initialized properly, so I am looking through (SPNA106D) "Initialization of Hercules ARM Cortex-R4F Microcontrollers".  This document does mention some flash memory related items, such as setting the wait states for reading the memory.

Are there any other settings that need to be done for erasing or programming flash memory beyond what is mentioned in this document, and beyond what is generated by HALCoGen?

Best Regards,

James Graves

  • Hi James,

    If you are using Halcogen for system intialization, you are pretty much covered for the device initialization. Halcogen also programs the wait states according to the clock and PLL settings you have selected under the PLL tab.

    The "Initialization of Hercules ARM Cortex-R4F Microcontrollers" guide specifies the necessary steps to initialize the device. If you are reffering to it and cross checked the initialization routines, then you are good to go for flash programming/erasing.

    Regards,
    Praveen