From 5ab3039aa662036979f8db88868aecbaf39b99bb Mon Sep 17 00:00:00 2001 From: wovo Date: Fri, 8 Jan 2021 17:22:40 +0100 Subject: [PATCH] update --- library/targets/hwlib-stm32f1xx.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/targets/hwlib-stm32f1xx.hpp b/library/targets/hwlib-stm32f1xx.hpp index 0561c88..c2c6397 100644 --- a/library/targets/hwlib-stm32f1xx.hpp +++ b/library/targets/hwlib-stm32f1xx.hpp @@ -103,12 +103,13 @@ namespace stm32f1xx { } // b04 = NJTRST - if(( port_number == 1 ) && ( pin_number == 04 )){ + if(( port_number == 1 ) && ( pin_number == 4 )){ // https://electronics.stackexchange.com/questions/318115/stm32f103-how-to-use-pb4-as-normal-gpio-njtrst-remap-not-working //MODIFY_REG(AFIO->MAPR, AFIO_MAPR_SWJ_CFG, AFIO_MAPR_SWJ_CFG_NOJNTRST) - RCC->APB2ENR |=1; // Enable AFIO clock - AFIO->MAPR |= (1<<26); + // this bricks the device?? + // RCC->APB2ENR |=1; // Enable AFIO clock + // AFIO->MAPR |= (1<<26); } }