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.

Linux/MSP430FR2311: About MSP430 Bootloader With Sitara Embedded Linux Host Programming issue

Part Number: MSP430FR2311

Tool/software: Linux

Hi SIr 

We followed below document to do MSP430FR2311 FW programming test and met the issue 

MSP430™ Bootloader With Sitara™ Embedded Linux Host (SLAA760–August 2017 )

We used beaglebone-black with below OS info.

Debian GNU/Linux 8 beaglebone ttyS0

BeagleBoard.org Debian Image 2017-03-19

We followed the usetguide to do HW connection and then put UART_BSL_MSP430FR folder into BBB for compiler.

There is no issue found till now.

When we execute msp430fr_bsl and the found below error message.

debian@beaglebone:/MSP430/UART_BSL_MSP430FR$ ls
bsl.c gpio_if.c main.c pinmux.h uart_if.h
bsl.h gpio_if.h msp430fr_bsl README.md utils.c
config.h image pinmux.c uart_if.c utils.h
debian@beaglebone:/MSP430/UART_BSL_MSP430FR$ ./msp430fr_bsl
Segmentation fault
debian@beaglebone:/MSP430/UART_BSL_MSP430FR$ uname -r
4.4.54-ti-r93

please advise.

BR

Yimin

  • Hi,

    Debian is not supported by TI. This is a community release. Please contact the community on www.beagleboard.org
  • I have notified the authors of this document. They will comment here.
  • Hi Sir

    TI release source code and document and ask customer

    to run in bbb with Debian

    And it cause issue happened.  

    Do you think it is TI’s issue or customer’s issue?

    Have TI verified the source code and release document?

  • I did test this code with BBB. You need to see which part of the code is causing the segmentation fault. The version of the OS and other BBB setups can be causing this. Put some printfs and see where the segmentation fault happens.
  • Hi SIr 

    thanks for your help

    We found the issue as below by following your document

    We only got one pack from MSP430 and it is 0x00.  by referring to the code , it should get packets x8 as below 


    bool WritePassword(uint8_t* password, uint16_t passwordSize)
    {
    uint16_t checksum = 0;

    if (passwordSize != PASSWORD_LENGTH)
    {
    #if DEBUG
    printf("Password is incorrect size: 0x%x\n", passwordSize);
    #endif
    return false;
    }
    sendBuffer[0] = (uint8_t)(HEADER);
    sendBuffer[1] = RX_PASSWORD_NL;
    sendBuffer[2] = RX_PASSWORD_NH;
    sendBuffer[3] = RX_PASSWORD;

    memcpy(&sendBuffer[4], password, PASSWORD_LENGTH);

    checksum = CalculateChecksum(&sendBuffer[3], (uint16_t)(PASSWORD_LENGTH + 1));
    sendBuffer[PASSWORD_LENGTH + 4] = GetCKL(checksum);
    sendBuffer[PASSWORD_LENGTH + 5] = GetCKH(checksum);

    UART_SendByteArray(sendBuffer, PASSWORD_LENGTH + 6);
    UART_ReadByteArray(receiveBuffer, 8);  -> only got 0x00 one packet. 

     

    please advise

    BR

    Yimin

  • Hi SIr

    after checking BBB by following your SOP, we found there is no uart message output from ttyO4

    we use your sample code without modification. and measure UART's signal of BBB directly.
    www.ti.com/.../slaa760.pdf

    list information as below.
    root@beaglebone:/MSP430/UART_BSL_MSP430FR# ls -l /dev/ttyO*
    lrwxrwxrwx 1 root root 5 Mar 19 14:22 /dev/ttyO0 -> ttyS0
    lrwxrwxrwx 1 root root 5 Mar 19 14:22 /dev/ttyO1 -> ttyS1
    lrwxrwxrwx 1 root root 5 Mar 19 14:22 /dev/ttyO2 -> ttyS2
    lrwxrwxrwx 1 root root 5 Mar 19 14:22 /dev/ttyO4 -> ttyS4

    please advise

    BR
    Yimin
  • Hi SIr

    Thanks. It fixed

    I have no idea why TI used 3rd-party OS of BBB instead of using TI processorSDK to support SItara platform for MSP programming feature.

    And then said TI doesn't support it. 

    BR

    Yimin

**Attention** This is a public forum