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.

MSP430F5249: BSL Scripter: SET_PC command

Part Number: MSP430F5249
Other Parts Discussed in Thread: MSP430F5529

Hi,

I am unsure how to use the SET_PC command in the BSL Scripter scripts - specifically the address values. I have seen various example scripts like this one:

//
//Script example 5xx USB BSL
//Device tested: MSP430F5529
//
//Download a blink LED application
//to the device through the USB BSL
//
LOG
////////////////////////////////////
//Write RAM USB BSL to the device
////////////////////////////////////
MODE 5xx USB
//gives wrong password to do
//mass erase in the memory
RX_PASSWORD pass32_wrong.txt
RX_PASSWORD pass32_default.txt
RX_DATA_BLOCK_FAST RAM_BSL_USB.txt
SET_PC 0x2504
DELAY 3000
////////////////////////////////////
//Start the RAM USB BSL application
//to download the blink application
////////////////////////////////////
MODE 5xx USB
RX_PASSWORD pass32_default.txt
RX_DATA_BLOCK blinkLED_f5529.txt
SET_PC 0x4400

What do the values highlighted in bold refer to? Can someone please explain where these values come from?

My target chip is MSP430F5249. What values should I use for that target?

  • Hello Jacob,

    Those addresses are memory addresses. In particular, the addresses in the above code are the start of the RAM BSL and Program memory for the MSP430F5529. You would need to look up the start of program memory for your device for this address. This can be found within the memory Organization table of the data sheet. Alternatively, you could just reset the device after downloading your code via BSL, and your program will start right away.

**Attention** This is a public forum