cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103 issue when using SPI3 with HAL

eugene239955_st
Associate II
Posted on January 21, 2016 at 16:51

When SPI3 is used with HAL libraries and SCK is on PB3, HAL do not disable JTAG  automatically which is present on same pin.

It has to be done manually with __HAL_AFIO_REMAP_SWJ_NOJTAG() before SPI init.
1 REPLY 1
Amel NASRI
ST Employee
Posted on January 25, 2016 at 14:34

Hi shamaev.eugene,

Using CubeMX, the function ''__HAL_AFIO_REMAP_SWJ_NOJTAG'' is called automatically if you select ''Serial-Wire'' as Debug mode for ''SYS'' peripheral.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.