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.

MSP430F149: IAR PxSEL and PxIE do not get set

Part Number: MSP430F149
Other Parts Discussed in Thread: MSP-FET

Hello,

I am having a bizarre issue where when I use the commands: P1IE |= 0x08; , P1IE  = 0x87; (for example) the registers do not get set when viewing 'registers' window or using 'watch' to watch the variables. When I download the code on the board and run without de-bugging, I can clearly see that my desired interrupt is not firing. However, when looking at the PxDIR, PxSEL and PxIES, I can see that these have changed to their desired values. Is there something with IAR that can happen that would prevent this from happening? 

Thanks,

Beau

  • Hi Beau,

    First, please make sure you're not using the IAR simulator. If you're not and still seeing this issue, I'd recommend turning OFF all optimizations. Let me know if the issue still exists.

    Regards,

    James
  • Hey James,

    I have tried this, the problem does not seem to stop. Playing around more, I have found that when I have paused the de-bugger and and looking at the specific registers using the 'view registers' tab, I can make changes to PxIES and PxDIR (such as circled in blue below) but cannot make changes to PxIE & PxSEL (such as circled in red below).

  • An update on the problems I am having, it seems that I am not able to connect to the MSP using a TI FET programmer at all with this device. I keep getting the error "Fatal Error: Could not find device" even though it works with the Elprotronic programmer. I have verified all my power connects but the problem persists.
  • A continued update on the problem: I have found that the code does not influence anything, the same problem exists when using an MSP430f149 and f2618. I continue to be able to connect with an elprotronics, but without being able to change the interrupt pin while not being able to connect at all with the TI FET programmer.

  • Beau Rogers said:
    An update on the problems I am having, it seems that I am not able to connect to the MSP using a TI FET programmer at all with this device. I keep getting the error "Fatal Error: Could not find device" even though it works with the Elprotronic programmer.

    Are you referring to the MSP-FET? If you've purchased the MSP-FET recently, there's a chance that it won't work with older IAR versions.

    [FAQ] MSP-FET: SOLUTION: Using newer MSP-FETs with older CCS or IAR versions

    Regards,

    James

  • Hey James,

    We've been using these ones for a while and they were working without much issue before. 
    However, after trying a bunch of different Elprotronics and TI programmers, I eventually found one that did not give me any problems. I'm not sure why it's the case, but it seems to be working now.

    Thanks for your help,

    Beau

**Attention** This is a public forum