Skip to main content
n239955_stm1_stmicro_com
Associate III
June 17, 2011
Question

STM32 SMBus I2C problems

  • June 17, 2011
  • 2 replies
  • 554 views
Posted on June 17, 2011 at 12:18

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    June 17, 2011
    Posted on June 17, 2011 at 13:07

    Dunno, I sure would want to initialize the NVIC before enabling peripheral interrupts.

    Rather than totally shot-gunning the interrupt handlers in this fashion, you might want to consider what interrupt state is not being cleared, causing it to endlessly be stuck in an IRQ state, and blocking foreground execution.

    If you break execution in the blocked state you should be able to narrow down which IRQ is active, then look at the IT registers to see which bits are active.

    You might also want an instrumented fault handler, rather than an infinite loop.

    Use NVIC_PriorityGroupConfig() once, it's a singular setting.
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    n239955_stm1_stmicro_com
    Associate III
    June 17, 2011
    Posted on June 17, 2011 at 13:41

    Thank you!!