Posted on July 08, 2014 at 18:33I believe the line in question should be changed to something like:tmpreg |= (tmp << (((GPIO_Remap&DBGAFR_LOCATION_MASK) >> 0x15)*0x10)); // take one bit only (0x00200000)!or:if (GPIO_Remap&DBGAFR_LOCATION_MASK){ t...
Posted on July 08, 2014 at 18:18
I think, you might be hitting bug in the standard peripheral library. I noticed thatGPIO_PinRemapConfig(GPIO_Remap_TIM15, ENABLE) doesn't actually change theMAPR2 register (according to datasheet, TIM15 is remapp...