cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use Jlink related port pins as GPIO

nb_pawar
Associate II
Posted on May 19, 2010 at 09:59

Unable to use Jlink related port pins as GPIO

2 REPLIES 2
chikos332
Associate II
Posted on May 17, 2011 at 13:51

Hi,

Have you already disabled the JTAG mapping ?

RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, ENABLE);

GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);

or

RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, ENABLE);

GPIO_PinRemapConfig(GPIO_Remap_SWJ_Disable, ENABLE);

Note that:

 - In first case you will be able to use only Serial Wire JTAG mode

 - In the second case you will not be able to use JTAG at all (so think about re-enabling the JTAG at the end of your program to be able to use it again...)

If you already did this, then, did you remove the JTAG pull ups resistors on your board?

nb_pawar
Associate II
Posted on May 17, 2011 at 13:51

hi,

 thanks dear its working.