AnsweredAssumed Answered

Disabling JTAG on STM32L151

Question asked by Mikk Leini on May 5, 2012
Latest reply on Jan 11, 2013 by Clive One
I'm using STM32L151R8. I have SPI slave on SPI1 pins PB3-PB5 and CS on PA15. The SPI doesn't seem to work and i need to double check the warning about disabling the JTAG pins.

But STM32L151xx reference manual has funny text in chapter 24.4.2  Flexible SWJ-DP pin assignment:
"For more details on how to disable SWJ-DP port pins, please refer to Section 24.4.2: Flexible SWJ-DP pin assignment.".
This leads back to the same chapter which doesn't say how should the JTAG is disabled.

I have read that F1 series have  function for that:
GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable | GPIO_Remap_SWJ_NoJTRST, ENABLE);

But how it is supposed to be done in STM32L151 ??