Skip to main content
roman23
Visitor II
January 28, 2011
Question

STM32F103RBT6 + Unusual code behavior

  • January 28, 2011
  • 2 replies
  • 572 views
Posted on January 28, 2011 at 14:00

STM32F103RBT6 + Unusual code behavior

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 14:23

    Have you looked at the generated code? Does turning off optimization change the behaviour?

    Is 'a' being set in an interrupt or other asynchronous routine. If so perhaps you should define it as being volatile?

    Do TRUE and FALSE have the values you expect? Also check the values for SET and RESET, people have broken those before and the library doesn't work properly.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    ColdWeather
    Senior
    May 17, 2011
    Posted on May 17, 2011 at 14:23

    Stop the peripheral while debugging. See DBGMCU_CR register.