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.

MSP430FR5994: OTA examples

Part Number: MSP430FR5994

Hi TI Team,

 

I am working on MSP430FR5994 OTA via UART (ESP01 WiFi module connected through UART). I am referring to the SDK examples  MSP430FRBoot  1_03_00_00.

 

I am looking into Host CCS and Target CCS UART examples. But when I refer App1_MSPBoot_FR5994_UART code. I could not find at which point the code receives the data from the HOST. Can you please share with me some docs on how these codes work? So, then I can do some modifications to this.

 

Also, let me know if I am referring to the correct example to do the OTA.

Regards,

Selva

  • I think the App1 is the application code download by the host through the MSPBoot into MSP430. you can find the communication in a name same like MSPBoot_FR5994_UART

  • Hi,

    Thanks for the reply,

    I can able to load the App1 code from host msp430 to target msp430 via UART.

    Here, First I loaded the MSP430FRBoot Code to Target MPS430 board and Load the code from Host MPS430 to Target.

    Now, I need your advice how to proceed with ESP-01 WiFi module. I need to ESP-01 wake the devices up at the specific time check the OTA updation flag.
    and transfer the codes via WiFi to target board.  
    So, How to do that, Any suggestions? 

    Thank you,

    Regards,

    Selva.I

  • Hi Selva,

    To wake the device, I think you can use a typical GPIO. It can enable MSP430 work under LPM3.

    Eason

  • Hi Eason,

    I wanted to use the UART RX interrupt in MSPBoot_FR5994_UART programming. (without  App1 code). When I tired board got reset and starting from the first (When Interrupt Triggering). Is it possible to use the interrupt concept in the boot programming? 

    Selva

  • Hi Selva,

    I don't advice you to do that.

    The reason is:

    1. The interrupt vector table is fixed on MSP430. That means the UART interrupt only can jump to a fix interrupt handler.

    2. App will use UART interrupt. MSPBoot will use UART interrupt. Then there will be two interrupt handlers. It will cause a problem. That is why we don't use interrupt in MSPboot.

    Eason

  • Hi Eason,

    Thanks for the reply,

    ohh okay, Then I wont be using it.

    Just Give me some Idea to work on my requirements:

    1) As you know I am working on ESP01- WiFi module for OTA Up-gradation.

    The Workflow we discussed in with our team is:
        Daily Early morning at 2AM ESP01 will turn ON and connect to server and check for OTA Flag (up-gradation is there or not).
            If flag = 1, Then Start the boot-loader programming to receive the data from the cloud.
            If flag = 0, Then Resume the existing App.

    Problem facing:
        I am unable to receive the string in UART without using UART ISR in MSPBoot.
    Solution Expected:
        Is There any other way? Do Suggest us to do the OTA.
        Also, Suggest by providing some links to receive the String in UART without using UART ISR.

  • I think you can try to move the interrupt to RAM. You can refer to this document. It use this method:

    www.ti.com/.../slaa968.pdf

  • HI Eason,

    I read the docs for using the interrupt, I am able to upload the code from another MSP430. When I tried to interface the ESP01 Interrupt is not triggering, when I use debug mode the board got resetting.

    What will be the problem here? Can you help me out, please?

    The module is working fine. I checked.

    Regards,

    Selva

  • Hi,

    I assume the problem happens on the IRQ table.

    Can you tell me you appliance for the IRQ table for boot and App.

    Please check whether you successfully move the code to RAM.

    You can also check this register to know what cause a reset.

    Eason

**Attention** This is a public forum