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.

Compiler/MSP430F5659: Reloading USB BSL code at 0x1000

Part Number: MSP430F5659
Other Parts Discussed in Thread: MSP-FLASHER

Tool/software: TI C/C++ Compiler

Hi,

I want to use the Factory USB BSL code that resides in BSL memory. I am using a 16Mhz XT2 clock, so I know I have to change the divider etc in the code that tests for 4,8,12 or 24Mhz crystals. My plan was to read out the BSL code on startup of my program(512 bytes), then erase the 512 byte segment, then rewrite the original code back into it with the proper clock divider parameters(2 bytes)(I know this will work from another post that I just was in).

My question is how do I  reload the factory USB BSL back into the device, as I erased it during testing? Do I have to get a separate  .txt file and download it first, or is there an option in CCS7 to do that automatically?

Thanks,

Jerry

  • I probably should have left this in the uP 430 forum. I just need to know where on the web site I can get the text files for the BSL for both the MSP430F5659 and 6659(using both)

    Thanks

  • Use MSP-Flasher to export original BSL sector to txt file. Than erase BSL. Do modification on txt file, and write it back to device. All of this can be done with any SBW / JTAG tool. For read/write BSL must be unlocked first. I prefer this way with FET (it is safe, just don't overwrite fuse values with something else than 0FFFFh or 00000h), and not the one where code on target device changing it.

    I have MSP430F5659 so I can dump original BSL and attach it here, but maybe your device silicon / BSL version is different than mine.

    I am using my software / tool so don't know exactly how MSP-Flasher command line should be for this.

    forum.43oh.com/.../

  • Zrno, Thanks but this is a production product and I don't want to be doing this with every device. I already have code in my app to read the BSL,modify it and write it back, on the very first powerup of the device only. I was just looking for the txt file from TI, because prior to my writing the above software I erased the BSL code on the only prototype I have. If TI doesnt have this code as a .txt file available, then I guess I'll have to read it out of another device using a programmer like the FET, then write it into my prototype.
    Thanks.
    Jerry
  • Hi Jerry
    You can find it at here software-dl.ti.com/.../index_FDS.html
    you can find it in the Released_BSL_Images file I think.
    Best regards
    Gary
  • Thanks Gary,

    I did have those files, but they are confusing as to which one to use. I use CCS7, and there is no source files for USB operation. The images have  both flash and ram based versions.  I used the flash based that comes with the IC, but It looks like the PC app downloads files to ram to ultimately download the txt file. 

    Good news is I have something working and I can download new firmware using the VS app that TI has.

    Regards,

    Jerry

  • Hi Jerry

    MSP430F5659 belong to MSP430F665x_Family and the latest version named BSL_00.08.88.39.txt should be OK. There is no source demo code here for this device.
    Good news to hear that you solve the problem. Great job! Can you make it clear that what VS app do you use to solve this problem?

    Best regards
    Gary
  • Yes BSL_USB_GUI Ver 1.3.1

    BSL_USB_GUI.sln - this project recompiles the USB Field Firmware code|
    | This project does not require Microsoft WDK to recompile.

**Attention** This is a public forum