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.

TMS320F28027F: Does this device require additional memory to load the driver software at power ON

Part Number: TMS320F28027F
Other Parts Discussed in Thread: CONTROLSUITE, MOTORWARE, UNIFLASH

Hello team,

Hope you are well. Would you be able to help out with below question from the customer:

The goal for my motor driver design is to pre-load the program into a non-volatile memory and have MCU load the software at boot-up.

To load the driver software into Piccolo TMS320F28027F at power on, do I need to add a serial flash on board, or the flash the MCU has is enough?  

I read the serial flash programming document,  it doesn't appear to be clear.   Is there any reference design for this?

Thanks.

  • Whether the on-chip flash is sufficient to store application code is completely dependent on the application. Customer needs to look at the .map file to determine the size of various sections. If the on-chip flash+RAM is insufficient for the application, customer may have to look at part numbers with more memory. External serial flash is an option; however its contents need to be loaded onto on-chip RAM for execution. The code in flash needs RAM space for various sections (look at the linker command file for the section information), so RAM space to execute code from may be limited.

  • Thanks for the answer. Two more questions:
    1. For my application, a typical sensorless FOC motor control application, would the in-chip flash be enough, or I need to put external flash on board?
    2. If I need to put on external flash, is there a reference design? I looked in the datasheet and there is no mention of external flash at all. Where to connect flash to memory bus, and what is the address allocated to it?
  • yes, typically. there are many products in production with F28027F using only on-chip flash. It is atypical to use external. If customers want more flash they move up to F28054F or F28068F for example.
  • Xiang,
    The FOC application will fit in the on-chip flash. However, it is likely your application does other things among sensorless FOC motor control application, so it is hard to answer your question. You need to use the .map file to determine the size of the sections, as mentioned in my previous post.

    Your question #2 has already been addressed in my previous post. (Datasheet makes no mention of external flash because there is on-chip flash).
  • Thanks Hareesh and Chris. I searched around and can't find a hands-on tutorial on flash programming. What I need is something like: On CCS you write you code and compile it and generate a some kind of boot file, and use interfaces like JTAG or USB to load it on on-chip flash, and then you are ready to go.

    Which document would you like to refer me to for this?

    Thanks,
    Xiangguang
  • For programming during development:
    In CCS your projects will create a .out file. The .map file determines which memory space will be used/programmed. For MotorWare projects (and most controlSUITE projects) they are already set-up to program the correct areas in flash.

    This .out can be loaded using CCS to the MCU using JTAG just by connecting to the target and loading the project.

    There is also UNIFLASH included with CCS for programming the flash in other ways and there are a variety of other flash programming tools for in-system and production environments.