2011-01-28 05:00 AM
STM32F103RBT6 + Unusual code behavior
2011-05-17 05:23 AM
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.2011-05-17 05:23 AM
Stop the peripheral while debugging. See DBGMCU_CR register.