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.

MSP430F5528: How to load a data file into flash using the USB BSL and have the main program be able to read from it?

I want to be able to separately load into memory a data file via the BSL using one of my USB ports into Bank B code memory. This data file is approx 8K.  The main program will also needs to be loaded into Bank A code memory.   This is needed to keep the main program separate and be able to load new data files via the USB. 

Currently the data files are hard coded into a header (.h)  file and linked into the main program.  I currently have the ability to load the main program into memory using the BSL 0 via the USB.  From what I read in http://www.ti.com/lit/an/slaa452b/slaa452b.pdf BSL 0 is the only(?) USB BSL.

I see multiple BSLs areas (BSL 0 - 3) of memory (see SLA590F) and Main Code Memory areas (Bank A - D). See http://www.ti.com/lit/ug/slau330a/slau330a.pdf for memory organization.

Can I use BSL 1 to load a data file, via the USB, into Main Prog Bank B, and have my Main Proagram (Bank A) read from it?  If so, then how?  If not, then what are my options?

Finally, my data files are ASCII to begin with.  How can I make them an image to load into code memory area Bank B?  BTW, I use TI CCS.

I am a novice at this.

Thank you,

Nick

 

 

  • The default BSL code on MSP430F5528 is flexible enough to fulfill your requirement.
    On the PC side, BSL Scripter eases your operation.
    This app note describes the acceptable command of default BSL code

    MSP430 Programming Via the Bootstrap Loader
    http://www.ti.com/lit/ug/slau319a/slau319a.pdf

    BSL Scripter was distributed in slau319a.zip, but currently this link is broken on the TI site.
    http://www.ti.com/lit/zip/slau319a

    I attached slau319a.zip to this post.
    Look in this script example, to get the idea of scripting.
    BSL_Files\BSL Scripter\Demo Scripts\5529_Application_Download\script.txt

    Tsuneo
    slau319a.zip

**Attention** This is a public forum