Question
Disable JTAG-DP + SW-DP for STM32F303
Posted on May 28, 2014 at 08:40
Hi, I have been looking around in the forums for a solution for my target mcu, STM32F I want to use the I2C1_SDA/SCL on PA14/PA 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.
#cpal #stm32f3 #i2c #stm32f3. #swd-disable #i2c-cpal #jtag