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.

MSP430FR2355: In Application Programming for MSP430FR2355 Through P4.2 and P4.3 of UART1.

Part Number: MSP430FR2355


Hello Team,

We are working on MSP430FR2355(Our Customized Board). So, we need to program N no.of MSP430FR2355 Controllers in a sequence at a time.

For that we need to Erase the existing old code & program with new code at Old code start Address(same location).

Note: Here main thing is we need to program our MSP430FR2355 through P4.2 and P4.3 of UART1 using .bin File/ Hex File. Without using JTAG PINS.

For that we have prepared a small Software BSL invocation code by referring slaa721e and slau550aa.
Before attempting this i need clarity on our approach for Invoking BSL to Erase Memory Location of my Old Code for writing New Code at Same Location.

Please guide us in a proper direction to complete this In Application Programming.
Below is the BSL Invocation Code.

int main(void)
{
WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer

__disable_interrupt();

FRCTL0 = FRCTLPW;


__delay_cycles(90000);
((void (*)() )0x1000)();
}

Is that correct to enter and write my code at particular location.? Can anyone help me to enter into BSL mode using P4.2, P4.3 Pins and Program my MSp430FR2355. Any Help Would be very thank full.

  • Hi Vamshi,

    I would suggest looking at some of our resources that can help detail the BSL method.

    I have a concern with what pins you want to use, for BSL our pin requirements are in the figure below. From the Datasheet.

    You would invoke the BSL with the SBWTDIO and the SBWTCK pins then transmit and receive data through the P1.7 and P1.6 pins respectively.\

    This document can help with the invocation process MSP430 FRAM Devices BSL User's Guide and other general processes for the BSL.

    Once you get in you can run the BSL commands erasing the segment at the particular address then writing to it.

    Regards,

    Luke

  • Thank you for the reply Luke,

    But our main moto is to use UART1 - P4.2 and P4.3. Is that possible with those pins ? 
    if- Yes, Please Provide instructions for Further Process.
    if- No, Are there any methods to erase my Old code and write New code at same location.?

    Any Help would be very thankful.

  • I would highly suggest using the 1.6 and 1.7 pins, the BSL routine was created using those pins. If you absolutely need to use the p4.2 and p4.3 pins you will have to create your own BSL routine utilizing those pins, but it is possible (Section 6 of the FRAM BSL User's guide talks about this a little more). 

    For the way to write code to the memory section you can use the RX Data Block command, as long as you use the BSL password to access it then you can specify the address and write to is. Information on the commands are available in the FRAM BSL User's Guide.

    Regards,

    Luke

**Attention** This is a public forum