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.

MSP430F5418A: Error: Debug mode vs. Standalone Mode

Part Number: MSP430F5418A

I'm developing a product based on msp430f5418a. I had my algorithm executed on debug mode and it worked fine. However, after disconnecting the board to PC and re-power it, it won't work. I connected it back to PC and run debug through CCS, and it worked again. So I guess something is wrong in the toolchain or I have a reset issue.

On the board, we have the one ADC input under 2048 samples per second and processing algorithms. 

Would someone give me a hint on where to start regarding the issue? Is it related to timing?

Thanks,

Liang

  • Hi Liang,

    It would be great if you could tell what your application is doing.

    Can you check with a simple blink led demo if the code is running when it is powered up, without connection to PC?

    Best regards

    Lukas

  • Hi Lukas,

    Let me briefly describle my application. It's a simple audio detector. The ADC is attached to a microphone. I set the sample rate to be 2048 samples per second by timer configuration. After acquiring each sample, an interrupt function is called. I put all my signal processing in the interrupt function. The output is a GPIO port connected to an LED.

    I'm guessing my issue could be 1) a reset problem, or 2) a timing error in my signal processing.

    Would this information be helpful? Thanks!

    Liang

  • Hi Liang,

    In fact, this is helpful.

    However I would start at the beginning and check my initial request to run a blink LED demo in free run mode.

    Lukas

  • Hi
    Considering that the application runs smoothly with the debugger connected, I would check the following:
    1. Check your reset and VCC connections on the standalone board. Try probing them even in the standalone case. It can be the case that with debugger connected both reset and supply are provided by it, so either one of them maybe an issue on the standalone system.
    2. It may be possible you are running your code from RAM instead of flash, because of which when you disconnect power , the code is potentially lost. Check that

    However, I will suggest that you go with Liang's suggestions of running a simple blinky and then do the above checks. It may be the case that your issues are associated with some other component of your system, and it makes sense to isolate out the microcontroller functionality from the rest of the system

    Regards
    Nishant

**Attention** This is a public forum