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.

MSP432E401Y: Trouble with Launchpad Bootloader example working

Part Number: MSP432E401Y
Other Parts Discussed in Thread: MSPBSL, MSP-EXP432E401Y

Hi,

I used CCS. I initial loaded using USB link to initially program the dev board with "boot_serial_emac_flash_MSP_EXP432E401Y_nortos_ccs.out". The devboard has wired ethernet connection to the same ethernet switch hub as my PC, and the switch hub is connected to the office LAN.

In the command prompt, I run this: D:\ti\workspace_v8\boot_emac_flash_app_magicpacket_update_MSP_EXP432E401Y_nortos_ccs\Debug>bsl-scripter script_2.txt

below is what appeared on my screen:

---------------------------------------------------------
BSL Scripter 3.3.0
PC software for BSL programming
2018-Oct-05 14:44:19
---------------------------------------------------------
Input file script is : D:/ti/workspace_v8/boot_emac_flash_app_magicpacket_update_MSP_EXP432E401Y_nortos_ccs/Debug/script_2.txt
//
// MSP432E4xx - Ethernet Bootloader Example (2st step)
//
// This script invoke the Custom Ethernet bootloder
// and download the boot_emac_flash_magicpacket_MSP_EXP432E401Y application
//
// Please insert the correct MAC address of the
// MSP432E4xx device,
// the IPClient parameter which is the IP that
// would be assigned to the MSP432E4xx device,
// and the IPServer parameter which is the local
// PC where the BSL-Scripter is executed.
//
// This application will be invoke the Custom Ethernet bootloader
// in flash when the magic packet is sent by the BSL-Scripter
// To try this feature, please execute the script_3.txt
//
LOG
MODE E4xx Ethernet MAC=70:FF:76:1C:5D:B4 IPClient=192.168.56.10 IPServer=192.168.56.1
Local IP Address is given in the parameter
Local IP Address of Host: 192.168.56.1
Waiting for BOOTP request!
Waiting for BOOTP request!
BOOTP request received!
Send BOOTP reply!
Ready to receive the Tftp read request!
Client IP address: 192.168.56.10
Waiting for TFTP read request!
[ERROR_MESSAGE]There is invalid TFTP Read Request in the packet received!

So what might be wrong?

Thanks,

Neiz

  • I will attempt to recreate the issue on my side.

    Regards,
    Chris
  • Hi Neiz,

    Could you please check the IP Client that you chose for the board is correct?

  • Hi,

    Thanks for replying.
    How do i check the IP client for the dev board?
    I just selected the ip address within the range of my local network by pinging that address and there is no reply, that's what i choose.

    Thanks,

    Neiz
  • Hi Chris,

    Thanks, for the reply.

    How's is it goin on your side?

    Thanks,

    Neiz
  • Hi Neiz,

    there are two examples in the package which have different purpose.
    1. Assume your device is blank / not programmed
    2. ROM bootloader will be executed when it is powered up
    3. Run the script_1.txt will communicate with the ROM bootloader. I saw your log run the script_2.
    4. script_1 is downloading a custom bootloader that resides in the flash main memory
    5. now everytime the device is starting up, the custom bootloader is running.
    6. you can download the script_2 or script_3 for different blink LED

    Let me know if you are able to download the script_1.txt successfully. I apologize for the delay in responding your question.
  • Hi,

    So to make the flash corrupted, I compiled a program with the address 0x00000004 = -1, and loaded it to the chip.

    I used the supplied firmware with extension ".txt", in the folder \MSP432E4\MSPBSL_Scripter_win\Example\E4xx_ethernet.

    I just changed the MAC, and ip numbers.

    I, then followed your recommendation, and no success still.

    Below is the log:

    D:\Downloads\MSP432E4\MSPBSL_Scripter_win\Example\E4xx_ethernet>bsl-scripter script_1.txt
    ---------------------------------------------------------
    BSL Scripter 3.3.0
    PC software for BSL programming
    2018-Oct-11 13:03:17
    ---------------------------------------------------------
    Input file script is : D:/Downloads/MSP432E4/MSPBSL_Scripter_win/Example/E4xx_ethernet/script_1.txt
    //
    // MSP432E4xx - Ethernet Bootloader Example (1st step)
    //
    // This script invoke the ROM bootloder
    // and download the Custom Ethernet Bootloader
    // Please insert the correct MAC address of the
    // MSP432E4xx device,
    // the IPClient parameter which is the IP that
    // would be assigned to the MSP432E4xx device,
    // and the IPServer parameter which is the local
    // PC where the BSL-Scripter is executed
    //
    // After the download is finished, reset the device
    // and execute the script_2.txt
    //
    LOG
    MODE E4xx Ethernet MAC=70:ff:76:1c:5d:b4 IPClient=125.1.1.110 IPServer=125.1.1.102
    Local IP Address is given in the parameter
    Local IP Address of Host: 125.1.1.102
    Waiting for BOOTP request!
    BOOTP request received!
    Send BOOTP reply!
    Ready to receive the Tftp read request!
    Client IP address: 125.1.1.110
    Waiting for TFTP read request!
    [ERROR_MESSAGE]There is invalid TFTP Read Request in the packet received!

    Any new idea?

    Thanks,

    neiz

  • Neiz,
    No new ideas yet. I have recreated the error that you are seeing and working to get to root cause.

    Regards,
    Chris
  • Hi Neiz,

    I could reproduce your problem and then found out that the IP address given is wrong. my apologize to reply this really late, as i was out of office for some time.

    when you type "ipconfig" in your command prompt, this what would you see under LAN

    Ethernet adapter Local Area Connection:

       Connection-specific DNS Suffix  . : fritz.box
       IPv6 Address. . . . . . . . . . . : 2a02:810d:4ac0:5bfc:94de:c6ec:9dda:d8d2
       Temporary IPv6 Address. . . . . . : 2a02:810d:4ac0:5bfc:e184:7f32:6f8d:7ea0
       Link-local IPv6 Address . . . . . : fe80::94de:c6ec:9dda:d8d2%11
       IPv4 Address. . . . . . . . . . . : 192.168.178.80
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : fe80::ca0e:14ff:fe88:85ae%11
                                           192.168.178.1

    Choose the IPv4 address as your IPServer in the script file. then I choose another IP 192.168.178.82 to be the IPClient.

    other than that, there is a possibility that the UDP packet transfer is protected by the firewall. https://www.windowscentral.com/how-open-port-windows-firewall usually when you run the BSL Scripter for the first time, there is a pop up window to execute the application.

    I hope this is also a solution for you.

    don't forget to mass erase the device before running the script_1.txt. Mass Erase could be done by:

    1. Launch target config in CCS
    2. Connect to CM4F core
    3. Script -> default -> MSP432E4_MASS_ERASE

  • Hi Neiz,
    is the IP assignment right and working on your side?
  • Thank you Fatma. Neiz, I will consider this issue resolved since there has been no feedback. Please feel free to add comments or questions.

    Regards,
    Chris
  • Hi,

    I am running into the same error mode of the BSL Scripter. This is what I get in my prompt: 

    This is my ipconfig so you can see the ip is correct: 

    I have tried several things like changing the firewall configurations to allow the application and changing the client ip. None of them have worked. Something interesting that you can notice in the first image, is that the first time I run the BSL-Scripter it fails by not receiving a BOOTP request. The second time is the same error that Neiz has.

    Just to add, I am using a local network with just one switch and no access to a router. Is this important? Is it necessary to have such device for dynamic IP allocation? My initial guess is that it isn't necessary cause this allocation is already done by the BSL Scripter, but it is good to ask.

    Any other suggestions of what could be the issue?

  • Also, do I have to upload something to the device before via JTAG?
  • I have been using the XDS110 (MSP-EXP432E401Y) to program a blank image and power the system.  With no source code present the boot code thinks the device is blank and initiates the BSL.  

    I would recommend updating to the latest BSL.  I did have some success with the first two scripts found in the BSL example but I am still working on the third.  

    C:\ti\BSL\ScriptExampleWindows\E4xx_ethernet

    Please find the attached log files.

    Regards,

    Chris

    script_1_2018Dec03_114404.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    ---------------------------------------------------------
    BSL Scripter 3.4.0.1
    PC software for BSL programming
    2018-Dec-03 11:44:04
    ---------------------------------------------------------
    Input file script is : C:/ti/BSL/ScriptExampleWindows/E4xx_ethernet/script_1.txt
    //MODE E4xx Ethernet MAC=08:00:28:5a:8b:7f IPClient=137.167.191.10 IPServer=137.167.191.9
    MODE E4xx Ethernet MAC=08:00:28:5a:8b:7f IPClient=192.168.2.4 IPServer=192.168.2.2
    RX_DATA_BLOCK_32 boot_emac_flash_MSP_EXP432E401Y.txt
    Read Txt File : C:\ti\BSL\ScriptExampleWindows\E4xx_ethernet\boot_emac_flash_MSP_EXP432E401Y.txt
    Time elapsed of writing 12084 bytes : 0.2811 seconds
    Speed of writing data :41.98(kB/s)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    script_2_2018Dec03_114809.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    ---------------------------------------------------------
    BSL Scripter 3.4.0.1
    PC software for BSL programming
    2018-Dec-03 11:48:09
    ---------------------------------------------------------
    Input file script is : C:/ti/BSL/ScriptExampleWindows/E4xx_ethernet/script_2.txt
    //MODE E4xx Ethernet MAC=08:00:28:5a:8b:7f IPClient=137.167.191.10 IPServer=137.167.191.9
    MODE E4xx Ethernet MAC=08:00:28:5a:8b:7f IPClient=192.168.2.4 IPServer=192.168.2.2
    RX_DATA_BLOCK_32 boot_emac_flash_magicpacket_MSP_EXP432E401Y.txt
    Read Txt File : C:\ti\BSL\ScriptExampleWindows\E4xx_ethernet\boot_emac_flash_magicpacket_MSP_EXP432E401Y.txt
    Time elapsed of writing 48368 bytes : 1.063 seconds
    Speed of writing data :44.45(kB/s)
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    script_3_2018Dec03_114854.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    ---------------------------------------------------------
    BSL Scripter 3.4.0.1
    PC software for BSL programming
    2018-Dec-03 11:48:54
    ---------------------------------------------------------
    Input file script is : C:/ti/BSL/ScriptExampleWindows/E4xx_ethernet/script_3.txt
    //MODE E4xx Ethernet MAC=08:00:28:5a:8b:7f IPClient=137.167.191.10 IPServer=137.167.191.9
    MODE E4xx Ethernet MAC=08:00:28:5a:8b:7f IPClient=192.168.2.4 IPServer=192.168.2.2
    [ERROR_MESSAGE]No BOOTP request received, exit the BSL-Scripter!
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Oscar, Neiz,
    Any updates from your side?

    Regards,
    Chris
  • Hi all,

    sorry for late response. here are some further results and summary to run the example of Ethernet bootloader.:

    1. Download the Ethernet flash bootloader to the empty device: boot_serial_emac_flash_MSP_EXP432E401Y_nortos_ccs and download it by using script_1.txt in BSL Scripter example package, or script_bl.txt as shown in SimpleLink Academy page.
    2. Download app using the Ethernet flash bootloader from step (1). Under BSL Scripter example, there are 2 examples provided, under script_2.txt and script_3.txt. They are independent from each other
        1. Download the emac app example (script_2.txt)  boot_serial_emac_flash_MSP_EXP432E401Y_nortos_ccs
        2. Download the blink led example (script_3.txt) boot_serial_flash_app2_MSP_EXP432E401Y_nortos_ccs
    3. Understanding the emac app example (2A)
        • Before downloading the (2A), the MAC address has to be programmed correctly on the device
        • Open the Tera Term / hyper terminal to see the if the (2b) is programmed correctly. The expected output in Tera Term / hyper terminal shown in the SimpleLink academy page

    I hope this helps you to proceed with the ethernet bootloader application. let me know if you have further question. I recommend to take a look into the SimpleLink academy, as it shows step by step the setup from very beginning.

    I wish you all happy holiday and happy new year 2019!:)

  • Hi,

    I am running into the same error. This is what I get trying to run script_1.txt(provided in the Examples folder):

    As you can see I'm using BSL Scripter 3.4.0.1. I also erased the memory of my launchpad before running this script.

    Any suggestions?

    Thanks

    Richard

  • Hi Richard,

    when you type "ipconfig" in your command prompt, this what would you see under LAN

    Ethernet adapter Local Area Connection:

       Connection-specific DNS Suffix  . : fritz.box
       IPv6 Address. . . . . . . . . . . : 2a02:810d:4ac0:5bfc:94de:c6ec:9dda:d8d2
       Temporary IPv6 Address. . . . . . : 2a02:810d:4ac0:5bfc:e184:7f32:6f8d:7ea0
       Link-local IPv6 Address . . . . . : fe80::94de:c6ec:9dda:d8d2%11
       IPv4 Address. . . . . . . . . . . : 192.168.178.80
       Subnet Mask . . . . . . . . . . . : 255.255.255.0
       Default Gateway . . . . . . . . . : fe80::ca0e:14ff:fe88:85ae%11
                                           192.168.178.1

    Choose the IPv4 address as your IPServer in the script file. then I choose another IP 192.168.178.82 to be the IPClient.

    other than that, there is a possibility that the UDP packet transfer is protected by the firewall. https://www.windowscentral.com/how-open-port-windows-firewall usually when you run the BSL Scripter for the first time, there is a pop up window to execute the application.

    I hope this is also a solution for you.

    don't forget to mass erase the device before running the script_1.txt. Mass Erase could be done by:

    1. Launch target config in CCS
    2. Connect to CM4F core
    3. Script -> default -> MSP432E4_MASS_ERASE
  • Hi, I already followed your suggestions on Windows:
    -Mass erased my device
    -Disabled my firewall
    -Chose the IPv4 address as my IPServer(In my case I chose 192.168.1.6 because my LAN is 192.168.1.x)

    But still no luck. Any other ideas why this might not be working?

    Thanks,
    Richard
  • Hi Richard,

    I assume you are using the Launchpad:
    other than the LAN kabel, the board has to be powered. I usually connect the USB cable to the debugger port just to power the device. Common mistake is to connect the USB cable next to the LAN connector--which is not powering up the board, because it is a USB port for USB application.

**Attention** This is a public forum