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.

MSP430F5xx flash programming SBW issue

Other Parts Discussed in Thread: MSP430F5151

Hi all,

I'm working on my application that involves the On Board Programming of the MSP430F5151 device.

I'm developing the programming software using the SBW interface (2 wire JTAG), I followed the SLAU320m application note (pdf document and source code) and I used our hardware instead of the Replicator430Xv2 board as we had already done for other MSP devices.

I'm able to read the JTAG_ID, the DEVICE_ID (at address 0x01A04) and all other memory type (RAM, FLASH, registers) so I think that the ReadMem_430Xv2 , the ReadMemQuick_430Xv2 and the other LowLevel functions are working well but, unfortunately, I'm not able to write the registers (to disable the watchdog) or the RAM (to write the firmware for the erase or the programming) using the WriteMem_430Xv2 function.

Could someone help me to solve this problem?

Thanks in advance

Best regards

Alberto

  • I used slau320 as reference for first version of my sbw flasher, and for multi-flasher also (http://forum.43oh.com/topic/2972-sbw-msp430f550x-based-programmer) because there was no other / any msp430 SBW/JTAG source/examples at that time.

    Now, there is much better optioin (slac460), by using TI FET firmware source files (http://forum.43oh.com/topic/2972-sbw-msp430f550x-based-programmer), because it covers much more of SBW/JTAG related staff with less number of bugs than slau320.

    I used TI source as reference, and my SBW is written/optimized in assembler, not copy/paste of TI C code. Unfortunatelly, source of your problem can be anywhere. In my case disabling WD is done at the end of POR function...

    ; disable Watchdog Timer on target device  BWriteMem_430Xv2(F_WORD, 0x015C, 0x5A80)

    mov.w #0015Ch, &MemAdr

    mov.w #05A80h, &MemData

    call #WriteMem

    BTW, Quick Read/Write mode for MSP430x5xx in slau320 is not used. Quick functions just use repeated standard Read/Write opearation.

**Attention** This is a public forum