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.

MSP430 BSL Source Code

Other Parts Discussed in Thread: MSP430F5529, MSP430F5438A

Hello,

I have downloaded the slau319c.zip files and I have been trying to manipulate the BSL source code files in particular.  When I try to compile the code before I even get into any changes, I am not able to do so because I am missing some includes i.e. windows.h, stdio.h, string.h as well as others.  I have tried linking to different includes from CCS directories but have had no luck.  I know that these are common names for .h files so it is hard to just search online and find the ones I need. I was wondering if anyone could give me the exact files needed for the BSL source code. Thank you in advance.

Regards,
Cory W. Baker

  • Hi Cory,

    SLAU319 contains the source files for some applications (like the BSL_Scripter) to communicate with the MSP430 BSL, not the MSP430 BSL itself. For that you'll want to see SLAA450. Basically, SLAU319 is all about the host that is updating the firmware on the MSP430, and SLAA450 is all about the BSL code inside the MSP430 and what is happening inside the MSP430 when you do a firmware update.

    Hope this helps clear things up.

    Regards,

    Katie

  • Katie,

    First off, thank you for the quick response.  Second, I have gone through the SLAA450 when I go to the example code it provides the BSL for the MSP430F5438A. I am using the MSP430F5529.  If I reference correct (correct meaning referencing the 5529) includes and add the .cmd and .ccxml files for the 5529 would the code still work correctly so that I can edit it further? I am assuming this is not the case but I have wishful thinking.  If not are there particular portions of the code that you know I would have to edit in order to make it work for my device?

    Thank you in advance,
    Cory W. Baker

  • Hi Cory,

    If you are using the F5529 there are some examples already set up for it in SLAA450. You'll find these inside the extracted zip file at: SLAA450/Custom_BSL_Zip_file/5xx_6xx_BSL_Source. There you will find an IAR workspace that contains several different BSL projects for different devices (including F552x), and folders with projects for the F552x using either USB or UART interface for the BSL.

    This will be an easier route because when building the BSL a modified linker file is used, not the default one that comes with your IDE. The modifications to the linker file are described in the app note that goes with the code: www.ti.com/lit/pdf/slaa450.

    I'm not sure what modifications you are hoping to make to the BSL. If you simply want to use UART instead of the default USB on the F5529, you'll find we already have code for that which you can just build and load. There is also code for some different peripheral interfaces that you can use like I2C in the same zip package.

    There's also some additional links to resources for doing your host side implementation when you want to start using and testing your BSL located on the wiki: http://processors.wiki.ti.com/index.php/BSL_(MSP430)

    Hope this helps!

    Regards,

    Katie

  • Katie,

    I have seen that code but I am not able to use IAR for various reasons.  I must use CCS for this application.  I am indeed looking for a BSL that uses just the UART instead of the USB of the F5529. Is there code for that in CCS that I can just build and load? Also, to provide further information, I am using the MSP-EXP430F5529 dev board to test all of this.

    Thanks,
    Cory W. Baker

  • If you only need the UART BSL for F5529 and don't need to modify it, I think you can just load the binary image of it that is included in the SLAA450 download at SLAA450\Customer_BSL_Zip_File\5xx_6xx_BSL_Source\MSP430F552x_TA_UART\Debug\Exe\. The File is MSP430F552x_TA_UART.txt (it is in TI-TXT format). You could load this quickly with some software like the free Elprotronic Fet-Pro430 Lite software.

    If you want to modify the code, you'll have to make a project in CCS. You should be able to use the same source code files from the IAR project, but I think you'll need to look at the IAR linker file and use that as a guide to modify the CCS linker file (they use different formats). You can use the F5438 CCS project and its settings as a guide here though, since we have a CCS version and IAR version of it (so you can compare linker files, etc).

    If you are using the Experimenter's board, you'll want to see if there is anything connected to the UART pins being used though - there is a lot of stuff on that board. By default the experimenter's board is set up to support the USB BSL. For UART you may have to jumper some things around (I haven't checked the schematic).

    -Katie

**Attention** This is a public forum