diff --git a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/main.c b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/main.c index 65433f94b3..7c495d4091 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/main.c +++ b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoBooter/main.c @@ -44,13 +44,7 @@ int main(void) { // init SWO as soon as possible to make it available to output ASAP #if (SWO_OUTPUT == TRUE) - - // need to set SWO pin (PB3) to alternate mode (0 == the status after RESET) - // because it's being to a different function in board config - palSetPadMode(GPIOB, 0x03, PAL_MODE_ALTERNATE(0) ); - SwoInit(); - #endif // the following IF is not mandatory, it's just providing a way for a user to 'force' diff --git a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/main.c b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/main.c index 21b868825a..05b3f34aa7 100644 --- a/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/main.c +++ b/targets/CMSIS-OS/ChibiOS/ST_NUCLEO144_F746ZG/nanoCLR/main.c @@ -57,13 +57,7 @@ int main(void) { // init SWO as soon as possible to make it available to output ASAP #if (SWO_OUTPUT == TRUE) - - // need to set SWO pin (PB3) to alternate mode (0 == the status after RESET) - // because it's being to a different function in board config - palSetPadMode(GPIOB, 0x03, PAL_MODE_ALTERNATE(0) ); - SwoInit(); - #endif // The kernel is initialized but not started yet, this means that