2011-10-02 06:31 AM
Hi,
I want to use PA13 (multiplexed with JTMS) as GPIO pin of stm32f103. So i configured AFIO_MAPR reg (SWJ_CFG[2:0] - 100 --> JTAG-DP Disabled and SW-DP Disabled) .Now i am unable to program or erase flash. Please help.2011-10-02 10:04 AM
Use to BOOTx pins so it runs the system loader, and not your code that disables the JTAG.
In the future consider checking a GPIO pin before disabling the JTAG, or providing a serial console to re-enable it for programming, or sending firmware updates directly.2016-12-21 12:22 AM
Hi, I have the same error and found 3 another threads with this. Looks like there is error with writing to AFIO->MAPR register.