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.

MSP-EXP430FR5969: OutOfBox Example will not run - FRAM logging appears to reset when calls storeTimeStamp.

Part Number: MSP-EXP430FR5969

Running the application directly out of the box works fine. After reprogram the board with the provided binary, application works fine. When I build using IAR EWW 6.30.1 application resets when I try to invoke the FRAM logging, whether I am debugging or running stand-alone.

When I debug, if I set  a break point on line 140 of main.c (dataArray[12288] = 0;) and then try to single step the board will reset.

If I change the breakpoint to line 139 of main.c (storeTimeStamp();), I can step into the function call and then board resets on the first statement of that method.

Any suggestions as to what is wrong? I did have to update the workspace and project files when I started trying to work with the source.

Jim

  • Hi Jim,

    Could you please detail what changes you made to the workspace and project files? You shouldn't need to have made any changes, and it is possible that these changes are causing the linker to not be doing what you are expecting.

    Also, could you verify how you are determining that the board has been reset? And, if you don't use any breakpoints with the debugger, do you still see the issue?

    Regards,
    Nathan
  • I made no changes to the project or workspace files. When I opened the project using IAR it updated the workspace and project files.

    I did make some changes to the source files indicated by another post which claimed to fix some UART timing issues. With / Without these changes the problem exists.

    I'm not 100% certain that the board has reset, what I see without any breakpoints is:

    1. program loads and stops on main. Hit run.
    2. LEDs toggle. Connect to board using provided GUI.
    3. Start "Live Temp Mode" - everything works fine.
    4. Stop "Live Temp Mode" - everything still OK.
    5. Start "FRAM Log Mode" - see red LED blink 3 times, after about 5 seconds see LEDs toggle. The green LED never lights (should light to indicate recording data).
    6. Press S2 on board (to stop the FRAM logging) - see no red LED which is supposed to indicate data recording has stopped.
    7. On GUI, press connect, in order to attempt to transfer FRAM data, GUI appears unable to connect with board (connect button disables and then re-enables).
    8. If I break into the firmware, the application is sitting on line 162, and never appears to leave this line unless I restart the debugging session.

  • Hi Jim,

    Since you see the issue without any changes to the source code and without any breakpoints, I suspect this issue may have to do with the changes to the project files. To rule this out, I would suggest that you use the version of IAR that the code was built with (this should be specified in the code). This should prevent IAR from changing the project files.

    Regards,
    Nathan
  • Hi,

    Has this problem been resolved? If so, please mark it as answered. If no response soon, this thread will be closed.

    Regards,
    Nathan

**Attention** This is a public forum