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.

MSP430F5637: FW update on MSP430F563x Devices

Part Number: MSP430F5637
Other Parts Discussed in Thread: MSP-FET

Hi,

I am woeking on Firmware_Upgrade with USB BSL on F5637/5638 devices that have 16M OSC on XT2 (XT1 not used).  Since XT2 is not running at 4/8/12/24 MHz, it seems factory-default BSL is not usable and I have to modify BSL program per SLAA452 section 6.1

 I downloaded MSP430BSL_1_02_00_01 package and did not find a reference example for F563x devices. I took IAR_v6_MSP430F552x_USB example in IAR v6.4 and modified defined contants and include flle in BSL_Device_File.h as below

also modified project options

after combile, i got 7 warnings as below, then downloaded to device via MSP_FET through JTAG.

 after that, my application program enables USB as a CDC device and would like to invoke bsl by USB command, my code like this

Then combile and download to device with MSP_FET through JTAG.

when device runs and receive a string of "BSL", the CDC connection is disconnected but virtual COM port still can be seen in device manager and no hid device is detected with windows. 

Can anyone help and take a look at my case if there is anything I did worng or do i missing anything?

Thanks,

TL

  • Hi TL,

    Sorry, I can't understand your probelm, You use BSL to download code? Then use MSP-FET + CCS?

    It seems that you be able to download code using CCS, any other problem?

     

    Do you have some hardware description? Is a EVM board?

    Thanks!

    Best Regards

    Johnson

  • Hi Johnson,

    Sorry make you confused.

    What I like to develop is a MSP program that end-user is able to updated firmware in future via USB.  

    During the development, i am using IAR + MSP-FET, and hope end-user is able to update firmware in future when necessary via USB BSL. It seems TI factory BSL will not support this function when XT2 = 16M in my application, and I have to make a customized BSL program. I started with a F552x BSL example program from "MSP430BSL_1_02_00_01" and did some modifications then downloaded to device. I also added codes in my application program that make it possible to invoke BSL by application software. Application code is also downloaded to device as well. 

    When I tried to test the function, the device was able to call program at 0x1000; then the device should make USB port as a HID device to host, but i did not see this happen form windows device manager. I guess this might because the modified BSL program is invalidate or I missed something else.

    My target hardware has been used for released product for many years, and USB port is configured as a CDC device in application program that works very fine. The MSP device is powered form USB VBUS and internal LDO is enabled, both D+ and D- has 27R resister in series with a 10pf shunt cap; POR is connected to D+ with a 1.5k resistor and a 10pf shunt cap. XT2 = 16M while XT1 is not used.

    Hope above statements clearifis my program.

    Thanks,

    TL

  • If TI factory original HID BSL is fine for you, and only problem is XT2 (default BSL unsuported value) than you can export original TI BSL binary from device, update binary with constants for your XT2 and write it back to device. Of course, erase BSL segments before writing new updated binary.

    e2e.ti.com/.../2144309

**Attention** This is a public forum