Question
SPI3 problem with STM32f4- discovery and stm32f103
Posted on January 27, 2014 at 13:42
Hi,
I have problem with SPI3 and st-link debugger. CLK pin is always unaveilable.I configure MCU to not use JTDO but in debug mode when I look at AFIO register there is written some other value for SWJ_CFG(always 0x50) and I want it to be 0x20.I already work with SPI1 and SPI2 and they work perfect in interrupt and non-interrupt mode.How to solve problem?there is little code: tmp = AFIO->MAPR; tmp &= 0xF8FFFFFF; tmp |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE; AFIO->MAPR = tmp; DBGMCU->CR &= ~DBGMCU_CR_TRACE_IOEN; //disable async trace for every caseit works same as GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE); All the best,Miroslav #stm32 #stm32-st-link-swd #stm32discovery