AnsweredAssumed Answered

Disable JTAG-DP + SW-DP for STM32F303

Question asked by kapoor.vaibhav on May 28, 2014
Latest reply on May 31, 2014 by Clive One
Hi, I have been looking around in the forums for a solution for my target mcu, STM32F303. I want to use the I2C1_SDA/SCL on PA14/PA15. These pins are used for JTA-DP and SW-DP. I want to disable this and use only the I2C peripheral.

The solution for the STM32F1 targets are like this:

if ((pin == PA_13) || (pin == PA_14)) {
    GPIO_PinRemapConfig(GPIO_Remap_SWJ_Disable, ENABLE);
}
if ((pin == PA_15) || (pin == PB_3) || (pin == PB_4)) {
    GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);
}   

http://mbed.org/users/mbed_official/code/mbed-src/file/a51c77007319/targets/hal/TARGET_STM/TARGET_NUCLEO_F103RB/pinmap.c

The code above does not compile, since the defines do not exist on the F3. The solution for the F3 arch does not seem to exist.
I was wondering what I could do to get I2C peripheral on PA14/15 working and disabling JTAG/SWD.

Thank you.

Outcomes