davidgfnet/stm32-dfu-bootloader

missing clock enable for access to AFIO

diggit opened this issue · 0 comments

There is missing AFIO clock enable (RCC_APB2ENR |= 1 << 0;) before AFIO access.

*_AFIO_MAPR = (*_AFIO_MAPR & ~(0x7 << 24)) | (0x4 << 24);