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.

Copy application to external SPI memory - CCS

Other Parts Discussed in Thread: MSP430F5510

Hi,

We are using MSP430F5510 MCU. In our application we are using an external flash and using the controller's SPI interface to communicate with it.

Now my problem is that I want to download some code to this external flash. In the CCS, I noticed that in Debug Properties, there is an option "Copy application to external SPI memory after program load". But in my CCS version this option is always showing as disabled.

Can someone please let me know how can I enable this option and download code to external flash or is there some tool which is required for this?

Thanks a lot in advance.

-Apax

 

  • Amee Parikh said:
    I noticed that in Debug Properties, there is an option "Copy application to external SPI memory after program load"

    I guess this option is for th eMSP430L092 processor, which has no internal FLASH but a bootloader to load teh applicaiton code  from external SPI flash to ram.
    I doubt this option if meant for general usage of external SPI memories (as there are many with different transfer protocols). It will likely only work for this specific processor and the SPI flash on the demo board.

  • So, that means the only option is to get data from PC (somehow) and then use SPI protocol to send it to external flash. By somehow I mean it could be via UART or USB or JTAG, right??

    Thanks.

    -Apax

  • Nothing keeps you from writing a program that receives data through any possible interface (UART, USB on USB devices, RF, light semaphores, morse detectors etc.) and write it to the an attached SPI flash chip. You cannot do it, however, using the normal programming flow. The FET will only write to the internal flash/ram through JTAG. There are no specifications how an external SPI flash has to be addressed, how it is organized, what to put where. This informationis only available for the 092 reference design. And only for the reference design.

    YOu can even append the data you want to write to the external SPI as cosntant data to a small applicaiton code which will jsu twrite this constant data to the flash. You compile, uplaod to the MSP and run it and it will forward the data tables.
    Actually this is how even the internal the flash is programmed: the FET writes a small program into the MSPs ram that contains a flash writing loop and the data block to write. Then this program is executed and does the flash programming. Then the next block is sent. Writing to flash directly through JTAG is more or less impossible (the JTAG access would most likely interfere with the write process)

**Attention** This is a public forum